aboutsummaryrefslogtreecommitdiffstats
path: root/community/perl-moose/APKBUILD
blob: 2064f74112b4a4f9e7abd307ff0ab73e796f8f83 (plain)
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
45
46
47
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=perl-moose
_pkgreal=Moose
pkgver=2.2005
pkgrel=0
pkgdesc="A postmodern object system for Perl 5"
url="http://search.cpan.org/dist/Moose/"
arch="all"
license="GPL PerlArtistic"
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"
subpackages="$pkgname-doc"
options="!check"
source="http://search.cpan.org/CPAN/authors/id/E/ET/ETHER/Moose-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"

check() {
	cd "$builddir"
    # we cannot run 'make test' since the test
	# suite would introduce circular dependencies.
}

prepare() {
	cd "$builddir"
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
}

build() {
	cd "$builddir"
	make 
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}


sha512sums="7c6294120335343c392d04010e85a920c2a1ac0ca5531e39441d39fc38e6075a83211c12d2fbc7b7c6ed162dd6df4c974d76e7e6491b5b3527cf1a9d48a98afb  Moose-2.2005.tar.gz"