mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-05-06 04:46:42 +02:00
testing/perl-dancer2: new aport
This commit is contained in:
parent
584fe28f51
commit
8900604ba2
58
testing/perl-dancer2/APKBUILD
Normal file
58
testing/perl-dancer2/APKBUILD
Normal file
@ -0,0 +1,58 @@
|
||||
# Automatically generated by apkbuild-cpan, template 4
|
||||
# Contributor: Wen Heping <wenheping2000@hotmail.com>
|
||||
# Maintainer: Wen Heping <wenheping2000@hotmail.com>
|
||||
pkgname=perl-dancer2
|
||||
pkgver=1.1.2
|
||||
pkgrel=0
|
||||
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
|
||||
_pkgreal=Dancer2
|
||||
pkgdesc="Lightweight yet powerful web application framework"
|
||||
url="https://metacpan.org/release/Dancer2/"
|
||||
arch="noarch"
|
||||
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
|
||||
depends="
|
||||
perl perl-cli-osprey perl-clone perl-config-any perl-exporter-tiny perl-file-share
|
||||
perl-file-which perl-http-date perl-http-headers-fast perl-hash-merge-simple
|
||||
perl-hash-multivalue perl-import-into perl-json-maybexs perl-module-pluggable
|
||||
perl-module-runtime perl-moo perl-path-tiny perl-plack
|
||||
perl-plack-middleware-fixmissingbodyinredirect perl-plack-middleware-removeredundantbody
|
||||
perl-ref-util perl-role-tiny perl-safe-isa perl-sub-quote perl-template-toolkit
|
||||
perl-template-tiny perl-type-tiny perl-uri perl-yaml
|
||||
"
|
||||
makedepends="perl-file-sharedir-install"
|
||||
checkdepends="
|
||||
perl-capture-tiny perl-http-cookies perl-http-message perl-test-eol
|
||||
perl-test-fatal
|
||||
"
|
||||
subpackages="$pkgname-doc"
|
||||
source="https://cpan.metacpan.org/authors/id/C/CR/CROMEDOME/Dancer2-$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="
|
||||
31123ed31ba4142615ccbb4419b7ab2c72d2fe40018d06e4781a35234cd5ea9d706f8b54687b6fb36fd9c027d435c8061aba2f303c4a9e63991c5c1a3e2962b5 Dancer2-1.1.2.tar.gz
|
||||
"
|
||||
Loading…
x
Reference in New Issue
Block a user