aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrancesco Colista <fcolista@alpinelinux.org>2017-05-04 11:52:30 +0000
committerFrancesco Colista <fcolista@alpinelinux.org>2017-05-05 09:24:18 +0000
commitb4b182c4967791ace71a37baca62306c852109ee (patch)
tree82a93c2c3266a240021a0ef18fc840d0e234006f
parentd4d2d900b02749896acaeeb71cc7417152d657cf (diff)
downloadaports-b4b182c4967791ace71a37baca62306c852109ee.tar.bz2
aports-b4b182c4967791ace71a37baca62306c852109ee.tar.xz
community/perl-moose: upgrade to 2.2005, modernize APKBUILD
-rw-r--r--community/perl-moose/APKBUILD27
1 files changed, 14 insertions, 13 deletions
diff --git a/community/perl-moose/APKBUILD b/community/perl-moose/APKBUILD
index 7954acf250..2064f74112 100644
--- a/community/perl-moose/APKBUILD
+++ b/community/perl-moose/APKBUILD
@@ -2,7 +2,7 @@
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=perl-moose
_pkgreal=Moose
-pkgver=2.2004
+pkgver=2.2005
pkgrel=0
pkgdesc="A postmodern object system for Perl 5"
url="http://search.cpan.org/dist/Moose/"
@@ -17,30 +17,31 @@ cpandepends="perl-task-weaken perl-package-stash perl-class-load-xs
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
+options="!check"
source="http://search.cpan.org/CPAN/authors/id/E/ET/ETHER/Moose-$pkgver.tar.gz"
+builddir="$srcdir/$_pkgreal-$pkgver"
-_builddir="$srcdir/$_pkgreal-$pkgver"
+check() {
+ cd "$builddir"
+ # we cannot run 'make test' since the test
+ # suite would introduce circular dependencies.
+}
prepare() {
- cd "$_builddir"
+ cd "$builddir"
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
}
build() {
- cd "$_builddir"
- make || return 1
-
- # we cannot run 'make test' since the test
- # suite would introduce circular dependencies.
+ cd "$builddir"
+ make
}
package() {
- cd "$_builddir"
- make DESTDIR="$pkgdir" install || return 1
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}
-md5sums="f1038784cb5427d4e67868eb87ca6fa1 Moose-2.2004.tar.gz"
-sha256sums="e4c881bf8d8fd5821aea8a8c7c57ed850c2373d4800949798a55c06ca9e8d2b0 Moose-2.2004.tar.gz"
-sha512sums="30db47b7416347e059b0a43ac4c95c253aac9391a999cb5a484a040b9ce9e33404ae89b34cd28e0cce35506cdfe3a576b91fc941c4dbbe601f4a7d97a01867e9 Moose-2.2004.tar.gz"
+sha512sums="7c6294120335343c392d04010e85a920c2a1ac0ca5531e39441d39fc38e6075a83211c12d2fbc7b7c6ed162dd6df4c974d76e7e6491b5b3527cf1a9d48a98afb Moose-2.2005.tar.gz"