aboutsummaryrefslogtreecommitdiffstats
path: root/community/perl-moose/APKBUILD
blob: 6d7e08ca63e6d3abed6531c417eeda1927ee5c1a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# 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.2014
pkgrel=0
pkgdesc="A postmodern object system for Perl 5"
options="!check" # Tests introduce circular dependencies
url="https://metacpan.org/release/Moose/"
arch="all"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
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"
checkdepends="perl-test-cleannamespaces perl-cpan-meta-check perl-test-requires perl-test-fatal"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/E/ET/ETHER/Moose-$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="ee472cffe928b86732150bd68d1a74f7c2d5769ef3369339e429361a093f3381fdc327910c1a4b9576c01b88ae90f86f1f8979dc0784fcce8ffeb9b42d67aafc  Moose-2.2014.tar.gz"