1 |
floppym 13/08/28 16:10:40 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: sqlite-3.8.0.ebuild |
5 |
Log: |
6 |
Version bump. Delete "extensions" USE flag and unconditionally enable support for extensions. Ebuild by Arfrever. |
7 |
|
8 |
(Portage version: 2.2.1/cvs/Linux x86_64, signed Manifest commit with key 0BBEEA1FEA4843A4) |
9 |
|
10 |
Revision Changes Path |
11 |
1.489 dev-db/sqlite/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/sqlite/ChangeLog?rev=1.489&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/sqlite/ChangeLog?rev=1.489&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/sqlite/ChangeLog?r1=1.488&r2=1.489 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/dev-db/sqlite/ChangeLog,v |
20 |
retrieving revision 1.488 |
21 |
retrieving revision 1.489 |
22 |
diff -u -r1.488 -r1.489 |
23 |
--- ChangeLog 18 Aug 2013 13:27:41 -0000 1.488 |
24 |
+++ ChangeLog 28 Aug 2013 16:10:40 -0000 1.489 |
25 |
@@ -1,6 +1,12 @@ |
26 |
# ChangeLog for dev-db/sqlite |
27 |
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/dev-db/sqlite/ChangeLog,v 1.488 2013/08/18 13:27:41 ago Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/dev-db/sqlite/ChangeLog,v 1.489 2013/08/28 16:10:40 floppym Exp $ |
30 |
+ |
31 |
+*sqlite-3.8.0 (28 Aug 2013) |
32 |
+ |
33 |
+ 28 Aug 2013; Mike Gilbert <floppym@g.o> +sqlite-3.8.0.ebuild: |
34 |
+ Version bump. Delete "extensions" USE flag and unconditionally enable support |
35 |
+ for extensions. Ebuild by Arfrever. |
36 |
|
37 |
18 Aug 2013; Agostino Sarubbo <ago@g.o> sqlite-3.7.17.ebuild: |
38 |
Stable for x86, wrt bug #479580 |
39 |
|
40 |
|
41 |
|
42 |
1.1 dev-db/sqlite/sqlite-3.8.0.ebuild |
43 |
|
44 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/sqlite/sqlite-3.8.0.ebuild?rev=1.1&view=markup |
45 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/sqlite/sqlite-3.8.0.ebuild?rev=1.1&content-type=text/plain |
46 |
|
47 |
Index: sqlite-3.8.0.ebuild |
48 |
=================================================================== |
49 |
# Copyright 1999-2013 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.8.0.ebuild,v 1.1 2013/08/28 16:10:40 floppym Exp $ |
52 |
|
53 |
EAPI="5" |
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="${SRC_PV}" |
59 |
# DOC_PV="$(printf "%u%02u%02u00" $(get_version_components $(get_version_component_range 1-3)))" |
60 |
|
61 |
DESCRIPTION="A SQL Database Engine in a C Library" |
62 |
HOMEPAGE="http://sqlite.org/" |
63 |
SRC_URI="doc? ( http://sqlite.org/2013/${PN}-doc-${DOC_PV}.zip ) |
64 |
tcl? ( http://sqlite.org/2013/${PN}-src-${SRC_PV}.zip ) |
65 |
!tcl? ( |
66 |
test? ( http://sqlite.org/2013/${PN}-src-${SRC_PV}.zip ) |
67 |
!test? ( http://sqlite.org/2013/${PN}-autoconf-${SRC_PV}.tar.gz ) |
68 |
)" |
69 |
|
70 |
LICENSE="public-domain" |
71 |
SLOT="3" |
72 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
73 |
IUSE="debug doc icu +readline secure-delete static-libs tcl test" |
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-${SRC_PV}" |
93 |
else |
94 |
S="${WORKDIR}/${PN}-src-${SRC_PV}" |
95 |
fi |
96 |
} |
97 |
|
98 |
src_prepare() { |
99 |
# At least ppc-aix, x86-interix and *-solaris need newer libtool. |
100 |
use prefix && eautoreconf |
101 |
|
102 |
if amalgamation; then |
103 |
epunt_cxx |
104 |
fi |
105 |
} |
106 |
|
107 |
src_configure() { |
108 |
# `configure` from amalgamation tarball does not add -DSQLITE_DEBUG or -DNDEBUG flag. |
109 |
if amalgamation; then |
110 |
if use debug; then |
111 |
append-cppflags -DSQLITE_DEBUG |
112 |
else |
113 |
append-cppflags -DNDEBUG |
114 |
fi |
115 |
fi |
116 |
|
117 |
# Support column metadata functions. |
118 |
# http://sqlite.org/c3ref/column_database_name.html |
119 |
# http://sqlite.org/c3ref/table_column_metadata.html |
120 |
append-cppflags -DSQLITE_ENABLE_COLUMN_METADATA |
121 |
|
122 |
# Support Full-Text Search versions 3 and 4. |
123 |
# http://sqlite.org/fts3.html |
124 |
append-cppflags -DSQLITE_ENABLE_FTS3 -DSQLITE_ENABLE_FTS3_PARENTHESIS -DSQLITE_ENABLE_FTS4 -DSQLITE_ENABLE_FTS4_UNICODE61 |
125 |
|
126 |
# Support R*Trees. |
127 |
# http://sqlite.org/rtree.html |
128 |
append-cppflags -DSQLITE_ENABLE_RTREE |
129 |
|
130 |
# Support soundex() function. |
131 |
# http://sqlite.org/lang_corefunc.html#soundex |
132 |
append-cppflags -DSQLITE_SOUNDEX |
133 |
|
134 |
# Support unlock notification. |
135 |
# http://sqlite.org/unlock_notify.html |
136 |
append-cppflags -DSQLITE_ENABLE_UNLOCK_NOTIFY |
137 |
|
138 |
if use icu; then |
139 |
append-cppflags -DSQLITE_ENABLE_ICU |
140 |
if amalgamation; then |
141 |
sed -e "s/LIBS = @LIBS@/& -licui18n -licuuc/" -i Makefile.in || die "sed failed" |
142 |
else |
143 |
sed -e "s/TLIBS = @LIBS@/& -licui18n -licuuc/" -i Makefile.in || die "sed failed" |
144 |
fi |
145 |
fi |
146 |
|
147 |
# Enable secure_delete pragma. |
148 |
# http://sqlite.org/pragma.html#pragma_secure_delete |
149 |
if use secure-delete; then |
150 |
append-cppflags -DSQLITE_SECURE_DELETE -DSQLITE_CHECK_PAGES -DSQLITE_CORE |
151 |
fi |
152 |
|
153 |
# Starting from 3.6.23, SQLite has locking strategies that are specific to |
154 |
# OSX. By default they are enabled, and use semantics that only make sense |
155 |
# on OSX. However, they require gethostuuid() function for that, which is |
156 |
# only available on OSX starting from 10.6 (Snow Leopard). For earlier |
157 |
# versions of OSX we have to disable all this nifty locking options, as |
158 |
# suggested by upstream. |
159 |
if [[ "${CHOST}" == *-darwin[56789] ]]; then |
160 |
append-cppflags -DSQLITE_ENABLE_LOCKING_STYLE="0" |
161 |
fi |
162 |
|
163 |
if [[ "${CHOST}" == *-mint* ]]; then |
164 |
append-cppflags -DSQLITE_OMIT_WAL |
165 |
fi |
166 |
|
167 |
# `configure` from amalgamation tarball does not support |
168 |
# --with-readline-inc and --(enable|disable)-tcl options. |
169 |
econf \ |
170 |
--enable-$(amalgamation && echo dynamic-extensions || echo load-extension) \ |
171 |
--enable-threadsafe \ |
172 |
$(use_enable readline) \ |
173 |
$(use_enable static-libs static) \ |
174 |
$(amalgamation || echo --with-readline-inc="-I${EPREFIX}/usr/include/readline") \ |
175 |
$(amalgamation || use_enable debug) \ |
176 |
$(amalgamation || echo --enable-tcl) |
177 |
} |
178 |
|
179 |
src_compile() { |
180 |
emake TCLLIBDIR="${EPREFIX}/usr/$(get_libdir)/${P}" |
181 |
} |
182 |
|
183 |
src_test() { |
184 |
if [[ "${EUID}" -eq 0 ]]; then |
185 |
ewarn "Skipping tests due to root permissions" |
186 |
return |
187 |
fi |
188 |
|
189 |
emake $(use debug && echo fulltest || echo test) |
190 |
} |
191 |
|
192 |
src_install() { |
193 |
emake DESTDIR="${D}" HAVE_TCL="$(usex tcl 1 "")" TCLLIBDIR="${EPREFIX}/usr/$(get_libdir)/${P}" install |
194 |
prune_libtool_files |
195 |
|
196 |
doman sqlite3.1 |
197 |
|
198 |
if use doc; then |
199 |
find "${WORKDIR}/${PN}-doc-${DOC_PV}" -name ".[_~]*" -delete |
200 |
dohtml -A ico,odg,pdf,svg -r "${WORKDIR}/${PN}-doc-${DOC_PV}/" |
201 |
fi |
202 |
} |