1 |
betelgeuse 10/10/31 09:27:03 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: sqlite-3.7.3.ebuild |
5 |
Log: |
6 |
Version bump. Enables extensions use flag by default as that's the upstream default. Fixes bug #341257 and bug #335506. Tests still fail with icu use flag like in 3.7.2. |
7 |
|
8 |
(Portage version: 2.2_rc99/cvs/Linux i686) |
9 |
|
10 |
Revision Changes Path |
11 |
1.354 dev-db/sqlite/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/sqlite/ChangeLog?rev=1.354&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/sqlite/ChangeLog?rev=1.354&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/sqlite/ChangeLog?r1=1.353&r2=1.354 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/dev-db/sqlite/ChangeLog,v |
20 |
retrieving revision 1.353 |
21 |
retrieving revision 1.354 |
22 |
diff -u -r1.353 -r1.354 |
23 |
--- ChangeLog 30 Oct 2010 18:15:58 -0000 1.353 |
24 |
+++ ChangeLog 31 Oct 2010 09:27:03 -0000 1.354 |
25 |
@@ -1,6 +1,13 @@ |
26 |
# ChangeLog for dev-db/sqlite |
27 |
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/dev-db/sqlite/ChangeLog,v 1.353 2010/10/30 18:15:58 maekke Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/dev-db/sqlite/ChangeLog,v 1.354 2010/10/31 09:27:03 betelgeuse Exp $ |
30 |
+ |
31 |
+*sqlite-3.7.3 (31 Oct 2010) |
32 |
+ |
33 |
+ 31 Oct 2010; Petteri Räty <betelgeuse@g.o> +sqlite-3.7.3.ebuild: |
34 |
+ Version bump. Enables extensions use flag by default as that's the |
35 |
+ upstream default. Fixes bug #341257 and bug #335506. Tests still fail with |
36 |
+ icu use flag like in 3.7.2. |
37 |
|
38 |
30 Oct 2010; Markus Meier <maekke@g.o> sqlite-3.7.2.ebuild: |
39 |
arm stable, bug #342323 |
40 |
|
41 |
|
42 |
|
43 |
1.1 dev-db/sqlite/sqlite-3.7.3.ebuild |
44 |
|
45 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/sqlite/sqlite-3.7.3.ebuild?rev=1.1&view=markup |
46 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/sqlite/sqlite-3.7.3.ebuild?rev=1.1&content-type=text/plain |
47 |
|
48 |
Index: sqlite-3.7.3.ebuild |
49 |
=================================================================== |
50 |
# Copyright 1999-2010 Gentoo Foundation |
51 |
# Distributed under the terms of the GNU General Public License v2 |
52 |
# $Header: /var/cvsroot/gentoo-x86/dev-db/sqlite/sqlite-3.7.3.ebuild,v 1.1 2010/10/31 09:27:03 betelgeuse Exp $ |
53 |
|
54 |
EAPI="3" |
55 |
|
56 |
inherit autotools eutils flag-o-matic multilib versionator |
57 |
|
58 |
DESCRIPTION="A SQL Database Engine in a C Library" |
59 |
HOMEPAGE="http://www.sqlite.org/" |
60 |
DOC_BASE="$(get_version_component_range 1-3)" |
61 |
DOC_PV="$(replace_all_version_separators _ ${DOC_BASE})" |
62 |
|
63 |
SRC_URI=" |
64 |
tcl? ( http://www.sqlite.org/${P}.tar.gz ) |
65 |
!tcl? ( |
66 |
test? ( http://www.sqlite.org/${P}.tar.gz ) |
67 |
!test? ( http://www.sqlite.org/${PN}-amalgamation-${PV}.tar.gz ) |
68 |
) |
69 |
doc? ( http://www.sqlite.org/${PN}_docs_${DOC_PV}.zip )" |
70 |
|
71 |
LICENSE="as-is" |
72 |
SLOT="3" |
73 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~sparc-fbsd ~x86-fbsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
74 |
IUSE="debug doc +extensions +fts3 icu +readline secure-delete soundex tcl test +threadsafe unlock-notify" |
75 |
|
76 |
RDEPEND="icu? ( dev-libs/icu ) |
77 |
readline? ( sys-libs/readline ) |
78 |
tcl? ( dev-lang/tcl )" |
79 |
DEPEND="${RDEPEND} |
80 |
test? ( dev-lang/tcl ) |
81 |
doc? ( app-arch/unzip )" |
82 |
|
83 |
src_prepare() { |
84 |
if use icu; then |
85 |
rm -f test/like.test |
86 |
fi |
87 |
|
88 |
if use tcl || use test; then |
89 |
epatch "${FILESDIR}/${PN}-3.6.22-interix-fixes.patch" |
90 |
epatch "${FILESDIR}/${PN}-3.6.22-dlopen.patch" # bug 300836 |
91 |
eautoreconf # dlopen.patch patches configure.ac |
92 |
else |
93 |
epatch "${FILESDIR}/${PN}-3.6.22-interix-fixes-amalgamation.patch" |
94 |
fi |
95 |
|
96 |
eautoreconf # for MiNT and interix |
97 |
epunt_cxx |
98 |
} |
99 |
|
100 |
src_configure() { |
101 |
local amalgamation=false |
102 |
use !tcl && use !test && amalgamation=true |
103 |
|
104 |
# Support column metadata, bug #266651 |
105 |
append-cppflags -DSQLITE_ENABLE_COLUMN_METADATA |
106 |
|
107 |
# Support R-trees, bug #257646 |
108 |
append-cppflags -DSQLITE_ENABLE_RTREE |
109 |
|
110 |
if use icu; then |
111 |
append-cppflags -DSQLITE_ENABLE_ICU |
112 |
if use tcl || use test; then |
113 |
# Normal tarball. |
114 |
sed -e "s/TLIBS = @LIBS@/& -licui18n -licuuc/" -i Makefile.in || die "sed failed" |
115 |
else |
116 |
# Amalgamation tarball. |
117 |
sed -e "s/LIBS = @LIBS@/& -licui18n -licuuc/" -i Makefile.in || die "sed failed" |
118 |
fi |
119 |
fi |
120 |
|
121 |
# Support FTS3, bug #207701 |
122 |
if use fts3; then |
123 |
append-cppflags -DSQLITE_ENABLE_FTS3 -DSQLITE_ENABLE_FTS3_PARENTHESIS |
124 |
fi |
125 |
|
126 |
# Enable secure_delete pragma by default |
127 |
if use secure-delete; then |
128 |
append-cppflags -DSQLITE_SECURE_DELETE -DSQLITE_CHECK_PAGES -DSQLITE_CORE |
129 |
fi |
130 |
|
131 |
# Support soundex, bug #143794 |
132 |
if use soundex; then |
133 |
append-cppflags -DSQLITE_SOUNDEX |
134 |
fi |
135 |
|
136 |
# The amalgamation source doesn't have these via Makefile |
137 |
if ${amalgamation}; then |
138 |
if use debug; then |
139 |
append-cppflags -DSQLITE_DEBUG |
140 |
else |
141 |
append-cppflags -DNDEBUG |
142 |
fi |
143 |
fi |
144 |
|
145 |
# Enable unlock notification |
146 |
if use unlock-notify; then |
147 |
append-cppflags -DSQLITE_ENABLE_UNLOCK_NOTIFY |
148 |
fi |
149 |
|
150 |
local extensions_option |
151 |
if ${amalgamation}; then |
152 |
extensions_option="dynamic-extensions" |
153 |
else |
154 |
extensions_option="load-extension" |
155 |
fi |
156 |
|
157 |
# Starting from 3.6.23, SQLite has locking strategies that are specific to |
158 |
# OSX. By default they are enabled, and use semantics that only make sense |
159 |
# on OSX. However, they require gethostuuid() function for that, which is |
160 |
# only available on OSX starting from 10.6 (Snow Leopard). For earlier |
161 |
# versions of OSX we have to disable all this nifty locking options, as |
162 |
# suggested by upstream. |
163 |
if [[ "${CHOST}" == *-darwin[56789] ]] ; then |
164 |
append-cppflags -DSQLITE_ENABLE_LOCKING_STYLE=0 |
165 |
fi |
166 |
|
167 |
# `configure` from amalgamation tarball doesn't support |
168 |
# --with-readline-inc and --(enable|disable)-tcl options. |
169 |
econf \ |
170 |
$(use_enable extensions ${extensions_option}) \ |
171 |
$(use_enable readline) \ |
172 |
$(use_enable threadsafe) \ |
173 |
$(${amalgamation} || echo --with-readline-inc="-I${EPREFIX}/usr/include/readline") \ |
174 |
$(${amalgamation} || use_enable debug) \ |
175 |
$(${amalgamation} || echo --enable-tcl) |
176 |
} |
177 |
|
178 |
src_compile() { |
179 |
emake TCLLIBDIR="${EPREFIX}/usr/$(get_libdir)/${P}" || die "emake failed" |
180 |
} |
181 |
|
182 |
src_test() { |
183 |
if [[ "${EUID}" -ne "0" ]]; then |
184 |
local test="test" |
185 |
use debug && test="fulltest" |
186 |
emake ${test} || die "Some test(s) failed" |
187 |
else |
188 |
ewarn "The userpriv feature must be enabled to run tests." |
189 |
eerror "Testsuite will not be run." |
190 |
fi |
191 |
} |
192 |
|
193 |
src_install() { |
194 |
emake \ |
195 |
DESTDIR="${D}" \ |
196 |
TCLLIBDIR="${EPREFIX}/usr/$(get_libdir)/${P}" \ |
197 |
install \ |
198 |
|| die "emake install failed" |
199 |
|
200 |
doman sqlite3.1 || die "doman sqlite3.1 failed" |
201 |
|
202 |
if use doc; then |
203 |
# Naming scheme changes randomly between - and _ in releases |
204 |
# http://www.sqlite.org/cvstrac/tktview?tn=3523 |
205 |
dohtml -r "${WORKDIR}"/${PN}-${DOC_PV}-docs/* || die "dohtml failed" |
206 |
fi |
207 |
} |