aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-exporter-tiny
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2014-12-25 13:32:12 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2014-12-25 13:32:12 +0000
commit49db91b1e83f3c1a734eb635c23c2359c366f6dd (patch)
tree7a8cad8ceaf3ede338606feed8dbee53fdc6e134 /main/perl-exporter-tiny
parent87efe4a03c17cff1ca42d966756177b12c4915f0 (diff)
downloadaports-49db91b1e83f3c1a734eb635c23c2359c366f6dd.tar.bz2
aports-49db91b1e83f3c1a734eb635c23c2359c366f6dd.tar.xz
main/perl-exporter-tiny: new aport
Diffstat (limited to 'main/perl-exporter-tiny')
-rw-r--r--main/perl-exporter-tiny/APKBUILD41
1 files changed, 41 insertions, 0 deletions
diff --git a/main/perl-exporter-tiny/APKBUILD b/main/perl-exporter-tiny/APKBUILD
new file mode 100644
index 0000000000..bd2782476a
--- /dev/null
+++ b/main/perl-exporter-tiny/APKBUILD
@@ -0,0 +1,41 @@
+# Automatically generated by apkbuild-cpan, template 1
+# Contributor: Natanael Copa <ncopa@alpinelinux.org>
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=perl-exporter-tiny
+_pkgreal=Exporter-Tiny
+pkgver=0.042
+pkgrel=0
+pkgdesc="an exporter with the features of Sub::Exporter but only core dependencies"
+url="http://search.cpan.org/dist/Exporter-Tiny/"
+arch="noarch"
+license="GPL PerlArtistic"
+cpandepends=""
+cpanmakedepends=" perl-test-warnings perl-test-fatal"
+depends="$cpandepends"
+makedepends="perl-dev $cpanmakedepends"
+subpackages="$pkgname-doc"
+source="http://search.cpan.org/CPAN/authors/id/T/TO/TOBYINK/$_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="77ba432037f35bc9b84b717639075fc6 Exporter-Tiny-0.042.tar.gz"
+sha256sums="8f1622c5ebbfbcd519ead81df7917e48cb16cc527b1c46737b0459c3908a023f Exporter-Tiny-0.042.tar.gz"
+sha512sums="b69b722842b4a907fa434a1a798df6f983bae74d7b82e925a1db684cb166f2ef02a72cce176173af035321dc27ad35b49e1fb1ee57c0e2ca6596d84da140c06f Exporter-Tiny-0.042.tar.gz"