aboutsummaryrefslogtreecommitdiffstats
path: root/testing/perl-module-implementation
diff options
context:
space:
mode:
authorFrancesco Colista <francesco.colista@gmail.com>2013-09-04 08:52:12 +0000
committerFrancesco Colista <francesco.colista@gmail.com>2013-09-04 09:04:46 +0000
commit3564a236d6ab025e895577931589f603d8354bd1 (patch)
tree3363910ae9a092fda730bbf5bf5e5b40e03afddd /testing/perl-module-implementation
parenta198f162da14f16d12e6066bad6dd1409492dfdf (diff)
downloadaports-3564a236d6ab025e895577931589f603d8354bd1.tar.bz2
aports-3564a236d6ab025e895577931589f603d8354bd1.tar.xz
testing/perl-module-implementation: new aport
Diffstat (limited to 'testing/perl-module-implementation')
-rw-r--r--testing/perl-module-implementation/APKBUILD41
1 files changed, 41 insertions, 0 deletions
diff --git a/testing/perl-module-implementation/APKBUILD b/testing/perl-module-implementation/APKBUILD
new file mode 100644
index 0000000000..217929784a
--- /dev/null
+++ b/testing/perl-module-implementation/APKBUILD
@@ -0,0 +1,41 @@
+# Automatically generated by apkbuild-cpan, template 1
+# Contributor: Francesco Colista <francesco.colista@gmail.com>
+# Maintainer: Francesco Colista <francesco.colista@gmail.com>
+pkgname=perl-module-implementation
+_pkgreal=Module-Implementation
+pkgver=0.07
+pkgrel=0
+pkgdesc="Loads one of several alternate underlying implementations for a module"
+url="http://search.cpan.org/dist/Module-Implementation/"
+arch="noarch"
+license="Artistic-2"
+cpandepends="perl-module-runtime perl-try-tiny perl-test-taint"
+cpanmakedepends=" perl-test-fatal perl-test-requires "
+depends="$cpandepends"
+makedepends="perl-dev $cpanmakedepends"
+subpackages="$pkgname-doc"
+source="http://search.cpan.org/CPAN/authors/id/D/DR/DROLSKY/$_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 && make test
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install || return 1
+ find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
+}
+
+md5sums="55483fce4266747e823a1004499bd70c Module-Implementation-0.07.tar.gz"
+sha256sums="7349837153939d7f5777b28f49e2940a0aa003e75f587e1674da5bd5101d2997 Module-Implementation-0.07.tar.gz"
+sha512sums="f2ea0aba3a21fd5a338899f74d0d59e0590983787a85083e2bf68bb0c27ca82362090d4bfca685a36895e8832a4784c86bb999b13b90c9a0356f326bf8bb6f99 Module-Implementation-0.07.tar.gz"