aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2017-07-12 09:53:02 +0300
committerTimo Teräs <timo.teras@iki.fi>2017-07-12 09:53:02 +0300
commit1093b31fa5ad0484b89f8c4d3c234847f6854f02 (patch)
treedf70e5c419b57d31011fa0adb71d1a6837c6de8a
parent62faa16d4751fdcd5a858d26e5666dd8ae8f0285 (diff)
downloadaports-1093b31fa5ad0484b89f8c4d3c234847f6854f02.tar.gz
aports-1093b31fa5ad0484b89f8c4d3c234847f6854f02.tar.bz2
aports-1093b31fa5ad0484b89f8c4d3c234847f6854f02.tar.xz
community/perl-parallel-fork: upgrade to 0.18, modernize aport
-rw-r--r--community/perl-parallel-prefork/APKBUILD33
1 files changed, 19 insertions, 14 deletions
diff --git a/community/perl-parallel-prefork/APKBUILD b/community/perl-parallel-prefork/APKBUILD
index 27ac5a08fd..6074872442 100644
--- a/community/perl-parallel-prefork/APKBUILD
+++ b/community/perl-parallel-prefork/APKBUILD
@@ -1,43 +1,48 @@
-# Automatically generated by apkbuild-cpan, template 1
+# Automatically generated by apkbuild-cpan, template 2
# Contributor: Timo Teräs <timo.teras@iki.fi>
# Maintainer: Timo Teräs <timo.teras@iki.fi>
pkgname=perl-parallel-prefork
_pkgreal=Parallel-Prefork
-pkgver=0.14
-pkgrel=1
+pkgver=0.18
+pkgrel=0
pkgdesc="A simple prefork server framework"
url="http://search.cpan.org/dist/Parallel-Prefork/"
arch="noarch"
license="GPL PerlArtistic"
-cpandepends="perl-list-moreutils perl-class-accessor-lite perl-scope-guard perl-proc-wait3"
-cpanmakedepends="perl-test-sharedfork perl-test-requires perl-module-install"
+cpandepends="perl-signal-mask perl-class-accessor-lite perl-scope-guard perl-proc-wait3 perl-list-moreutils"
+cpanmakedepends="perl-test-requires perl-test-sharedfork"
+cpancheckdepends=""
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
+checkdepends="$cpancheckdepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/K/KA/KAZUHO/$_pkgreal-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"
prepare() {
+ default_prepare
+
cd "$builddir"
- PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
+ export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
+ PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL INSTALLDIRS=vendor
}
build() {
cd "$builddir"
+ export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
make
}
-check() {
- cd "$builddir"
- make test
-}
-
package() {
cd "$builddir"
make DESTDIR="$pkgdir" install
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}
-md5sums="223570b872af5ec337e3fdc31e47d7e0 Parallel-Prefork-0.14.tar.gz"
-sha256sums="68b70d0de6c2625e862402cc39288043f175816ede03d887a52f28500008ca0e Parallel-Prefork-0.14.tar.gz"
-sha512sums="18a9155775779d85956492f252f87e543590e4b4403f40fd4da86f041784b344683d88db49137cdad1e5d22c6f1017453bab7c0e1fb38731933194a32015547a Parallel-Prefork-0.14.tar.gz"
+check() {
+ cd "$builddir"
+ export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
+ make test
+}
+
+sha512sums="9d2dc977d98c3ba263a0d8e189877b59661bfa9fdf97ed5e685271b4b1661522e8288ae8392bd9eeeafb21b37191e55a2bac35cce49d2d5d68e6c3e2d3353c6f Parallel-Prefork-0.18.tar.gz"