aboutsummaryrefslogtreecommitdiffstats
path: root/testing/perl-constant-defer
diff options
context:
space:
mode:
authorFrancesco Colista <francesco.colista@gmail.com>2012-10-29 14:34:22 +0000
committerFrancesco Colista <francesco.colista@gmail.com>2012-10-29 14:34:22 +0000
commitf14c9a0549826056dfda66002e76aaa692fc9894 (patch)
tree54ade00ba4d9a85ebd13730131990a20c4bee770 /testing/perl-constant-defer
parent059f19a3e1fa8df344987e199372574758c7ee12 (diff)
downloadaports-f14c9a0549826056dfda66002e76aaa692fc9894.tar.bz2
aports-f14c9a0549826056dfda66002e76aaa692fc9894.tar.xz
testing/perl-constant-defer: new aport
Diffstat (limited to 'testing/perl-constant-defer')
-rw-r--r--testing/perl-constant-defer/APKBUILD39
1 files changed, 39 insertions, 0 deletions
diff --git a/testing/perl-constant-defer/APKBUILD b/testing/perl-constant-defer/APKBUILD
new file mode 100644
index 0000000000..9772759da6
--- /dev/null
+++ b/testing/perl-constant-defer/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-constant-defer
+_pkgreal=constant-defer
+pkgver=5
+pkgrel=0
+pkgdesc="Constant subs with deferred value calculation."
+url="http://search.cpan.org/dist/constant-defer/"
+arch="noarch"
+license="open_source"
+cpandepends=""
+cpanmakedepends=" "
+depends="$cpandepends"
+makedepends="perl-dev $cpanmakedepends"
+subpackages="$pkgname-doc"
+source="http://search.cpan.org/CPAN/authors/id/K/KR/KRYDE/$_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="519232b64896395b84b41f5300d1cab3 constant-defer-5.tar.gz"