From f9c0576bebf59cc2a1d203bb043ec914db49e900 Mon Sep 17 00:00:00 2001 From: Wen Heping Date: Tue, 18 Mar 2025 09:45:21 +0000 Subject: [PATCH] testing/perl-catalyst-runtime: new aport --- testing/perl-catalyst-runtime/APKBUILD | 56 ++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 testing/perl-catalyst-runtime/APKBUILD diff --git a/testing/perl-catalyst-runtime/APKBUILD b/testing/perl-catalyst-runtime/APKBUILD new file mode 100644 index 00000000000..88d2ee01fc8 --- /dev/null +++ b/testing/perl-catalyst-runtime/APKBUILD @@ -0,0 +1,56 @@ +# Contributor: Wen Heping +# Maintainer: Wen Heping +pkgname=perl-catalyst-runtime +pkgver=5.90132 +pkgrel=0 +#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan +_pkgreal=Catalyst-Runtime +pkgdesc="The Catalyst Framework Runtime" +url="https://metacpan.org/release/Catalyst-Runtime/" +arch="noarch" +license="GPL-1.0-or-later OR Artistic-1.0-Perl" +depends=" + perl perl-cgi-simple perl-cgi-struct perl-class-c3-adopt-next perl-class-load perl-data-dump + perl-data-optlist perl-module-pluggable perl-html-parser perl-http-body perl-http-message + perl-hash-multivalue perl-json-maybexs perl-libwww perl-mro-compat perl-moose + perl-moosex-emulate-class-accessor-fast perl-moosex-getopt perl-moosex-methodattributes + perl-path-class perl-perlio-utf8_strict perl-plack + perl-plack-middleware-fixmissingbodyinredirect perl-plack-middleware-methodoverride + perl-plack-middleware-removeredundantbody perl-plack-middleware-reverseproxy + perl-plack-test-externalserver perl-safe-isa perl-stream-buffered perl-string-rewriteprefix + perl-sub-exporter perl-task-weaken perl-text-simpletable perl-tree-simple + perl-tree-simple-visitorfactory perl-try-tiny perl-uri perl-uri-ws perl-namespace-clean + " +checkdepends="perl-http-message perl-test-fatal" +subpackages="$pkgname-doc" +source="https://cpan.metacpan.org/authors/id/J/JJ/JJNAPIORK/Catalyst-Runtime-$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=" +773875f0607179b5c0a929fe0a49d635613bb9f4924111b2a22617cdc63675947a378a0acad5c54c91133b345e817e0ce305c5aa35b53950308b9f3c6bf50519 Catalyst-Runtime-5.90132.tar.gz +"