diff options
author | Anton Leontiev | 2015-08-14 12:53:52 +0300 |
---|---|---|
committer | Anton Leontiev | 2015-08-14 12:53:52 +0300 |
commit | 4b004b76d8793a0fd9f20e6e12b4320ea2535af8 (patch) | |
tree | 4f749d3fca8d038ca65df969dacb342b4ed0244c | |
parent | 519cfe18205268227baf7df7eefff2afddf63fa7 (diff) | |
download | aur-4b004b76d8793a0fd9f20e6e12b4320ea2535af8.tar.gz |
Updated to v0.50
-rw-r--r-- | .SRCINFO | 11 | ||||
-rw-r--r-- | PKGBUILD | 35 | ||||
-rw-r--r-- | PKGBUILD.tt | 19 |
3 files changed, 38 insertions, 27 deletions
@@ -1,17 +1,18 @@ pkgbase = perl-test-class pkgdesc = Perl module to easily create test classes in an xUnit/JUnit style - pkgver = 0.47 + pkgver = 0.50 pkgrel = 1 - url = http://search.cpan.org/dist/Test-Class + url = https://metacpan.org/release/Test-Class arch = any license = GPL checkdepends = perl-test-exception>=0.25 - depends = perl>=5.19.6 depends = perl-attribute-handlers>=0.77 depends = perl-mro-compat>=0.11 + depends = perl-try-tiny + depends = perl-module-runtime options = !emptydirs - source = http://search.cpan.org/CPAN/authors/id/E/ET/ETHER/Test-Class-0.47.tar.gz - md5sums = 952f7ee1f490760a99e812eea33c053c + source = http://search.cpan.org/CPAN/authors/id/E/ET/ETHER/Test-Class-0.50.tar.gz + md5sums = 4cc3aaad36b72f424ed90122701d2451 pkgname = perl-test-class @@ -1,41 +1,46 @@ # CPAN Name : Test::Class # Contributor: Anton Leontiev <bunder /at/ t-25.ru> -# Generator : CPANPLUS::Dist::Arch 1.29 +# Generator : CPANPLUS::Dist::Arch 1.30 pkgname=perl-test-class -pkgver=0.47 +pkgver=0.50 pkgrel=1 pkgdesc='Perl module to easily create test classes in an xUnit/JUnit style' arch=('any') -url='http://search.cpan.org/dist/Test-Class' +url='https://metacpan.org/release/Test-Class' license=('GPL') options=(!emptydirs) -depends=('perl>=5.19.6' +depends=( 'perl-attribute-handlers>=0.77' - 'perl-mro-compat>=0.11') + 'perl-mro-compat>=0.11' + 'perl-try-tiny' + 'perl-module-runtime') checkdepends=( 'perl-test-exception>=0.25') -source=(http://search.cpan.org/CPAN/authors/id/E/ET/ETHER/Test-Class-0.47.tar.gz) -md5sums=('952f7ee1f490760a99e812eea33c053c') +source=(http://search.cpan.org/CPAN/authors/id/E/ET/ETHER/Test-Class-0.50.tar.gz) +md5sums=('4cc3aaad36b72f424ed90122701d2451') + +sanitize() { + unset PERL5LIB PERL_MM_OPT PERL_MB_OPT PERL_LOCAL_LIB_ROOT + export PERL_MM_USE_DEFAULT=1 PERL_AUTOINSTALL="--skipdeps" MODULEBUILDRC=/dev/null +} build() { - cd Test-Class-0.47 - unset PERL5LIB PERL_MM_OPT PERL_LOCAL_LIB_ROOT - export PERL_MM_USE_DEFAULT=1 PERL_AUTOINSTALL=--skipdeps + cd Test-Class-0.50 + sanitize /usr/bin/perl Makefile.PL INSTALLDIRS=vendor make } check() { - cd Test-Class-0.47 - unset PERL5LIB PERL_MM_OPT PERL_LOCAL_LIB_ROOT - export PERL_MM_USE_DEFAULT=1 + cd Test-Class-0.50 + sanitize make test } package() { - cd Test-Class-0.47 - unset PERL5LIB PERL_MM_OPT PERL_LOCAL_LIB_ROOT + cd Test-Class-0.50 + sanitize make install DESTDIR="$pkgdir" find "$pkgdir" -name .packlist -o -name perllocal.pod -delete } diff --git a/PKGBUILD.tt b/PKGBUILD.tt index 61c0e29723a0..73221aa5cf3d 100644 --- a/PKGBUILD.tt +++ b/PKGBUILD.tt @@ -10,32 +10,37 @@ arch=('any') url='[% url %]' license=('GPL') options=(!emptydirs) -depends=('perl>=5.19.6' +depends=( 'perl-attribute-handlers>=0.77' - 'perl-mro-compat>=0.11') + 'perl-mro-compat>=0.11' + 'perl-try-tiny' + 'perl-module-runtime') checkdepends=( 'perl-test-exception>=0.25') source=([% source %]) md5sums=('[% md5sums %]') +sanitize() { + unset PERL5LIB PERL_MM_OPT PERL_MB_OPT PERL_LOCAL_LIB_ROOT + export PERL_MM_USE_DEFAULT=1 PERL_AUTOINSTALL="--skipdeps" MODULEBUILDRC=/dev/null +} + build() { cd [% distdir %] - unset PERL5LIB PERL_MM_OPT PERL_LOCAL_LIB_ROOT - export PERL_MM_USE_DEFAULT=1 PERL_AUTOINSTALL=--skipdeps + sanitize /usr/bin/perl Makefile.PL INSTALLDIRS=vendor make } check() { cd [% distdir %] - unset PERL5LIB PERL_MM_OPT PERL_LOCAL_LIB_ROOT - export PERL_MM_USE_DEFAULT=1 + sanitize make test } package() { cd [% distdir %] - unset PERL5LIB PERL_MM_OPT PERL_LOCAL_LIB_ROOT + sanitize make install DESTDIR="$pkgdir" find "$pkgdir" -name .packlist -o -name perllocal.pod -delete } |