diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2013-10-17 06:06:37 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2013-10-17 06:36:04 +0000 |
commit | 86345a32f811c11e79e43c8b76cf00ffa3cb3f94 (patch) | |
tree | 6de7e57cd3fb4c29b8f09e0e8a4397f012baae2e /main/perl-dbd-sqlite | |
parent | 8179df58fdc6143843c492f008c9bd047254ea51 (diff) | |
download | aports-86345a32f811c11e79e43c8b76cf00ffa3cb3f94.tar.bz2 aports-86345a32f811c11e79e43c8b76cf00ffa3cb3f94.tar.xz |
main/perl-dbd-sqlite: split out -dev subpackage and use system sqlite
ref #2277
Diffstat (limited to 'main/perl-dbd-sqlite')
-rw-r--r-- | main/perl-dbd-sqlite/APKBUILD | 29 | ||||
-rw-r--r-- | main/perl-dbd-sqlite/perl-DBD-SQLite-bz543982.patch | 12 |
2 files changed, 32 insertions, 9 deletions
diff --git a/main/perl-dbd-sqlite/APKBUILD b/main/perl-dbd-sqlite/APKBUILD index 541f20e1d3..39bc413c3b 100644 --- a/main/perl-dbd-sqlite/APKBUILD +++ b/main/perl-dbd-sqlite/APKBUILD @@ -3,25 +3,33 @@ pkgname=perl-dbd-sqlite _realpkgname=DBD-SQLite pkgver=1.40 -pkgrel=1 +pkgrel=2 pkgdesc="Perl CPAN DBD::SQLite module" url="http://search.cpan.org/dist/${_realpkgname}" arch="all" license="GPL PerlArtistic" depends="perl-dbi" -makedepends="perl perl-dev" -source="http://search.cpan.org/CPAN/authors/id/I/IS/ISHIGAKI/${_realpkgname}-$pkgver.tar.gz" +makedepends="perl perl-dev sqlite-dev" +source="http://search.cpan.org/CPAN/authors/id/I/IS/ISHIGAKI/${_realpkgname}-$pkgver.tar.gz + perl-DBD-SQLite-bz543982.patch + " +subpackages="$pkgname-dev" _builddir="$srcdir"/${_realpkgname}-$pkgver prepare() { - return 0 + cd "$_builddir" + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + esac + done } build() { cd "$_builddir" - PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1 - make || return 1 + CC="${CC:-gcc}" PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1 + make OPTIMIZE="$CFLAGS" || return 1 } package() { @@ -31,6 +39,9 @@ package() { find "$pkgdir" -name perllocal.pod -delete } -md5sums="b9876882186499583428b14cf5c0e29c DBD-SQLite-1.40.tar.gz" -sha256sums="21fb65e740b6265512c82232b4ad8f75c19ac84c216830112656274eb8e375fb DBD-SQLite-1.40.tar.gz" -sha512sums="4d7af59eca0a168d8ce2d2fafe83f24eb3f4eefa8b621ef92d7fab00edc3a1452247b2e4b3f230f88aa29add74581fb2546a47d440a127a5eee7a67aa2999acc DBD-SQLite-1.40.tar.gz" +md5sums="b9876882186499583428b14cf5c0e29c DBD-SQLite-1.40.tar.gz +1e4c06fb631f6357f21d0acb5e3027bc perl-DBD-SQLite-bz543982.patch" +sha256sums="21fb65e740b6265512c82232b4ad8f75c19ac84c216830112656274eb8e375fb DBD-SQLite-1.40.tar.gz +e0491021edd7234276d222f79be6be9987cde463707efdd0b4dfa857b3721568 perl-DBD-SQLite-bz543982.patch" +sha512sums="4d7af59eca0a168d8ce2d2fafe83f24eb3f4eefa8b621ef92d7fab00edc3a1452247b2e4b3f230f88aa29add74581fb2546a47d440a127a5eee7a67aa2999acc DBD-SQLite-1.40.tar.gz +00961932f9f89d9b46e6134150c2628aadd4cfa7159cb1604de023fedc919087fbf982b72fd51610e1ca390234cd939e74430b270131d0b30cedb97ba6203b49 perl-DBD-SQLite-bz543982.patch" diff --git a/main/perl-dbd-sqlite/perl-DBD-SQLite-bz543982.patch b/main/perl-dbd-sqlite/perl-DBD-SQLite-bz543982.patch new file mode 100644 index 0000000000..6057ce097a --- /dev/null +++ b/main/perl-dbd-sqlite/perl-DBD-SQLite-bz543982.patch @@ -0,0 +1,12 @@ +diff -up DBD-SQLite-1.27/Makefile.PL.old DBD-SQLite-1.27/Makefile.PL +--- DBD-SQLite-1.27/Makefile.PL.old 2009-11-23 12:08:05.000000000 +0100 ++++ DBD-SQLite-1.27/Makefile.PL 2010-01-11 15:40:56.456399143 +0100 +@@ -123,7 +123,7 @@ if ( $@ or DBI->VERSION < $DBI_required + # a system sqlite is also sophisticated enough to have a patching system + # that can change the if ( 0 ) to if ( 1 ) + my ($sqlite_local, $sqlite_base, $sqlite_lib, $sqlite_inc); +-if ( 0 ) { ++if ( 1 ) { + require File::Spec; + if ( $sqlite_base = (grep(/SQLITE_LOCATION=.*/, @ARGV))[0] ) { + $sqlite_base =~ /=(.*)/; |