aboutsummaryrefslogtreecommitdiffstats
path: root/community/perl-starlet
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2017-07-12 09:55:16 +0300
committerTimo Teräs <timo.teras@iki.fi>2017-07-12 09:55:16 +0300
commit3c36e37ee9ff69b9fc21888cfa537485463377c1 (patch)
tree09b8ab4320c67cbd6fbfa81aa7da53d91b27c8b1 /community/perl-starlet
parent1093b31fa5ad0484b89f8c4d3c234847f6854f02 (diff)
downloadaports-3c36e37ee9ff69b9fc21888cfa537485463377c1.tar.bz2
aports-3c36e37ee9ff69b9fc21888cfa537485463377c1.tar.xz
community/perl-starlet: upgrade to 0.31, modernize aport
Diffstat (limited to 'community/perl-starlet')
-rw-r--r--community/perl-starlet/APKBUILD33
1 files changed, 19 insertions, 14 deletions
diff --git a/community/perl-starlet/APKBUILD b/community/perl-starlet/APKBUILD
index 43b9eb5b43..e964aa0ad8 100644
--- a/community/perl-starlet/APKBUILD
+++ b/community/perl-starlet/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-starlet
_pkgreal=Starlet
-pkgver=0.30
-pkgrel=1
+pkgver=0.31
+pkgrel=0
pkgdesc="a simple, high-performance PSGI/Plack HTTP server"
url="http://search.cpan.org/dist/Starlet/"
arch="noarch"
license="GPL PerlArtistic"
-cpandepends="perl-parallel-prefork perl-server-starter perl-plack"
-cpanmakedepends="perl-test-tcp perl-libwww perl-module-install"
+cpandepends="perl-server-starter perl-plack perl-parallel-prefork"
+cpanmakedepends="perl-libwww perl-test-tcp"
+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="2c391b258aaf527dae7d4e3b3a40f180 Starlet-0.30.tar.gz"
-sha256sums="f2b50c2a0fb0efff2fb1f48e4577dd69567c96560dd442ce2f7297eb09189551 Starlet-0.30.tar.gz"
-sha512sums="24ee9c3ea6a0f90cef1f9a4c8657b03133fc64fedc70ffc590b34e45105f7e36cb3be869319e6d42a84dfae23ea6085fe06881d2dd7e88f04ba53619c80eeba1 Starlet-0.30.tar.gz"
+check() {
+ cd "$builddir"
+ export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
+ make test
+}
+
+sha512sums="855451ee69e379230d2476144fe5b44d0fef115e654d22bd697b3d75cc30aa53c179201d3bf980cc044b48081f7d2cfd56a956e5747d0e93e4468fd511945b7b Starlet-0.31.tar.gz"