aboutsummaryrefslogtreecommitdiffstats
path: root/testing/perl-autobox/APKBUILD
diff options
context:
space:
mode:
authorFrancesco Colista <francesco.colista@gmail.com>2013-09-04 08:46:18 +0000
committerFrancesco Colista <francesco.colista@gmail.com>2013-09-04 09:04:44 +0000
commited5c2b22d6c7121b64f06ffce199563bd9b13121 (patch)
treeeafd70d00346435bd28094e2eb81ea1282695930 /testing/perl-autobox/APKBUILD
parente707cfd19dc200e2c92a7fe88dadc9e39ba33197 (diff)
downloadaports-ed5c2b22d6c7121b64f06ffce199563bd9b13121.tar.bz2
aports-ed5c2b22d6c7121b64f06ffce199563bd9b13121.tar.xz
testing/perl-autobox: new aport
Diffstat (limited to 'testing/perl-autobox/APKBUILD')
-rw-r--r--testing/perl-autobox/APKBUILD41
1 files changed, 41 insertions, 0 deletions
diff --git a/testing/perl-autobox/APKBUILD b/testing/perl-autobox/APKBUILD
new file mode 100644
index 0000000000..770f880a3f
--- /dev/null
+++ b/testing/perl-autobox/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-autobox
+_pkgreal=autobox
+pkgver=2.79
+pkgrel=0
+pkgdesc="call methods on native types"
+url="http://search.cpan.org/dist/autobox/"
+arch="all"
+license="GPL PerlArtistic"
+cpandepends="perl-scope-guard"
+cpanmakedepends=" "
+depends="$cpandepends"
+makedepends="perl-dev perl-test-pod perl-scope-guard $cpanmakedepends"
+subpackages="$pkgname-doc"
+source="http://search.cpan.org/CPAN/authors/id/C/CH/CHOCOLATE/$_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="4718107ac4359e4300d913cc56b3e14b autobox-2.79.tar.gz"
+sha256sums="8acc8c4a69e1bbb05304d0832d483a07258597529072d869b5960193a2ab950f autobox-2.79.tar.gz"
+sha512sums="857adaf75e9e2b5053a88653ea5379e0e0a5f52e7c2af14af41c8bc9583cceb4e4557df72e61c1a429ac7a1093ea3c0bdb5bb9099cbb303d0494b669a6fc3110 autobox-2.79.tar.gz"