summaryrefslogtreecommitdiff
path: root/system/perl-module-scandeps/APKBUILD
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-06-26 06:02:02 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-06-26 06:03:30 -0500
commitbef8f58b3884cca60f4acddce22b62380d0729e9 (patch)
tree2086540be29a6e120e16f72b3f09314d8b724ed9 /system/perl-module-scandeps/APKBUILD
parent77ee22b723307e94d04214bcc4164f8d18e7d476 (diff)
downloadpackages-bef8f58b3884cca60f4acddce22b62380d0729e9.tar.gz
packages-bef8f58b3884cca60f4acddce22b62380d0729e9.tar.bz2
packages-bef8f58b3884cca60f4acddce22b62380d0729e9.tar.xz
packages-bef8f58b3884cca60f4acddce22b62380d0729e9.zip
system/perl-module-scandeps: pull in for perl-module-install
Diffstat (limited to 'system/perl-module-scandeps/APKBUILD')
-rw-r--r--system/perl-module-scandeps/APKBUILD45
1 files changed, 45 insertions, 0 deletions
diff --git a/system/perl-module-scandeps/APKBUILD b/system/perl-module-scandeps/APKBUILD
new file mode 100644
index 000000000..20d41f61b
--- /dev/null
+++ b/system/perl-module-scandeps/APKBUILD
@@ -0,0 +1,45 @@
+# Automatically generated by apkbuild-cpan, template 1
+# Contributor: Stuart Cardall <developer@it-offshore.co.uk>
+# Maintainer: Adélie Perl Team <adelie-perl@lists.adelielinux.org>
+pkgname=perl-module-scandeps
+_pkgreal=Module-ScanDeps
+pkgver=1.24
+pkgrel=0
+pkgdesc="Recursively scan Perl code for dependencies"
+url="http://search.cpan.org/dist/Module-ScanDeps/"
+arch="noarch"
+license="GPL-2.0-only OR Artistic-1.0-Perl"
+cpanmakedepends="perl-test-requires"
+makedepends="perl-dev $cpanmakedepends perl-test-pod"
+subpackages="$pkgname-doc"
+source="http://search.cpan.org/CPAN/authors/id/R/RS/RSCHUPP/$_pkgreal-$pkgver.tar.gz"
+builddir="$srcdir/$_pkgreal-$pkgver"
+
+prepare() {
+ default_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
+}
+
+package() {
+ cd "$builddir"
+
+ make DESTDIR="$pkgdir" install
+ find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
+}
+
+check() {
+ cd "$builddir"
+ make test
+}
+
+sha512sums="7f3d9821aa863d8ebc78fb5fb3c7172ce133169ec54ed91b90e05ba50654b4bd0282b3a760adfc8b6bd553dda4116dbf51972bb2af94b59f6f04daeba996e889 Module-ScanDeps-1.24.tar.gz"