Gentoo Archives: gentoo-commits

From: "Andreas Hüttel" <dilfridge@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-perl/DBD-SQLite/
Date: Fri, 06 May 2016 22:30:27
Message-Id: 1462573809.abbd5bc1fb887a69220b3e1c70520c15eb0c55bd.dilfridge@gentoo
1 commit: abbd5bc1fb887a69220b3e1c70520c15eb0c55bd
2 Author: Kent Fredric <kentfredric <AT> gmail <DOT> com>
3 AuthorDate: Wed May 4 12:20:48 2016 +0000
4 Commit: Andreas Hüttel <dilfridge <AT> gentoo <DOT> org>
5 CommitDate: Fri May 6 22:30:09 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=abbd5bc1
7
8 dev-perl/DBD-SQLite: Bump to version 1.500.0
9
10 - EAPI6
11 - Moved the use of system-sqlite into a USE="system-sqlite" useflag,
12 as compiling against all present versions of dev-db/sqlite results
13 in test failres that don't occur with the native version.
14 Said Useflag is also off by default for that reason.
15
16 Upstream:
17 - Updated to bundled SQLite 3.10.2
18 - Added a ReadOnly connection flag.
19 - General improvments in ::Constants conveniences.
20 - Some bugs fixed in savepoint handling
21 - allow_multiple_statements retains contents of unprepared_statements
22
23 Package-Manager: portage-2.2.28
24 RepoMan-Options: --include-arches="alpha amd64 amd64-fbsd arm arm64 hppa ia64 m68k mips nios2 ppc ppc64 riscv s390 sh sparc sparc-fbsd x86 x86-fbsd"
25
26 dev-perl/DBD-SQLite/DBD-SQLite-1.500.0.ebuild | 47 +++++++++++++++++++++++++++
27 dev-perl/DBD-SQLite/Manifest | 1 +
28 dev-perl/DBD-SQLite/metadata.xml | 3 ++
29 3 files changed, 51 insertions(+)
30
31 diff --git a/dev-perl/DBD-SQLite/DBD-SQLite-1.500.0.ebuild b/dev-perl/DBD-SQLite/DBD-SQLite-1.500.0.ebuild
32 new file mode 100644
33 index 0000000..83dd994
34 --- /dev/null
35 +++ b/dev-perl/DBD-SQLite/DBD-SQLite-1.500.0.ebuild
36 @@ -0,0 +1,47 @@
37 +# Copyright 1999-2016 Gentoo Foundation
38 +# Distributed under the terms of the GNU General Public License v2
39 +# $Id$
40 +
41 +EAPI=6
42 +
43 +DIST_AUTHOR=ISHIGAKI
44 +DIST_VERSION=1.50
45 +inherit perl-module
46 +
47 +DESCRIPTION="Self Contained RDBMS in a DBI Driver"
48 +
49 +SLOT="0"
50 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris ~x86-solaris"
51 +IUSE="test system-sqlite"
52 +
53 +# NB: Get min sqlite version from sqlite3.c
54 +RDEPEND="
55 + system-sqlite? (
56 + >=dev-db/sqlite-3.10.2[extensions(+)]
57 + )
58 + >=dev-perl/DBI-1.570.0
59 + !<dev-perl/DBD-SQLite-1
60 + virtual/perl-Scalar-List-Utils
61 +"
62 +DEPEND="${RDEPEND}
63 + >=virtual/perl-ExtUtils-MakeMaker-6.480.0
64 + test? (
65 + >=virtual/perl-File-Spec-0.820.0
66 + >=virtual/perl-Test-Simple-0.420.0
67 + )
68 +"
69 +
70 +src_prepare() {
71 + perl-module_src_prepare
72 + if use system-sqlite; then
73 + einfo "Removing bundled SQLite"
74 + # Flip Makefile into system mode.
75 + sed -i 's/^if ( 0 )/if ( 1 )/' "${S}"/Makefile.PL || die
76 + # remove bundled sqlite (rt.cpan#61361)
77 + for i in sqlite3{.c,.h,ext.h} ; do
78 + rm ${i} || die
79 + sed -i -e "/^${i}\$/d" MANIFEST || die
80 + done
81 + myconf="SQLITE_LOCATION=${EPREFIX}/usr"
82 + fi
83 +}
84
85 diff --git a/dev-perl/DBD-SQLite/Manifest b/dev-perl/DBD-SQLite/Manifest
86 index 0607431..c828889 100644
87 --- a/dev-perl/DBD-SQLite/Manifest
88 +++ b/dev-perl/DBD-SQLite/Manifest
89 @@ -1 +1,2 @@
90 DIST DBD-SQLite-1.48.tar.gz 1769115 SHA256 b397230f5d4cdc9923f91c62da9e535234f3055c528ede75afd7d24698030ea6 SHA512 9c00decdb6730c0e4be3fdd01fef6ebad0452cbe1b5141c23fee7d0c5ca0089f3cd4e5d70d331e959ec50546bb10154a3c2db4bfd27993912d5c788cef0a81ee WHIRLPOOL 8313333ba47203d2eb1434266af250dcfe9e360d697155d82bb24b6f0c0abf650d3cc787e6b9c93144e790de16aa1c318032626f867977b8dfeee92be53c3b12
91 +DIST DBD-SQLite-1.50.tar.gz 2023829 SHA256 3ac513ab73944fd7d4b672e1fe885dc522b6369d38f46a68e67e0045bf159ce1 SHA512 6ef903ef5a08511caf962d255d1245d83398ca0c807d86463eae86d7408b8ec271e9d7176c120cf6843a12d3670114c1856c85bb737acad9ef79e630dd253c82 WHIRLPOOL ea39ae0eb6bc2202da7e64399e6b8a101944e31c33c2a872225cc28819c68017163a65ce548eff8547b7ad4ecf82b2692eaaf90a724cc0cd69d48a2de5d28f72
92
93 diff --git a/dev-perl/DBD-SQLite/metadata.xml b/dev-perl/DBD-SQLite/metadata.xml
94 index 723a93f..f8fa094 100644
95 --- a/dev-perl/DBD-SQLite/metadata.xml
96 +++ b/dev-perl/DBD-SQLite/metadata.xml
97 @@ -5,6 +5,9 @@
98 <email>perl@g.o</email>
99 <name>Gentoo Perl Project</name>
100 </maintainer>
101 + <use>
102 + <flag name="system-sqlite">Use the system-wide <pkg>dev-db/sqlite</pkg> installation</flag>
103 + </use>
104 <upstream>
105 <remote-id type="cpan">DBD-SQLite</remote-id>
106 <remote-id type="cpan-module">DBD::SQLite</remote-id>