aboutsummaryrefslogtreecommitdiffstats
path: root/testing/perl-moose/APKBUILD
blob: 43d08c739e3c17b5efad9b9c997e7fdfda273fd3 (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
# Contributor: Francesco Colista <francesco.colista@gmail.com>
# Maintainer: Francesco Colista <francesco.colista@gmail.com>
pkgname=perl-moose
_pkgreal=Moose
pkgver=2.1605
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"
source="http://search.cpan.org/CPAN/authors/id/E/ET/ETHER/Moose-$pkgver.tar.gz"

_builddir="$srcdir/$_pkgreal-$pkgver"

prepare() {
	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.
}

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

md5sums="5d1fd6ab1edebaad2ef1fa59a17b547a  Moose-2.1605.tar.gz"
sha256sums="ca94e4e1fe65e98238db1df416ff66c856ef9b11f47b43802ed418c001b5e8ae  Moose-2.1605.tar.gz"
sha512sums="66a868a017885e626c1d46c3d85452dc04c7350e8a3c2abc20a882dd4e1854dd50a17ea8488d024edd0b0219b7f2800186c62c5a0de23109ccd19ef88e52cadf  Moose-2.1605.tar.gz"