aboutsummaryrefslogtreecommitdiffstats
path: root/community/perl-test-postgresql
diff options
context:
space:
mode:
authorFrancesco Colista <fcolista@alpinelinux.org>2016-08-19 09:34:21 +0000
committerFrancesco Colista <fcolista@alpinelinux.org>2016-08-19 11:24:37 +0000
commit64ca2381554f60dfe5cf88f8a08ce074cda33dff (patch)
treecf7ba88326d1f626c7c4226f8550b2ed24db4fdc /community/perl-test-postgresql
parente7ec599f76ab0eefa21507beb865b57085202ff4 (diff)
downloadaports-64ca2381554f60dfe5cf88f8a08ce074cda33dff.tar.bz2
aports-64ca2381554f60dfe5cf88f8a08ce074cda33dff.tar.xz
community/perl-test-postgresql: moved from testing
Diffstat (limited to 'community/perl-test-postgresql')
-rw-r--r--community/perl-test-postgresql/APKBUILD41
1 files changed, 41 insertions, 0 deletions
diff --git a/community/perl-test-postgresql/APKBUILD b/community/perl-test-postgresql/APKBUILD
new file mode 100644
index 0000000000..0391a18f37
--- /dev/null
+++ b/community/perl-test-postgresql/APKBUILD
@@ -0,0 +1,41 @@
+# Automatically generated by apkbuild-cpan, template 1
+# Contributor: Francesco Colista <fcolista@alpinelinux.org>
+# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
+pkgname=perl-test-postgresql
+_pkgreal=Test-PostgreSQL
+pkgver=1.06
+pkgrel=0
+pkgdesc="PostgreSQL runner for tests"
+url="http://search.cpan.org/dist/Test-PostgreSQL/"
+arch="noarch"
+license="Artistic-2"
+cpandepends="perl-class-accessor-lite"
+cpanmakedepends="perl-test-sharedfork perl-dbd-pg perl-dbi perl-test-pod"
+depends="$cpandepends"
+makedepends="perl-dev $cpanmakedepends"
+subpackages="$pkgname-doc"
+source="http://search.cpan.org/CPAN/authors/id/T/TJ/TJC/$_pkgreal-$pkgver.tar.gz"
+
+_builddir="$srcdir/$_pkgreal-$pkgver"
+
+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 && make test
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install || return 1
+ find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
+}
+
+md5sums="4ab088aa117cd2c2c492a4c19c8cb324 Test-PostgreSQL-1.06.tar.gz"
+sha256sums="346e7b3e250a02af63c55db7239cff4e8a28aa501226936ecf0544ba4ede847b Test-PostgreSQL-1.06.tar.gz"
+sha512sums="dcf9f30cf26a863e95072a9aea2112467897081493927675c4be4fbb5ed1b21f4e5d152316f9b7b41ad4fb3bd70740cd5ae9be21934b2253f17680a54948ce46 Test-PostgreSQL-1.06.tar.gz"