commit c143ab245d3e4c15156bbdd8b434f5bbba558a02 Author: Anton Leontiev Date: Fri Aug 23 16:58:29 2013 +0400 Initial commit diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..abd0c936b12b --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,15 @@ +pkgbase = perl-test-failwarnings + pkgdesc = A Perl package that add test failures if warnings are caught + pkgver = 0.005 + pkgrel = 1 + url = http://search.cpan.org/dist/Test-FailWarnings + arch = any + license = Apache + checkdepends = perl-capture-tiny + depends = perl>=5.10.1 + options = !emptydirs + source = http://search.cpan.org/CPAN/authors/id/D/DA/DAGOLDEN/Test-FailWarnings-0.005.tar.gz + md5sums = b73257948f9b656487216f3a95812d32 + +pkgname = perl-test-failwarnings + diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..e6b6b4b8077d --- /dev/null +++ b/.gitignore @@ -0,0 +1,6 @@ +*.tar.gz +*.tar.bz2 +*.tar.xz +*.tar.lz +src/ +pkg/ \ No newline at end of file diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..6d6a99e84cd0 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,33 @@ +# CPAN Name : Test::FailWarnings +# Contributor: Anton Leontiev +# Generator : CPANPLUS::Dist::Arch 1.25 + +pkgname=perl-test-failwarnings +pkgver=0.005 +pkgrel=1 +pkgdesc='A Perl package that add test failures if warnings are caught' +arch=('any') +url='http://search.cpan.org/dist/Test-FailWarnings' +license=('Apache') +depends=('perl>=5.10.1') +checkdepends=('perl-capture-tiny') +source=(http://search.cpan.org/CPAN/authors/id/D/DA/DAGOLDEN/Test-FailWarnings-0.005.tar.gz) +options=(!emptydirs) +md5sums=('b73257948f9b656487216f3a95812d32') + +build() { + cd "$srcdir/Test-FailWarnings-0.005" + PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor + make +} + +check() { + cd "$srcdir/Test-FailWarnings-0.005" + make test +} + +package() { + cd "$srcdir/Test-FailWarnings-0.005" + make install DESTDIR="$pkgdir" + find "$pkgdir" -name .packlist -o -name perllocal.pod -delete +} diff --git a/PKGBUILD.tt b/PKGBUILD.tt new file mode 100644 index 000000000000..18b2ef403c07 --- /dev/null +++ b/PKGBUILD.tt @@ -0,0 +1,33 @@ +# CPAN Name : Test::FailWarnings +# Contributor: [% packager %] +# Generator : CPANPLUS::Dist::Arch [% version %] + +pkgname=[% pkgname %] +pkgver=[% pkgver %] +pkgrel=[% pkgrel %] +pkgdesc='A Perl package that add test failures if warnings are caught' +arch=('any') +url='[% url %]' +license=('Apache') +depends=('perl>=5.10.1') +checkdepends=('perl-capture-tiny') +source=([% source %]) +options=(!emptydirs) +md5sums=('[% md5sums %]') + +build() { + cd "$srcdir/[% distdir %]" + PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor + make +} + +check() { + cd "$srcdir/[% distdir %]" + make test +} + +package() { + cd "$srcdir/[% distdir %]" + make install DESTDIR="$pkgdir" + find "$pkgdir" -name .packlist -o -name perllocal.pod -delete +}