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