aboutsummaryrefslogtreecommitdiffstats
path: root/testing/perl-module-find
diff options
context:
space:
mode:
authorFrancesco Colista <francesco.colista@gmail.com>2012-10-29 15:19:29 +0000
committerFrancesco Colista <francesco.colista@gmail.com>2012-10-29 15:19:29 +0000
commit652d35236948c7202e186e4f8d8de6591795c79d (patch)
treeeb6941c20d77f9ba2481c0b185ee104ff1e71f70 /testing/perl-module-find
parenta127d1c72ad80e74fe341ea80a9bc50041f16a44 (diff)
downloadaports-652d35236948c7202e186e4f8d8de6591795c79d.tar.bz2
aports-652d35236948c7202e186e4f8d8de6591795c79d.tar.xz
testing/perl-module-find: new aport
Diffstat (limited to 'testing/perl-module-find')
-rw-r--r--testing/perl-module-find/APKBUILD39
1 files changed, 39 insertions, 0 deletions
diff --git a/testing/perl-module-find/APKBUILD b/testing/perl-module-find/APKBUILD
new file mode 100644
index 0000000000..2acb0175df
--- /dev/null
+++ b/testing/perl-module-find/APKBUILD
@@ -0,0 +1,39 @@
+# Automatically generated by apkbuild-cpan, template 1
+# Contributor: Francesco Colista <francesco.colista@gmail.com>
+# Maintainer: Francesco Colista <francesco.colista@gmail.com>
+pkgname=perl-module-find
+_pkgreal=Module-Find
+pkgver=0.11
+pkgrel=0
+pkgdesc="Find and use installed modules in a (sub)category"
+url="http://search.cpan.org/dist/Module-Find/"
+arch="noarch"
+license="GPL PerlArtistic"
+cpandepends=""
+cpanmakedepends=" "
+depends="$cpandepends"
+makedepends="perl-dev $cpanmakedepends"
+subpackages="$pkgname-doc"
+source="http://search.cpan.org/CPAN/authors/id/C/CR/CRENZ/$_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="420a0796a1fbdfd5704df754872db7e1 Module-Find-0.11.tar.gz"