aboutsummaryrefslogtreecommitdiffstats
path: root/community/perl-sql-translator
diff options
context:
space:
mode:
authorFrancesco Colista <fcolista@alpinelinux.org>2017-07-06 14:06:56 +0000
committerFrancesco Colista <fcolista@alpinelinux.org>2017-07-06 14:07:02 +0000
commit191d376a7827960ac7965f0cae53952949b7b44a (patch)
treec1fd2d264fa3ed2ec04cdb6436329980e8dc6f2f /community/perl-sql-translator
parent95ca92e319b7b5215eaa6b0476947f922e6d0b13 (diff)
downloadaports-191d376a7827960ac7965f0cae53952949b7b44a.tar.bz2
aports-191d376a7827960ac7965f0cae53952949b7b44a.tar.xz
community/perl-sql-translator: added dependencies
Diffstat (limited to 'community/perl-sql-translator')
-rw-r--r--community/perl-sql-translator/APKBUILD50
1 files changed, 26 insertions, 24 deletions
diff --git a/community/perl-sql-translator/APKBUILD b/community/perl-sql-translator/APKBUILD
index c26309343d..091b795b04 100644
--- a/community/perl-sql-translator/APKBUILD
+++ b/community/perl-sql-translator/APKBUILD
@@ -3,47 +3,49 @@
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=perl-sql-translator
_pkgreal=SQL-Translator
-pkgver=0.11021
+pkgver=0.11021.01
+_pkgver=0.11021_01
pkgrel=0
-pkgdesc="Perl module for SQL-Translator"
+pkgdesc="SQL DDL transformations and more"
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"
+cpandepends="perl-try-tiny perl-parse-recdescent perl-package-variant
+ perl-carp-clan perl-sub-quote perl-dbi perl-file-sharedir perl-moo
+ perl-list-moreutils perl-yaml"
+cpanmakedepends="perl-xml-writer perl-test-exception perl-test-differences perl-json perl-module-install"
+cpancheckdepends="perl-gd perl-spreadsheet-parseexcel perl-test-postgresql perl-html-parser
+ perl-template-toolkit perl-graph perl-xml-libxml perl-cgi perl-dbd-sqlite perl-dbd-pg"
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
+checkdepends="$cpancheckdepends"
subpackages="$pkgname-doc"
-source="http://search.cpan.org/CPAN/authors/id/I/IL/ILMARI/$_pkgreal-$pkgver.tar.gz"
+source="http://search.cpan.org/CPAN/authors/id/I/IL/ILMARI/$_pkgreal-$_pkgver.tar.gz"
-_builddir="$srcdir/$_pkgreal-$pkgver"
+builddir="$srcdir/$_pkgreal-$_pkgver"
+
+check() {
+ cd "$builddir"
+ make test
+}
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
+ cd "$builddir"
+ default_prepare || return 1
+ export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
+ PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL INSTALLDIRS=vendor
}
build() {
- cd "$_builddir"
- export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
- make && make test
+ cd "$builddir"
+ export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
+ make
}
package() {
- cd "$_builddir"
+ 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"
+sha512sums="f0b4feb417ff9f24b02406f0574ab4de1148baf8f6e8c18724d20878d3d682549f095700c43892c20ea505fef24908ffe484e4902305df377f001e3714e747f5 SQL-Translator-0.11021_01.tar.gz"