diff options
author | Valery Kartel <valery.kartel@gmail.com> | 2017-01-23 15:03:01 +0200 |
---|---|---|
committer | Leonardo Arena <rnalrd@alpinelinux.org> | 2017-01-24 08:48:17 +0000 |
commit | 75e3da45a212faf6387424af298d6217d3ad0bd5 (patch) | |
tree | 66b4b64bff56c9fc85124378c7965ddac1725b64 /main/perl-exporter | |
parent | fe6b86af3763d58fbc06fa009626c5dd8cf4c3c9 (diff) | |
download | aports-75e3da45a212faf6387424af298d6217d3ad0bd5.tar.bz2 aports-75e3da45a212faf6387424af298d6217d3ad0bd5.tar.xz |
main/perl-*: fix -doc, apkbuild cleanups
perl-carp
perl-digest-md5
perl-exporter
perl-getopt-long
perl-io
perl-mime-base64
perl-pathtools (+ add description)
perl-scalar-list-utils
perl-socket
perl-test-harness (+ move script to -utils subpackage)
perl-test-simple
Diffstat (limited to 'main/perl-exporter')
-rw-r--r-- | main/perl-exporter/APKBUILD | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/main/perl-exporter/APKBUILD b/main/perl-exporter/APKBUILD index 717cb13528..94d582776e 100644 --- a/main/perl-exporter/APKBUILD +++ b/main/perl-exporter/APKBUILD @@ -4,7 +4,7 @@ pkgname=perl-exporter _pkgreal=Exporter pkgver=5.72 -pkgrel=0 +pkgrel=1 pkgdesc="Implements default import method for modules" url="http://search.cpan.org/dist/Exporter/" arch="noarch" @@ -15,27 +15,31 @@ depends="$cpandepends" makedepends="perl-dev $cpanmakedepends" subpackages="$pkgname-doc" source="http://search.cpan.org/CPAN/authors/id/T/TO/TODDR/$_pkgreal-$pkgver.tar.gz" - -_builddir="$srcdir/$_pkgreal-$pkgver" +builddir="$srcdir/$_pkgreal-$pkgver" prepare() { - cd "$_builddir" + cd "$builddir" export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor } build() { - cd "$_builddir" + cd "$builddir" export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` make && make test } package() { - cd "$_builddir" + cd "$builddir" make DESTDIR="$pkgdir" install || return 1 find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete } +doc() { + default_doc + replaces="perl-doc" +} + md5sums="096f0692cbe46a3407a534a0d10970ca Exporter-5.72.tar.gz" sha256sums="cd13b7a0e91e8505a0ce4b25f40fab2c92bb28a99ef0d03da1001d95a32f0291 Exporter-5.72.tar.gz" sha512sums="ba3c3e4703c993a3bd9a73c7afd3f9ee38bf6997800fe0804c0ed645d15996a7d8fb3f46a15484c75272586bbf2cb879e2a036bf73e98bc01be5c5a23e0bf080 Exporter-5.72.tar.gz" |