aboutsummaryrefslogtreecommitdiffstats
path: root/testing/perl-starman
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2017-07-06 11:41:38 +0300
committerTimo Teräs <timo.teras@iki.fi>2017-07-11 14:31:24 +0300
commiteb3053bbc7c35f205fc05510cc5885324bd5d6f6 (patch)
treea66c30ec8e1ec4f6c4a7d553a26755a299ae66b5 /testing/perl-starman
parent14b652946dffcc42328616781a9c8c0d710fcfad (diff)
downloadaports-eb3053bbc7c35f205fc05510cc5885324bd5d6f6.tar.bz2
aports-eb3053bbc7c35f205fc05510cc5885324bd5d6f6.tar.xz
testing/perl-starman: new aport
http://search.cpan.org/dist/Starman/
Diffstat (limited to 'testing/perl-starman')
-rw-r--r--testing/perl-starman/APKBUILD47
1 files changed, 47 insertions, 0 deletions
diff --git a/testing/perl-starman/APKBUILD b/testing/perl-starman/APKBUILD
new file mode 100644
index 0000000000..5e69c5ce48
--- /dev/null
+++ b/testing/perl-starman/APKBUILD
@@ -0,0 +1,47 @@
+# 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-starman
+_pkgreal=Starman
+pkgver=0.4014
+pkgrel=0
+pkgdesc="High-performance preforking PSGI/Plack web server"
+url="http://search.cpan.org/dist/Starman/"
+arch="noarch"
+license="GPL PerlArtistic"
+cpandepends="perl-http-message perl-data-dump perl-http-parser-xs perl-test-tcp perl-net-server perl-http-date perl-plack"
+cpanmakedepends=""
+cpancheckdepends="perl-libwww perl-test-requires"
+depends="$cpandepends"
+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"
+
+prepare() {
+ default_prepare || return 1
+
+ cd "$builddir"
+ export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
+ perl Build.PL installdirs=vendor || return 1
+}
+
+build() {
+ cd "$builddir"
+ export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
+ ./Build
+}
+
+package() {
+ cd "$builddir"
+ ./Build install --destdir="$pkgdir" --prefix=/usr --installdirs=vendor || return 1
+ find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
+}
+
+check() {
+ cd "$builddir"
+ ./Build test
+}
+
+sha512sums="27e5735a1bd2c29944c469f19a6e05cae038da0f678ca6a12bdae87dd075e4e433e3f4126507f90284a71aa5baf1b8babd120603d265d8b1f3b7b1a6528e0c9f Starman-0.4014.tar.gz"