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