aboutsummaryrefslogtreecommitdiffstats
path: root/community
diff options
context:
space:
mode:
authorTimothy Legge <timlegge@gmail.com>2020-03-23 01:03:22 +0000
committerRasmus Thomsen <oss@cogitri.dev>2020-03-23 09:47:46 +0000
commit5f552ed0e5ebe7e94eb994c4f3d60b0470e1549c (patch)
treebad8a91f51bfed8e63a478194c6600218e626558 /community
parentcd2ac3ec978c4dbc58a45a024c9d7f08a273a758 (diff)
downloadaports-5f552ed0e5ebe7e94eb994c4f3d60b0470e1549c.tar.gz
aports-5f552ed0e5ebe7e94eb994c4f3d60b0470e1549c.tar.bz2
aports-5f552ed0e5ebe7e94eb994c4f3d60b0470e1549c.tar.xz
community/perl-chi: move from testing and modernize
Diffstat (limited to 'community')
-rw-r--r--community/perl-chi/APKBUILD36
1 files changed, 36 insertions, 0 deletions
diff --git a/community/perl-chi/APKBUILD b/community/perl-chi/APKBUILD
new file mode 100644
index 0000000000..0492d5dafd
--- /dev/null
+++ b/community/perl-chi/APKBUILD
@@ -0,0 +1,36 @@
+# Automatically generated by apkbuild-cpan, template 3
+# Contributor: Timothy Legge <timlegge@gmail.com>
+# Maintainer: Timothy Legge <timlegge@gmail.com>
+pkgname=perl-chi
+#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
+_pkgreal=CHI
+pkgver=0.60
+pkgrel=1
+pkgdesc="Unified cache handling interface"
+url="https://metacpan.org/release/CHI/"
+arch="noarch"
+license="GPL-1.0-or-later OR Artistic-1.0-Perl"
+depends="perl perl-time-duration perl-moo perl-carp-assert perl-time-duration-parse perl-moox-types-mooselike perl-digest-jhash perl-task-weaken perl-hash-moreutils perl-try-tiny perl-data-uuid perl-moox-types-mooselike-numeric perl-class-load perl-list-moreutils perl-json-maybexs perl-log-any perl-string-rewriteprefix"
+makedepends="perl-dev"
+checkdepends="perl-test-warn perl-timedate perl-test-deep perl-test-class perl-test-exception"
+subpackages="$pkgname-doc"
+source="https://cpan.metacpan.org/authors/id/J/JS/JSWARTZ/CHI-$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
+ make
+}
+
+check() {
+ export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
+ make test
+}
+
+package() {
+ make DESTDIR="$pkgdir" install
+ find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
+}
+
+sha512sums="06d3f22465f38868795a4ee97e1b3e40e66d423c4e28c066c2f11721b770e77c6134ad122ec9a7ea6a7e215d0b712e57c54d91bae02770fbc61e3c10a465b29d CHI-0.60.tar.gz"