summaryrefslogtreecommitdiff
path: root/system
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-06-26 17:31:28 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-06-26 17:31:28 -0500
commit8ed2ee1edfbb86747ef924e53bd64a5493b81ef9 (patch)
tree30d041fa9c529b39ae3e22bd981fbc3554e5d2bf /system
parentb3bdbf4fc89df0a7553a553af897d92c860118fd (diff)
downloadpackages-8ed2ee1edfbb86747ef924e53bd64a5493b81ef9.tar.gz
packages-8ed2ee1edfbb86747ef924e53bd64a5493b81ef9.tar.bz2
packages-8ed2ee1edfbb86747ef924e53bd64a5493b81ef9.tar.xz
packages-8ed2ee1edfbb86747ef924e53bd64a5493b81ef9.zip
system/perl-dbd-sqlite: pull in for whatever (apk index says we need it)
Diffstat (limited to 'system')
-rw-r--r--system/perl-dbd-sqlite/APKBUILD44
-rw-r--r--system/perl-dbd-sqlite/perl-DBD-SQLite-bz543982.patch12
2 files changed, 56 insertions, 0 deletions
diff --git a/system/perl-dbd-sqlite/APKBUILD b/system/perl-dbd-sqlite/APKBUILD
new file mode 100644
index 000000000..f551079de
--- /dev/null
+++ b/system/perl-dbd-sqlite/APKBUILD
@@ -0,0 +1,44 @@
+# Contributor: Jeff Bilyk <jbilyk at gmail>
+# Maintainer: Adélie Perl Team <adelie-perl@lists.adelielinux.org>
+pkgname=perl-dbd-sqlite
+_pkgname=DBD-SQLite
+pkgver=1.58
+pkgrel=0
+pkgdesc="Perl DBI SQLite module"
+url="http://search.cpan.org/dist/$_pkgname"
+arch="all"
+license="GPL-2.0-only OR Artistic-1.0-Perl"
+depends="perl-dbi"
+makedepends="perl perl-dev sqlite-dev"
+source="http://search.cpan.org/CPAN/authors/id/I/IS/ISHIGAKI/${_pkgname}-$pkgver.tar.gz
+ perl-DBD-SQLite-bz543982.patch
+ "
+subpackages="$pkgname-dev $pkgname-doc"
+builddir="$srcdir"/${_pkgname}-$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
+}
+
+check() {
+ cd "$builddir"
+ export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
+ make test
+}
+
+package() {
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
+ find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
+}
+
+sha512sums="080d1e304fb0d43926ce0345df3367132c317ba113bdc11952c0a159bc68d988a024828a28e66be267f82e07731dee225723854fb80914ba7c476b27dbdeb212 DBD-SQLite-1.58.tar.gz
+00961932f9f89d9b46e6134150c2628aadd4cfa7159cb1604de023fedc919087fbf982b72fd51610e1ca390234cd939e74430b270131d0b30cedb97ba6203b49 perl-DBD-SQLite-bz543982.patch"
diff --git a/system/perl-dbd-sqlite/perl-DBD-SQLite-bz543982.patch b/system/perl-dbd-sqlite/perl-DBD-SQLite-bz543982.patch
new file mode 100644
index 000000000..6057ce097
--- /dev/null
+++ b/system/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 =~ /=(.*)/;