1 |
arfrever 11/02/06 14:03:29 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: sqlite-3.7.5.ebuild |
5 |
Log: |
6 |
Version bump (bug #353772). Fix building on FreeMiNT (bug #344353). Fixed building of tests with USE="-threadsafe" (bug #348435). |
7 |
|
8 |
(Portage version: 2.2.0_alpha20/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.360 dev-db/sqlite/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/sqlite/ChangeLog?rev=1.360&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/sqlite/ChangeLog?rev=1.360&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/sqlite/ChangeLog?r1=1.359&r2=1.360 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/dev-db/sqlite/ChangeLog,v |
20 |
retrieving revision 1.359 |
21 |
retrieving revision 1.360 |
22 |
diff -u -r1.359 -r1.360 |
23 |
--- ChangeLog 13 Dec 2010 04:43:54 -0000 1.359 |
24 |
+++ ChangeLog 6 Feb 2011 14:03:29 -0000 1.360 |
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.359 2010/12/13 04:43:54 jer Exp $ |
29 |
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
30 |
+# $Header: /var/cvsroot/gentoo-x86/dev-db/sqlite/ChangeLog,v 1.360 2011/02/06 14:03:29 arfrever Exp $ |
31 |
+ |
32 |
+*sqlite-3.7.5 (06 Feb 2011) |
33 |
+ |
34 |
+ 06 Feb 2011; Arfrever Frehtes Taifersar Arahesis <arfrever@g.o> |
35 |
+ +sqlite-3.7.5.ebuild, +files/sqlite-3.7.5-utimes.patch: |
36 |
+ Version bump (bug #353772). Fix building on FreeMiNT (bug #344353). Fixed |
37 |
+ building of tests with USE="-threadsafe" (bug #348435). |
38 |
|
39 |
13 Dec 2010; Jeroen Roovers <jer@g.o> sqlite-3.7.3.ebuild: |
40 |
Stable for HPPA PPC (bug #348079). |
41 |
|
42 |
|
43 |
|
44 |
1.1 dev-db/sqlite/sqlite-3.7.5.ebuild |
45 |
|
46 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/sqlite/sqlite-3.7.5.ebuild?rev=1.1&view=markup |
47 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/sqlite/sqlite-3.7.5.ebuild?rev=1.1&content-type=text/plain |
48 |
|
49 |
Index: sqlite-3.7.5.ebuild |
50 |
=================================================================== |
51 |
# Copyright 1999-2011 Gentoo Foundation |
52 |
# Distributed under the terms of the GNU General Public License v2 |
53 |
# $Header: /var/cvsroot/gentoo-x86/dev-db/sqlite/sqlite-3.7.5.ebuild,v 1.1 2011/02/06 14:03:29 arfrever Exp $ |
54 |
|
55 |
EAPI="3" |
56 |
|
57 |
inherit autotools eutils flag-o-matic multilib versionator |
58 |
|
59 |
MY_PV="$(printf "%u%02u%02u%02u" $(get_version_components))" |
60 |
|
61 |
DESCRIPTION="A SQL Database Engine in a C Library" |
62 |
HOMEPAGE="http://sqlite.org/" |
63 |
SRC_URI="doc? ( http://sqlite.org/${PN}-doc-${MY_PV}.zip ) |
64 |
tcl? ( http://sqlite.org/${PN}-src-${MY_PV}.zip ) |
65 |
!tcl? ( |
66 |
test? ( http://sqlite.org/${PN}-src-${MY_PV}.zip ) |
67 |
!test? ( http://sqlite.org/${PN}-autoconf-${MY_PV}.tar.gz ) |
68 |
)" |
69 |
|
70 |
LICENSE="as-is" |
71 |
SLOT="3" |
72 |
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" |
73 |
IUSE="debug doc +extensions +fts3 icu +readline secure-delete soundex tcl test +threadsafe unlock-notify" |
74 |
|
75 |
RDEPEND="icu? ( dev-libs/icu ) |
76 |
readline? ( sys-libs/readline ) |
77 |
tcl? ( dev-lang/tcl )" |
78 |
DEPEND="${RDEPEND} |
79 |
doc? ( app-arch/unzip ) |
80 |
tcl? ( app-arch/unzip ) |
81 |
test? ( |
82 |
app-arch/unzip |
83 |
dev-lang/tcl |
84 |
)" |
85 |
|
86 |
amalgamation() { |
87 |
use !tcl && use !test |
88 |
} |
89 |
|
90 |
pkg_setup() { |
91 |
if amalgamation; then |
92 |
S="${WORKDIR}/${PN}-autoconf-${MY_PV}" |
93 |
else |
94 |
S="${WORKDIR}/${PN}-src-${MY_PV}" |
95 |
fi |
96 |
} |
97 |
|
98 |
src_prepare() { |
99 |
if amalgamation; then |
100 |
epatch "${FILESDIR}/${PN}-3.6.22-interix-fixes-amalgamation.patch" |
101 |
else |
102 |
epatch "${FILESDIR}/${P}-utimes.patch" |
103 |
epatch "${FILESDIR}/${PN}-3.6.22-dlopen.patch" |
104 |
fi |
105 |
|
106 |
eautoreconf |
107 |
epunt_cxx |
108 |
} |
109 |
|
110 |
src_configure() { |
111 |
# `configure` from amalgamation tarball doesn't add -DSQLITE_DEBUG or -DNDEBUG flag. |
112 |
if amalgamation; then |
113 |
if use debug; then |
114 |
append-cppflags -DSQLITE_DEBUG |
115 |
else |
116 |
append-cppflags -DNDEBUG |
117 |
fi |
118 |
fi |
119 |
|
120 |
# Support column metadata, bug #266651 |
121 |
append-cppflags -DSQLITE_ENABLE_COLUMN_METADATA |
122 |
|
123 |
# Support R-trees, bug #257646 |
124 |
append-cppflags -DSQLITE_ENABLE_RTREE |
125 |
|
126 |
if use icu; then |
127 |
append-cppflags -DSQLITE_ENABLE_ICU |
128 |
if amalgamation; then |
129 |
sed -e "s/LIBS = @LIBS@/& -licui18n -licuuc/" -i Makefile.in || die "sed failed" |
130 |
else |
131 |
sed -e "s/TLIBS = @LIBS@/& -licui18n -licuuc/" -i Makefile.in || die "sed failed" |
132 |
fi |
133 |
fi |
134 |
|
135 |
# Support FTS3, bug #207701 |
136 |
if use fts3; then |
137 |
append-cppflags -DSQLITE_ENABLE_FTS3 -DSQLITE_ENABLE_FTS3_PARENTHESIS |
138 |
fi |
139 |
|
140 |
# Enable secure_delete pragma by default |
141 |
if use secure-delete; then |
142 |
append-cppflags -DSQLITE_SECURE_DELETE -DSQLITE_CHECK_PAGES -DSQLITE_CORE |
143 |
fi |
144 |
|
145 |
# Support soundex, bug #143794 |
146 |
if use soundex; then |
147 |
append-cppflags -DSQLITE_SOUNDEX |
148 |
fi |
149 |
|
150 |
# Enable unlock notification |
151 |
if use unlock-notify; then |
152 |
append-cppflags -DSQLITE_ENABLE_UNLOCK_NOTIFY |
153 |
fi |
154 |
|
155 |
local extensions_option |
156 |
if amalgamation; then |
157 |
extensions_option="dynamic-extensions" |
158 |
else |
159 |
extensions_option="load-extension" |
160 |
fi |
161 |
|
162 |
# Starting from 3.6.23, SQLite has locking strategies that are specific to |
163 |
# OSX. By default they are enabled, and use semantics that only make sense |
164 |
# on OSX. However, they require gethostuuid() function for that, which is |
165 |
# only available on OSX starting from 10.6 (Snow Leopard). For earlier |
166 |
# versions of OSX we have to disable all this nifty locking options, as |
167 |
# suggested by upstream. |
168 |
if [[ "${CHOST}" == *-darwin[56789] ]]; then |
169 |
append-cppflags -DSQLITE_ENABLE_LOCKING_STYLE="0" |
170 |
fi |
171 |
|
172 |
if [[ "${CHOST}" == *-mint* ]]; then |
173 |
append-cppflags -DSQLITE_OMIT_WAL |
174 |
fi |
175 |
|
176 |
# `configure` from amalgamation tarball doesn't support |
177 |
# --with-readline-inc and --(enable|disable)-tcl options. |
178 |
econf \ |
179 |
$(use_enable extensions ${extensions_option}) \ |
180 |
$(use_enable readline) \ |
181 |
$(use_enable threadsafe) \ |
182 |
$(amalgamation || echo --with-readline-inc="-I${EPREFIX}/usr/include/readline") \ |
183 |
$(amalgamation || use_enable debug) \ |
184 |
$(amalgamation || echo --enable-tcl) |
185 |
} |
186 |
|
187 |
src_compile() { |
188 |
emake TCLLIBDIR="${EPREFIX}/usr/$(get_libdir)/${P}" || die "emake failed" |
189 |
} |
190 |
|
191 |
src_test() { |
192 |
if [[ "${EUID}" -eq "0" ]]; then |
193 |
ewarn "Skipping tests due to root permissions" |
194 |
return |
195 |
fi |
196 |
|
197 |
local test="test" |
198 |
use debug && test="fulltest" |
199 |
emake ${test} || die "Test failed" |
200 |
} |
201 |
|
202 |
src_install() { |
203 |
emake DESTDIR="${D}" TCLLIBDIR="${EPREFIX}/usr/$(get_libdir)/${P}" install || die "emake install failed" |
204 |
doman sqlite3.1 || die "doman failed" |
205 |
|
206 |
if use doc; then |
207 |
dohtml -r "${WORKDIR}/${PN}-doc-${MY_PV}/"* || die "dohtml failed" |
208 |
fi |
209 |
} |