mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-13 03:09:51 +03:00
testing/perl-web-machine: new aport
This commit is contained in:
parent
09abbe4c68
commit
e40419906c
1 changed files with 48 additions and 0 deletions
48
testing/perl-web-machine/APKBUILD
Normal file
48
testing/perl-web-machine/APKBUILD
Normal file
|
@ -0,0 +1,48 @@
|
||||||
|
# Contributor: Wen Heping <wenhepingalpine@sohu.com>
|
||||||
|
# Maintainer: Wen Heping <wenhepingalpine@sohu.com>
|
||||||
|
pkgname=perl-web-machine
|
||||||
|
pkgver=0.17
|
||||||
|
pkgrel=0
|
||||||
|
# _pkgreal is used by apkbuild-cpan to find modules at MetaCpan
|
||||||
|
_pkgreal=Web-Machine
|
||||||
|
pkgdesc="A Perl port of Webmachine"
|
||||||
|
url="https://metacpan.org/release/Web-Machine/"
|
||||||
|
arch="noarch"
|
||||||
|
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
|
||||||
|
depends="
|
||||||
|
perl perl-http-headers-actionpack perl-http-message perl-hash-multivalue perl-io-handle-util
|
||||||
|
perl-module-runtime perl-plack perl-sub-exporter perl-try-tiny
|
||||||
|
"
|
||||||
|
checkdepends="perl-plack perl-http-message perl-net-http perl-test-failwarnings perl-test-fatal"
|
||||||
|
subpackages="$pkgname-doc"
|
||||||
|
source="https://cpan.metacpan.org/authors/id/D/DR/DROLSKY/Web-Machine-$pkgver.tar.gz"
|
||||||
|
builddir="$srcdir/$_pkgreal-$pkgver"
|
||||||
|
|
||||||
|
build() {
|
||||||
|
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
|
||||||
|
PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL \
|
||||||
|
INSTALLDIRS=vendor \
|
||||||
|
NO_PACKLIST=1 \
|
||||||
|
NO_PERLLOCAL=1
|
||||||
|
make
|
||||||
|
}
|
||||||
|
|
||||||
|
check() {
|
||||||
|
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
|
||||||
|
make test
|
||||||
|
}
|
||||||
|
|
||||||
|
package() {
|
||||||
|
make DESTDIR="$pkgdir" install
|
||||||
|
}
|
||||||
|
|
||||||
|
doc() {
|
||||||
|
local file; find "$pkgdir" -name "*.pod" | while read -r file; do
|
||||||
|
amove "${file#"$pkgdir"}"
|
||||||
|
done
|
||||||
|
default_doc
|
||||||
|
}
|
||||||
|
|
||||||
|
sha512sums="
|
||||||
|
be05338cba3a46b16d508518c9c4b67f88b1cd979a4354668b53898f6e03e40e1fd59ab46850668f2bb75d3927f07790d68cf57a1d7aabaa0ed9181c2db56410 Web-Machine-0.17.tar.gz
|
||||||
|
"
|
Loading…
Add table
Add a link
Reference in a new issue