diff options
author | Francesco Colista <francesco.colista@gmail.com> | 2012-10-27 17:51:05 +0000 |
---|---|---|
committer | Francesco Colista <francesco.colista@gmail.com> | 2012-10-27 17:51:05 +0000 |
commit | 8c63cb41b50d614d5cbc422f8f3a10712b4a7468 (patch) | |
tree | a9f9bd5a6edff7000b5b107bc5b791a1d7800d3c | |
parent | bb4a08e8a6d32c47cbc974665588c0277b96fa9a (diff) | |
download | aports-8c63cb41b50d614d5cbc422f8f3a10712b4a7468.tar.bz2 aports-8c63cb41b50d614d5cbc422f8f3a10712b4a7468.tar.xz |
testing/perl-namespace-autoclean: new aport
-rw-r--r-- | testing/perl-namespace-autoclean/APKBUILD | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/testing/perl-namespace-autoclean/APKBUILD b/testing/perl-namespace-autoclean/APKBUILD new file mode 100644 index 0000000000..015182bd33 --- /dev/null +++ b/testing/perl-namespace-autoclean/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-namespace-autoclean +_pkgreal=namespace-autoclean +pkgver=0.13 +pkgrel=0 +pkgdesc="Keep imports out of your namespace" +url="http://search.cpan.org/dist/namespace-autoclean/" +arch="noarch" +license="GPL PerlArtistic" +cpandepends="perl-b-hooks-endofscope perl-namespace-clean perl-moose" +cpanmakedepends="perl-moose perl-sub-name " +depends="$cpandepends" +makedepends="perl-dev $cpanmakedepends" +subpackages="$pkgname-doc" +source="http://search.cpan.org/CPAN/authors/id/B/BO/BOBTFISH/$_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="ec5527b420ec45d3f930c6345ec23926 namespace-autoclean-0.13.tar.gz" |