From 75e3da45a212faf6387424af298d6217d3ad0bd5 Mon Sep 17 00:00:00 2001 From: Valery Kartel Date: Mon, 23 Jan 2017 15:03:01 +0200 Subject: 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 --- main/perl-io/APKBUILD | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) (limited to 'main/perl-io') diff --git a/main/perl-io/APKBUILD b/main/perl-io/APKBUILD index 7c1202cfbb..f4ba2bda5c 100644 --- a/main/perl-io/APKBUILD +++ b/main/perl-io/APKBUILD @@ -4,7 +4,7 @@ pkgname=perl-io _pkgreal=IO pkgver=1.25 -pkgrel=2 +pkgrel=3 pkgdesc="Perl core IO modules" url="http://search.cpan.org/dist/IO/" arch="all" @@ -15,28 +15,32 @@ depends="$cpandepends" makedepends="perl-dev $cpanmakedepends" subpackages="$pkgname-doc" source="http://search.cpan.org/CPAN/authors/id/G/GB/GBARR/$_pkgreal-$pkgver.tar.gz" - -_builddir="$srcdir/$_pkgreal-$pkgver" +builddir="$srcdir/$_pkgreal-$pkgver" prepare() { - cd "$_builddir" - export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` + 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}'` + cd "$builddir" + export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') # FIXME: it fails a test due to deprecated code 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="b88aaf2bb7437725b11e9eb48dfb6c93 IO-1.25.tar.gz" sha256sums="89790db8b9281235dc995c1a85d532042ff68a90e1504abd39d463f05623e7b5 IO-1.25.tar.gz" sha512sums="eb922dc89f3dd5996b3abd5e5ffc17b581f7b40b9128461da5d2f97466606a2775e44cb1a707673a4e9fbcda69318d462e1d6ad44c26c9378c2a5b49fb8c06e2 IO-1.25.tar.gz" -- cgit v1.2.3