aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorRoberto Oliveira <robertoguimaraes8@gmail.com>2017-11-16 16:39:22 +0000
committerFrancesco Colista <fcolista@alpinelinux.org>2017-11-16 18:07:31 +0000
commita8c1e56979e5f3c606d506aee938a53fac090d90 (patch)
tree62c3f3463ce6e5f93771c73d7421c51c670f8daa /main
parenta7d1d84599308cb284ee361b63890d3fce66af12 (diff)
downloadaports-a8c1e56979e5f3c606d506aee938a53fac090d90.tar.bz2
aports-a8c1e56979e5f3c606d506aee938a53fac090d90.tar.xz
community/perl-test-failwarnings: move to main
It is required by perl-path-tiny package
Diffstat (limited to 'main')
-rw-r--r--main/perl-test-failwarnings/APKBUILD45
1 files changed, 45 insertions, 0 deletions
diff --git a/main/perl-test-failwarnings/APKBUILD b/main/perl-test-failwarnings/APKBUILD
new file mode 100644
index 0000000000..d4450ecaa7
--- /dev/null
+++ b/main/perl-test-failwarnings/APKBUILD
@@ -0,0 +1,45 @@
+# Automatically generated by apkbuild-cpan, template 1
+# Contributor: Francesco Colista <fcolista@alpinelinux.org>
+# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
+pkgname=perl-test-failwarnings
+_pkgreal=Test-FailWarnings
+pkgver=0.008
+pkgrel=1
+pkgdesc="Add test failures if warnings are caught"
+url="http://search.cpan.org/dist/Test-FailWarnings/"
+arch="noarch"
+license="apache_2_0"
+cpandepends=""
+cpanmakedepends="perl-capture-tiny"
+depends="$cpandepends"
+makedepends="perl-dev $cpanmakedepends"
+subpackages="$pkgname-doc"
+source="http://search.cpan.org/CPAN/authors/id/D/DA/DAGOLDEN/$_pkgreal-$pkgver.tar.gz"
+builddir="$srcdir/$_pkgreal-$pkgver"
+
+prepare() {
+ default_prepare
+
+ cd "$builddir"
+ export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
+ PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
+}
+
+build() {
+ cd "$builddir"
+ export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
+ make
+}
+
+check() {
+ cd "$builddir"
+ make test
+}
+
+package() {
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install || return 1
+ find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
+}
+
+sha512sums="7bffcc18191326095d99ad01be6426f4d9d927f769a156318f9abfea67da6adfecb657bad89390740c9f531fe69c717afa1d250258eed63d127bf10cbbf2bd51 Test-FailWarnings-0.008.tar.gz"