Package Details: perl-test-cleannamespaces 0.23-3

Git Clone URL: https://aur.archlinux.org/perl-test-cleannamespaces.git (read-only)
Package Base: perl-test-cleannamespaces
Description: Check for uncleaned imports
Upstream URL: http://search.mcpan.org/dist/Test-CleanNamespaces
Licenses: GPL, PerlArtistic
Submitter: atweiden
Maintainer: Manifest0
Last Packager: Manifest0
Votes: 13
Popularity: 0.000120
First Submitted: 2014-09-26 15:25
Last Updated: 2018-09-09 15:13

Latest Comments

Manifest0 commented on 2018-09-09 15:14

@chrko, Thanks for the tip. Done! :-)

chrko commented on 2018-09-04 09:09

Thanks for updating the package!

Building in a clean chroot fails due to the lack of perl-file-pushd & perl-test-needs which yar commented on 2018/08/07. Please add checkdepends=('perl-file-pushd' 'perl-test-needs')

Manifest0 commented on 2018-08-30 22:43

PKGBUILD for the last version:

pkgname='perl-test-cleannamespaces'

pkgver='0.23'

pkgrel='1'

pkgdesc="Check for uncleaned imports"

arch=('any')

license=('PerlArtistic' 'GPL')

options=('!emptydirs')

depends=('perl-file-find-rule' 'perl-file-find-rule-perl' 'perl-module-runtime' 'perl-package-stash>=0.14' 'perl-role-tiny>=1.003000' 'perl-sub-exporter' 'perl-sub-identify' 'perl-test-deep' 'perl-test-requires' 'perl-test-tester' 'perl-test-warnings>=0.009' 'perl-namespace-clean' 'perl-test-needs' 'perl-file-pushd')

makedepends=()

url='http://search.mcpan.org/dist/Test-CleanNamespaces'

source=("http://search.mcpan.org/CPAN/authors/id/E/ET/ETHER/Test-CleanNamespaces-$pkgver.tar.gz")

sha512sums=('c40587c09bcd6a6ebc6801e12a3d33fcd2695b650fe02546a8a6da7d038ba5b1218d730a09f3b8942824a0506aca3edfcbcdf204906569dad5c46816b91e8a99')

_distdir="Test-CleanNamespaces-$pkgver"

build() {

( export PERL_MM_USE_DEFAULT=1 PERL5LIB="" \

  PERL_AUTOINSTALL=--skipdeps                            \

  PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='$pkgdir'"     \

  PERL_MB_OPT="--installdirs vendor --destdir '$pkgdir'" \

  MODULEBUILDRC=/dev/null

cd "$srcdir/$_distdir"

/usr/bin/perl Makefile.PL

make

)

}

check() {

cd "$srcdir/$_distdir"

( export PERL_MM_USE_DEFAULT=1 PERL5LIB=""

make test

)

}

package() {

cd "$srcdir/$_distdir"

make install

find "$pkgdir" -name .packlist -o -name perllocal.pod -delete

}

Local Variables:
mode: shell-script
sh-basic-offset: 2
End:
vim:set ts=2 sw=2 et:

J5lx commented on 2018-08-10 17:16

I guess if they’re only needed for tests they should go into checkdepends.

yar commented on 2018-08-07 05:53

This updates cleanly to 0.23 with no complications. You should also add perl-file-pushd & perl-test-needs to makedepends so tests can succeed. Thanks!