summaryrefslogtreecommitdiff
path: root/user/perl-test-cleannamespaces
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-10-01 21:54:59 +0000
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-10-01 21:54:59 +0000
commite01a2d1bd57eb8031396f99b347bf8fa7f041df3 (patch)
tree3f223c99d2828aeba3bd646a68bf223571210df7 /user/perl-test-cleannamespaces
parentbac3031e3933cc7baaea22772b393a3d47bac797 (diff)
downloadpackages-e01a2d1bd57eb8031396f99b347bf8fa7f041df3.tar.gz
packages-e01a2d1bd57eb8031396f99b347bf8fa7f041df3.tar.bz2
packages-e01a2d1bd57eb8031396f99b347bf8fa7f041df3.tar.xz
packages-e01a2d1bd57eb8031396f99b347bf8fa7f041df3.zip
user/perl-test-cleannamespaces: new package
Diffstat (limited to 'user/perl-test-cleannamespaces')
-rw-r--r--user/perl-test-cleannamespaces/APKBUILD36
1 files changed, 36 insertions, 0 deletions
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 <awilfox@adelielinux.org>
+# Maintainer: Adélie Perl Team <adelie-perl@lists.adelielinux.org>
+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"