From e01a2d1bd57eb8031396f99b347bf8fa7f041df3 Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Mon, 1 Oct 2018 21:54:59 +0000 Subject: user/perl-test-cleannamespaces: new package --- user/perl-test-cleannamespaces/APKBUILD | 36 +++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 user/perl-test-cleannamespaces/APKBUILD diff --git a/user/perl-test-cleannamespaces/APKBUILD b/user/perl-test-cleannamespaces/APKBUILD new file mode 100644 index 000000000..718bc3a27 --- /dev/null +++ b/user/perl-test-cleannamespaces/APKBUILD @@ -0,0 +1,36 @@ +# Contributor: A. Wilcox +# Maintainer: Adélie Perl Team +pkgname=perl-test-cleannamespaces +pkgver=0.23 +pkgrel=0 +pkgdesc="Check Perl code for uncleaned imports" +url="https://metacpan.org/release/Test-CleanNamespaces" +arch="noarch" +license="Artistic-1.0-Perl" +depends="perl-file-pushd perl-module-runtime perl-namespace-clean + perl-package-stash perl-sub-identify" +makedepends="perl-dev" +checkdepends="perl-moo perl-mouse perl-sub-exporter perl-test-deep + perl-test-needs perl-test-warnings" +subpackages="$pkgname-doc" +source="https://cpan.metacpan.org/authors/id/E/ET/ETHER/Test-CleanNamespaces-$pkgver.tar.gz" +builddir="$srcdir/Test-CleanNamespaces-$pkgver" + +build() { + cd "$builddir" + PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor + make +} + +check() { + cd "$builddir" + make test +} + +package() { + cd "$builddir" + make DESTDIR="$pkgdir" install + find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete +} + +sha512sums="c40587c09bcd6a6ebc6801e12a3d33fcd2695b650fe02546a8a6da7d038ba5b1218d730a09f3b8942824a0506aca3edfcbcdf204906569dad5c46816b91e8a99 Test-CleanNamespaces-0.23.tar.gz" -- cgit v1.2.3-70-g09d2