summaryrefslogtreecommitdiff
path: root/system/perl-test-requires
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-06-26 06:00:55 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-06-26 06:03:29 -0500
commit77ee22b723307e94d04214bcc4164f8d18e7d476 (patch)
treeaae434c5abca362f229422e6c0bbaf7cb59e36fe /system/perl-test-requires
parent69fc7c5461ba60acfdac67c453846e2b7eaddecc (diff)
downloadpackages-77ee22b723307e94d04214bcc4164f8d18e7d476.tar.gz
packages-77ee22b723307e94d04214bcc4164f8d18e7d476.tar.bz2
packages-77ee22b723307e94d04214bcc4164f8d18e7d476.tar.xz
packages-77ee22b723307e94d04214bcc4164f8d18e7d476.zip
system/perl-test-requires: pull in for perl-module-scandeps
Diffstat (limited to 'system/perl-test-requires')
-rw-r--r--system/perl-test-requires/APKBUILD43
1 files changed, 43 insertions, 0 deletions
diff --git a/system/perl-test-requires/APKBUILD b/system/perl-test-requires/APKBUILD
new file mode 100644
index 000000000..cc9459d38
--- /dev/null
+++ b/system/perl-test-requires/APKBUILD
@@ -0,0 +1,43 @@
+# Automatically generated by apkbuild-cpan, template 1
+# Contributor: Natanael Copa <ncopa@alpinelinux.org>
+# Maintainer: Adélie Perl Team <adelie-perl@lists.adelielinux.org>
+pkgname=perl-test-requires
+_pkgreal=Test-Requires
+pkgver=0.10
+pkgrel=0
+pkgdesc="Checks to see if a Perl module can be loaded"
+url="http://search.cpan.org/dist/Test-Requires/"
+arch="noarch"
+license="GPL-2.0-only OR Artistic-1.0-Perl"
+cpandepends=""
+cpanmakedepends=""
+depends="$cpandepends"
+makedepends="perl-dev $cpanmakedepends"
+subpackages="$pkgname-doc"
+source="http://search.cpan.org/CPAN/authors/id/T/TO/TOKUHIROM/$_pkgreal-$pkgver.tar.gz"
+builddir="$srcdir/$_pkgreal-$pkgver"
+
+prepare() {
+ cd "$builddir"
+ export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
+ PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
+}
+
+build() {
+ cd "$builddir"
+ export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
+ make
+}
+
+check() {
+ cd "$builddir"
+ make test
+}
+
+package() {
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install || return 1
+ find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
+}
+
+sha512sums="5bc6bf52ae5ab3c56f49b7b17faedf7d6afef2cadfca8aab4770f2c2f91cd4fcb98921e1af159d1dc42684b80f50d4b7fc12bd05ef9dccdcbeeeb6100a9e5ae6 Test-Requires-0.10.tar.gz"