aboutsummaryrefslogtreecommitdiffstats
path: root/community
diff options
context:
space:
mode:
authorFrancesco Colista <fcolista@alpinelinux.org>2016-08-18 12:10:21 +0000
committerFrancesco Colista <fcolista@alpinelinux.org>2016-08-18 12:10:21 +0000
commita374d7ce7b8b0ee6736646e4c6c65b629be3f74b (patch)
tree440da0e896dbc67da0fde07c534699374781bd4d /community
parentc4d7925da0f418069bdd9381d97f8c3085316950 (diff)
downloadaports-a374d7ce7b8b0ee6736646e4c6c65b629be3f74b.tar.bz2
aports-a374d7ce7b8b0ee6736646e4c6c65b629be3f74b.tar.xz
community/perl-sql-translator: moved from testing
Diffstat (limited to 'community')
-rw-r--r--community/perl-sql-translator/APKBUILD49
1 files changed, 49 insertions, 0 deletions
diff --git a/community/perl-sql-translator/APKBUILD b/community/perl-sql-translator/APKBUILD
new file mode 100644
index 0000000000..c26309343d
--- /dev/null
+++ b/community/perl-sql-translator/APKBUILD
@@ -0,0 +1,49 @@
+# Automatically generated by apkbuild-cpan, template 1
+# Contributor: Francesco Colista <fcolista@alpinelinux.org>
+# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
+pkgname=perl-sql-translator
+_pkgreal=SQL-Translator
+pkgver=0.11021
+pkgrel=0
+pkgdesc="Perl module for SQL-Translator"
+url="http://search.cpan.org/dist/SQL-Translator/"
+arch="noarch"
+license="GPL PerlArtistic"
+cpandepends=""
+cpanmakedepends="perl-yaml perl-dbi perl-moo perl-xml-writer perl-list-moreutils
+ perl-lwp-useragent-determined perl-test-exception perl-try-tiny
+ perl-parse-recdescent perl-test-differences perl-extutils-depends
+ perl-package-variant perl-file-sharedir perl-carp-clan perl-xml-libxml
+ perl-dbd-sqlite perl-dbd-pg perl-template-toolkit perl-cgi perl-graph
+ perl-gd perl-spreadsheet-parseexcel perl-test-postgresql perl-test-pod perl-json"
+depends="$cpandepends"
+makedepends="perl-dev $cpanmakedepends"
+subpackages="$pkgname-doc"
+source="http://search.cpan.org/CPAN/authors/id/I/IL/ILMARI/$_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_MM_OPT="INSTALLDIRS=vendor DESTDIR='$pkgdir'" \
+ PERL_MB_OPT="--installdirs vendor" \
+ perl Makefile.PL
+}
+
+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="7ef7dd297efd22fec3bc39e0bd03c50d SQL-Translator-0.11021.tar.gz"
+sha256sums="64cb38a9f78367bc115359a999003bbeb3c32cc75bba8306ec1a938fc441bfd1 SQL-Translator-0.11021.tar.gz"
+sha512sums="d8bd12932d522ff6feb6821e7fbe95e804861c1d07035185b05e5a151f4fd4ddec233fb43637700ba32aa3e252df5590281db9d38b553a791e9d4bf15f68d5f7 SQL-Translator-0.11021.tar.gz"