aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-cgi-emulate-psgi/APKBUILD
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2017-07-12 09:58:16 +0300
committerTimo Teräs <timo.teras@iki.fi>2017-07-12 09:58:16 +0300
commit8b17da5800b23db2b2a332f1c6d540a426d798c6 (patch)
tree4e2391aedf2d537d45e0dd416adbeac80eba3b8b /main/perl-cgi-emulate-psgi/APKBUILD
parent3c36e37ee9ff69b9fc21888cfa537485463377c1 (diff)
downloadaports-8b17da5800b23db2b2a332f1c6d540a426d798c6.tar.gz
aports-8b17da5800b23db2b2a332f1c6d540a426d798c6.tar.bz2
aports-8b17da5800b23db2b2a332f1c6d540a426d798c6.tar.xz
community/perl-cgi-emulate-psgi: upgrade to 0.23, modernize aport
Diffstat (limited to 'main/perl-cgi-emulate-psgi/APKBUILD')
-rw-r--r--main/perl-cgi-emulate-psgi/APKBUILD39
1 files changed, 24 insertions, 15 deletions
diff --git a/main/perl-cgi-emulate-psgi/APKBUILD b/main/perl-cgi-emulate-psgi/APKBUILD
index 02862932f0..62a9bc7c05 100644
--- a/main/perl-cgi-emulate-psgi/APKBUILD
+++ b/main/perl-cgi-emulate-psgi/APKBUILD
@@ -1,9 +1,9 @@
-# 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-cgi-emulate-psgi
_pkgreal=CGI-Emulate-PSGI
-pkgver=0.21
+pkgver=0.23
pkgrel=0
pkgdesc="PSGI adapter for CGI"
url="http://search.cpan.org/dist/CGI-Emulate-PSGI/"
@@ -11,29 +11,38 @@ arch="noarch"
license="GPL PerlArtistic"
cpandepends="perl-http-message"
cpanmakedepends=""
+cpancheckdepends="perl-test-requires"
depends="$cpandepends perl-cgi"
-makedepends="perl-dev perl-test-requires $cpanmakedepends"
+makedepends="perl-dev $cpanmakedepends"
+checkdepends="$cpancheckdepends"
subpackages="$pkgname-doc"
-source="http://search.cpan.org/CPAN/authors/id/M/MI/MIYAGAWA/$_pkgreal-$pkgver.tar.gz"
-
-_builddir="$srcdir/$_pkgreal-$pkgver"
+source="http://search.cpan.org/CPAN/authors/id/T/TO/TOKUHIROM/$_pkgreal-$pkgver.tar.gz"
+builddir="$srcdir/$_pkgreal-$pkgver"
prepare() {
- cd "$_builddir"
- PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
+ default_prepare
+
+ cd "$builddir"
+ export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
+ PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL INSTALLDIRS=vendor
}
build() {
- cd "$_builddir"
- make && make test
+ cd "$builddir"
+ export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
+ make
}
package() {
- cd "$_builddir"
- make DESTDIR="$pkgdir" install || return 1
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}
-md5sums="0a068a14697dd22602f414a5765d1c79 CGI-Emulate-PSGI-0.21.tar.gz"
-sha256sums="06b8f1864101de69b2264ad3c3a2b15333e428cf9f5d17a777cfc61f8c64093f CGI-Emulate-PSGI-0.21.tar.gz"
-sha512sums="598355fe77f3fa2b71d713809fd73909bbb74b317dc34fb0febed851fc25cfb56ac622d070551f8bdb582ba0ab0bbd69b0e9185d059d5351f02faffe75ea2be8 CGI-Emulate-PSGI-0.21.tar.gz"
+check() {
+ cd "$builddir"
+ export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
+ make test
+}
+
+sha512sums="0e1017175ccab53ef50993c9884990dc85c7cdb30744f4bac2df4486a63fd5fd24e7f4b0e473d39b1f2b4dfdcf12756016edbc39e0fb725c6c610c21e6a7f96a CGI-Emulate-PSGI-0.23.tar.gz"