aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimothy Legge <timlegge@gmail.com>2020-04-14 00:06:47 +0000
committerAriadne Conill <ariadne@dereferenced.org>2020-04-14 02:19:27 +0000
commit57d6794ce4dd76f80d9c1eb44e127f1627d76976 (patch)
treeae9a665d8fac62c15cb130601de98ea71bb2ecd3
parent8dd30d2d3b12dcdca0ef8717a4fbd5984eec6de6 (diff)
downloadaports-57d6794ce4dd76f80d9c1eb44e127f1627d76976.tar.gz
aports-57d6794ce4dd76f80d9c1eb44e127f1627d76976.tar.bz2
aports-57d6794ce4dd76f80d9c1eb44e127f1627d76976.tar.xz
community/perl-moose: add missing depends and moderize APKBUILD
-rw-r--r--community/perl-moose/APKBUILD36
1 files changed, 20 insertions, 16 deletions
diff --git a/community/perl-moose/APKBUILD b/community/perl-moose/APKBUILD
index e94627de1c..cebefff80f 100644
--- a/community/perl-moose/APKBUILD
+++ b/community/perl-moose/APKBUILD
@@ -1,39 +1,43 @@
+# Automatically generated by apkbuild-cpan, template 3
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=perl-moose
+#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=Moose
pkgver=2.2012
-pkgrel=0
+pkgrel=1
pkgdesc="A postmodern object system for Perl 5"
options="!check" # Tests introduce circular dependencies
-url="https://metacpan.org/release/Moose"
+url="https://metacpan.org/release/Moose/"
arch="all"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
-cpandepends="perl-task-weaken perl-package-stash perl-class-load-xs
- perl-module-runtime perl-dist-checkconflicts perl-package-stash-xs
- perl-package-deprecationmanager perl-sub-exporter perl-params-util
- perl-devel-stacktrace perl-sub-name perl-module-runtime-conflicts
- perl-class-load perl-eval-closure perl-list-moreutils perl-try-tiny
- perl-data-optlist perl-devel-globaldestruction perl-mro-compat"
-depends="$cpandepends"
-makedepends="perl-dev $cpanmakedepends"
+depends="perl perl-task-weaken perl-module-runtime perl-list-moreutils
+ perl-data-optlist perl-params-util perl-module-runtime-conflicts
+ perl-sub-name perl-package-deprecationmanager perl-dist-checkconflicts
+ perl-try-tiny perl-class-load perl-devel-globaldestruction
+ perl-sub-identify perl-package-stash perl-eval-closure perl-devel-overloadinfo
+ perl-sub-exporter perl-package-stash-xs perl-class-load-xs perl-mro-compat
+ perl-devel-stacktrace"
+makedepends="perl-dev perl-dist-checkconflicts"
+checkdepends="perl-test-cleannamespaces perl-cpan-meta-check perl-test-requires perl-test-fatal"
subpackages="$pkgname-doc"
-options="!check"
source="https://cpan.metacpan.org/authors/id/E/ET/ETHER/Moose-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"
-prepare() {
- PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
-}
-
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="195079c32ce0110ae5d76bc1753b9e5c9aa8b3132049912d85600b7d29470b3426e10ccac50a24acbadbb8e00b68c99a98ca975a001b12096b02f2fa1c1264f3 Moose-2.2012.tar.gz"