diff options
author | Francesco Colista <fcolista@alpinelinux.org> | 2014-12-25 14:46:13 +0000 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2014-12-25 14:46:13 +0000 |
commit | c67ebfe058f1531946714c2cf280326720a15775 (patch) | |
tree | 6507d290070dbe21518b6a4cca6af2884169c300 /main | |
parent | d2727a1656f95137bf438857fa1895f500f99c44 (diff) | |
download | aports-c67ebfe058f1531946714c2cf280326720a15775.tar.bz2 aports-c67ebfe058f1531946714c2cf280326720a15775.tar.xz |
testing/perl-namespace-clean: moved to main
Diffstat (limited to 'main')
-rw-r--r-- | main/perl-namespace-clean/APKBUILD | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/main/perl-namespace-clean/APKBUILD b/main/perl-namespace-clean/APKBUILD new file mode 100644 index 0000000000..c22b543c06 --- /dev/null +++ b/main/perl-namespace-clean/APKBUILD @@ -0,0 +1,41 @@ +# Automatically generated by apkbuild-cpan, template 1 +# Contributor: Francesco Colista <francesco.colista@gmail.com> +# Maintainer: Francesco Colista <francesco.colista@gmail.com> +pkgname=perl-namespace-clean +_pkgreal=namespace-clean +pkgver=0.25 +pkgrel=1 +pkgdesc="Keep imports and functions out of your namespace" +url="http://search.cpan.org/dist/namespace-clean/" +arch="noarch" +license="GPL PerlArtistic" +cpandepends="perl-package-stash perl-sub-name perl-sub-identify" +cpanmakedepends="perl-b-hooks-endofscope" +depends="$cpandepends" +makedepends="perl-dev $cpanmakedepends" +subpackages="$pkgname-doc" +source="http://search.cpan.org/CPAN/authors/id/R/RI/RIBASUSHI/$_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="da81d44f114a947b873f8df11a3c02ec namespace-clean-0.25.tar.gz" +sha256sums="946a2b7b8219562818867ad915cd493637e2639f901db050b835500c8e6ecd04 namespace-clean-0.25.tar.gz" +sha512sums="69d46adac8d3f249b36310583568705e9dea6a308ce9265f4986063ef48b8bdfd4fdff86c602639090edc5936422a1b455d0a5e89d9c3bd5d7443beba8de5d14 namespace-clean-0.25.tar.gz" |