aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2018-06-13 18:36:35 +0200
committerJakub Jirutka <jakub@jirutka.cz>2018-06-13 19:07:40 +0200
commit555379f6374cbff866cc12d366b96ef8b76af9a9 (patch)
tree3aec3163248198e327916fb1eaf1b2c369aa4c17
parent6fa62457d25f58ba1f6636d1c5a5f2c181cc1c70 (diff)
downloadaports-555379f6374cbff866cc12d366b96ef8b76af9a9.tar.bz2
community/perl-app-cpanminus: new aport
This aport is needed for the latest version of community/imapsync.
-rw-r--r--community/perl-app-cpanminus/APKBUILD46
1 files changed, 46 insertions, 0 deletions
diff --git a/community/perl-app-cpanminus/APKBUILD b/community/perl-app-cpanminus/APKBUILD
new file mode 100644
index 0000000..7e375d1
--- /dev/null
+++ b/community/perl-app-cpanminus/APKBUILD
@@ -0,0 +1,46 @@
+# Contributor: Jakub Jirutka <jakub@jirutka.cz>
+# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
+pkgname=perl-app-cpanminus
+_pkgname=App-cpanminus
+pkgver=1.7044
+pkgrel=0
+pkgdesc="Get, unpack, build and install modules from CPAN"
+url="http://search.cpan.org/dist/App-cpanminus/"
+arch="noarch"
+license="PerlArtistic"
+depends="perl"
+makedepends="perl-dev"
+subpackages="$pkgname-doc"
+source="http://search.cpan.org/CPAN/authors/id/M/MI/MIYAGAWA/$_pkgname-$pkgver.tar.gz"
+builddir="$srcdir/$_pkgname-$pkgver"
+
+prepare() {
+ default_prepare
+
+ cd "$builddir"
+ CFLAGS=$(_ccflags) PERL_MM_USE_DEFAULT=1 \
+ perl Makefile.PL INSTALLDIRS=vendor
+}
+
+build() {
+ cd "$builddir"
+ CFLAGS=$(_ccflags) make
+}
+
+check() {
+ cd "$builddir"
+ CFLAGS=$(_ccflags) make test
+}
+
+package() {
+ cd "$builddir"
+
+ make DESTDIR="$pkgdir" install
+ find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
+}
+
+_ccflags() {
+ perl -MConfig -E 'say $Config{ccflags}'
+}
+
+sha512sums="85e88de8fbefabdfd84fe8aeaa8294d58d63e27276cd6d8b8dfc5dc4cd6c30c12f5859f30e4930842d6d06af50c88d71358dee49c93821234c811aa39de822d7 App-cpanminus-1.7044.tar.gz"