diff options
author | Francesco Colista <francesco.colista@gmail.com> | 2012-10-27 17:55:23 +0000 |
---|---|---|
committer | Francesco Colista <francesco.colista@gmail.com> | 2012-10-27 17:55:23 +0000 |
commit | cec589c983da98f39b4ded4290f2b6885984d8f6 (patch) | |
tree | 06543975ba1bf11f8386c434996bc32354fed7e6 /testing/perl-throwable/APKBUILD | |
parent | eb7acb90bffb0d701fdbb777e90c4ef42fcb7406 (diff) | |
download | aports-cec589c983da98f39b4ded4290f2b6885984d8f6.tar.bz2 aports-cec589c983da98f39b4ded4290f2b6885984d8f6.tar.xz |
testing/perl-throwable: new aport
Diffstat (limited to 'testing/perl-throwable/APKBUILD')
-rw-r--r-- | testing/perl-throwable/APKBUILD | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/testing/perl-throwable/APKBUILD b/testing/perl-throwable/APKBUILD new file mode 100644 index 000000000..ca12c4d4b --- /dev/null +++ b/testing/perl-throwable/APKBUILD @@ -0,0 +1,39 @@ +# Automatically generated by apkbuild-cpan, template 1 +# Contributor: Francesco Colista <francesco.colista@gmail.com> +# Maintainer: Francesco Colista <francesco.colista@gmail.com> +pkgname=perl-throwable +_pkgreal=Throwable +pkgver=0.200003 +pkgrel=0 +pkgdesc="a role for classes that can be thrown" +url="http://search.cpan.org/dist/Throwable/" +arch="noarch" +license="GPL PerlArtistic" +cpandepends="perl-moo perl-class-load perl-moox-types-mooselike perl-devel-stacktrace" +cpanmakedepends=" " +depends="$cpandepends" +makedepends="perl-dev $cpanmakedepends" +subpackages="$pkgname-doc" +source="http://search.cpan.org/CPAN/authors/id/R/RJ/RJBS/$_pkgreal-$pkgver.tar.gz" + +_builddir="$srcdir/$_pkgreal-$pkgver" + +prepare() { + cd "$_builddir" + export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` + PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor +} + +build() { + cd "$_builddir" + export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` + make && make test +} + +package() { + cd "$_builddir" + make DESTDIR="$pkgdir" install || return 1 + find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete +} + +md5sums="31f866053c9c72787308a44f32a2012d Throwable-0.200003.tar.gz" |