aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-carp
diff options
context:
space:
mode:
authorLeonardo Arena <rnalrd@alpinelinux.org>2015-06-10 08:23:54 +0000
committerLeonardo Arena <rnalrd@alpinelinux.org>2015-06-10 08:23:54 +0000
commit708c20b5751a776eb65beabf529d3d49ffbe93c7 (patch)
tree7c06a20996b460bed21867174149a50fe359788f /main/perl-carp
parent9125e2c45ff57e7e4da9bcd63f5f2507eec87349 (diff)
downloadaports-708c20b5751a776eb65beabf529d3d49ffbe93c7.tar.bz2
aports-708c20b5751a776eb65beabf529d3d49ffbe93c7.tar.xz
main/perl-carp: new aport
Diffstat (limited to 'main/perl-carp')
-rw-r--r--main/perl-carp/APKBUILD41
1 files changed, 41 insertions, 0 deletions
diff --git a/main/perl-carp/APKBUILD b/main/perl-carp/APKBUILD
new file mode 100644
index 0000000000..0b6f2eff32
--- /dev/null
+++ b/main/perl-carp/APKBUILD
@@ -0,0 +1,41 @@
+# Automatically generated by apkbuild-cpan, template 1
+# Contributor:
+# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
+pkgname=perl-carp
+_pkgreal=Carp
+pkgver=1.36
+pkgrel=0
+pkgdesc="alternative warn and die for modules"
+url="http://search.cpan.org/dist/Carp/"
+arch="noarch"
+license="GPL PerlArtistic"
+cpandepends=""
+cpanmakedepends=" "
+depends="$cpandepends"
+makedepends="perl-dev $cpanmakedepends"
+subpackages="$pkgname-doc"
+source="http://search.cpan.org/CPAN/authors/id/R/RJ/RJBS/$_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="3f5dcd7cc263bd01617886174ceff5a4 Carp-1.36.tar.gz"
+sha256sums="dcc789935126461c80df0653f98c1d8d0b936dcc3d04174287cb02767eca123c Carp-1.36.tar.gz"
+sha512sums="90616169954e3740abab3207405cd08cc1d4bc70de84e0b12d9657fe6a8ca8c555f8df3e6d70e57e5bedb7aa3b519e79032548ad3b958de9a0f9bb2a376a5aac Carp-1.36.tar.gz"