Gentoo Archives: gentoo-commits

From: Jory Pratt <anarchy@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/mozilla:master commit in: dev-db/sqlite/files/, dev-db/sqlite/
Date: Mon, 05 Jun 2017 14:36:08
Message-Id: 1496671764.b0e5ec1993b644211e9dce4d7b6dbff5dc4a606e.anarchy@gentoo
1 commit: b0e5ec1993b644211e9dce4d7b6dbff5dc4a606e
2 Author: Jory A. Pratt <anarchy <AT> gentoo <DOT> org>
3 AuthorDate: Mon Jun 5 14:09:24 2017 +0000
4 Commit: Jory Pratt <anarchy <AT> gentoo <DOT> org>
5 CommitDate: Mon Jun 5 14:09:24 2017 +0000
6 URL: https://gitweb.gentoo.org/proj/mozilla.git/commit/?id=b0e5ec19
7
8 dev-db/sqlite: remove obsolete ebuilds, update avaliable via main tree.
9
10 dev-db/sqlite/Manifest | 3 -
11 .../files/sqlite-3.16.0-full_tarball-build.patch | 147 ------------
12 .../sqlite-3.16.0-nonfull_tarball-build.patch | 14 --
13 dev-db/sqlite/metadata.xml | 19 --
14 dev-db/sqlite/sqlite-3.17.0.ebuild | 260 ---------------------
15 5 files changed, 443 deletions(-)
16
17 diff --git a/dev-db/sqlite/Manifest b/dev-db/sqlite/Manifest
18 deleted file mode 100644
19 index 68bd2ce..0000000
20 --- a/dev-db/sqlite/Manifest
21 +++ /dev/null
22 @@ -1,3 +0,0 @@
23 -DIST sqlite-autoconf-3170000.tar.gz 2515143 SHA256 a4e485ad3a16e054765baf6371826b5000beed07e626510896069c0bf013874c SHA512 bebf2693ade1c99b6a178bbe663f64911bf7751932a2524506994cbbb19ab254e7febe3693a76084e55853c1ea85db9e4ece87192422583555fbe569915a2ca8 WHIRLPOOL c3ddeb9691470dfd10950ef36bca8f05f06faa171e3ee87da66d431ba364b7dd903b1350b8ab1aae445a2696ea56dd3f0c50e07d25bc83a09d673a9b92c84e3f
24 -DIST sqlite-doc-3170000.zip 5533032 SHA256 3102d9eab879074776216357e4c9e272f63d0cda975a0819ec5baba5e0922ff6 SHA512 6a7813be301416dc59401b7732733f44efad60b458ded0f4ed8d845aab0843a1123dd20d1e6f209dd32184a87bcd7e68e213e3676c43d1d05d2df5acc2c64b74 WHIRLPOOL dc1c9b6802985be34ac7819e08883c456a0a76fb1822eff46b26613760063b72888d34323cf15f0f48be69555c0b07b99424a85f29ac580c4ad8fa46b990b723
25 -DIST sqlite-src-3170000.zip 10120844 SHA256 86754bee6bcaf1f2a6bf4a02676eb3a43d22d4e5d8339e217424cb2be6b748c3 SHA512 e60381de33fbf566507454e4f1dfb7d3ada554e5c919f05f0dd2f96a6f266adaa62681437f21fdea1c24de57fb6141b798f97854918faa189b507f12f11e0d36 WHIRLPOOL 535c598f7bb9ddbecdd1ca841c0ecf398831c494c99c38542d1cbb756d8333260d6891aa36167aeba75df83fbaf402465dc65c9b3a7fb6685fa54420cb1a1342
26
27 diff --git a/dev-db/sqlite/files/sqlite-3.16.0-full_tarball-build.patch b/dev-db/sqlite/files/sqlite-3.16.0-full_tarball-build.patch
28 deleted file mode 100644
29 index 60907e7..0000000
30 --- a/dev-db/sqlite/files/sqlite-3.16.0-full_tarball-build.patch
31 +++ /dev/null
32 @@ -1,147 +0,0 @@
33 -Link executables against libsqlite3.so.
34 -Increase timeout for fuzzcheck.
35 -Fix building with dlopen() not available.
36 -
37 ---- Makefile.in
38 -+++ Makefile.in
39 -@@ -562,6 +562,7 @@
40 - #
41 - SHELL_OPT = -DSQLITE_ENABLE_JSON1 -DSQLITE_ENABLE_FTS4
42 - # SHELL_OPT += -DSQLITE_ENABLE_FTS5
43 -+SHELL_OPT += -DSQLITE_ENABLE_DBSTAT_VTAB
44 - SHELL_OPT += -DSQLITE_ENABLE_EXPLAIN_COMMENTS
45 - SHELL_OPT += -DSQLITE_ENABLE_UNKNOWN_SQL_FUNCTION
46 - FUZZERSHELL_OPT = -DSQLITE_ENABLE_JSON1
47 -@@ -586,25 +587,25 @@
48 -
49 - libtclsqlite3.la: tclsqlite.lo libsqlite3.la
50 - $(LTLINK) -no-undefined -o $@ tclsqlite.lo \
51 -- libsqlite3.la @TCL_STUB_LIB_SPEC@ $(TLIBS) \
52 -+ libsqlite3.la @TCL_STUB_LIB_SPEC@ \
53 - -rpath "$(TCLLIBDIR)" \
54 - -version-info "8:6:8" \
55 - -avoid-version
56 -
57 --sqlite3$(TEXE): $(TOP)/src/shell.c sqlite3.c
58 -- $(LTLINK) $(READLINE_FLAGS) $(SHELL_OPT) -o $@ \
59 -- $(TOP)/src/shell.c sqlite3.c \
60 -- $(LIBREADLINE) $(TLIBS) -rpath "$(libdir)"
61 -+sqlite3$(TEXE): $(TOP)/src/shell.c libsqlite3.la
62 -+ $(LTLINK) $(READLINE_FLAGS) -o $@ \
63 -+ $(TOP)/src/shell.c libsqlite3.la \
64 -+ $(LIBREADLINE)
65 -
66 --sqldiff$(TEXE): $(TOP)/tool/sqldiff.c sqlite3.lo sqlite3.h
67 -- $(LTLINK) -o $@ $(TOP)/tool/sqldiff.c sqlite3.lo $(TLIBS)
68 -+sqldiff$(TEXE): $(TOP)/tool/sqldiff.c libsqlite3.la
69 -+ $(LTLINK) -o $@ $(TOP)/tool/sqldiff.c libsqlite3.la
70 -
71 --dbhash$(TEXE): $(TOP)/tool/dbhash.c sqlite3.lo sqlite3.h
72 -- $(LTLINK) -o $@ $(TOP)/tool/dbhash.c sqlite3.lo $(TLIBS)
73 -+dbhash$(TEXE): $(TOP)/tool/dbhash.c libsqlite3.la
74 -+ $(LTLINK) -o $@ $(TOP)/tool/dbhash.c libsqlite3.la
75 -
76 --scrub$(TEXE): $(TOP)/ext/misc/scrub.c sqlite3.lo
77 -+scrub$(TEXE): $(TOP)/ext/misc/scrub.c libsqlite3.la
78 - $(LTLINK) -o $@ -I. -DSCRUB_STANDALONE \
79 -- $(TOP)/ext/misc/scrub.c sqlite3.lo $(TLIBS)
80 -+ $(TOP)/ext/misc/scrub.c libsqlite3.la
81 -
82 - srcck1$(BEXE): $(TOP)/tool/srcck1.c
83 - $(BCC) -o srcck1$(BEXE) $(TOP)/tool/srcck1.c
84 -@@ -679,7 +680,7 @@
85 - # Rule to build the amalgamation
86 - #
87 - sqlite3.lo: sqlite3.c
88 -- $(LTCOMPILE) $(TEMP_STORE) -c sqlite3.c
89 -+ $(LTCOMPILE) $(SHELL_OPT) $(TEMP_STORE) -c sqlite3.c
90 -
91 - # Rules to build the LEMON compiler generator
92 - #
93 -@@ -1105,13 +1106,13 @@
94 -
95 - # Fuzz testing
96 - fuzztest: fuzzcheck$(TEXE) $(FUZZDATA)
97 -- ./fuzzcheck$(TEXE) $(FUZZDATA)
98 -+ ./fuzzcheck$(TEXE) --timeout 3600 $(FUZZDATA)
99 -
100 - fastfuzztest: fuzzcheck$(TEXE) $(FUZZDATA)
101 -- ./fuzzcheck$(TEXE) --limit-mem 100M $(FUZZDATA)
102 -+ ./fuzzcheck$(TEXE) --limit-mem 100M --timeout 3600 $(FUZZDATA)
103 -
104 - valgrindfuzz: fuzzcheck$(TEXT) $(FUZZDATA)
105 -- valgrind ./fuzzcheck$(TEXE) --cell-size-check --limit-mem 10M --timeout 600 $(FUZZDATA)
106 -+ valgrind ./fuzzcheck$(TEXE) --cell-size-check --limit-mem 10M --timeout 3600 $(FUZZDATA)
107 -
108 - # The veryquick.test TCL tests.
109 - #
110 -@@ -1141,32 +1142,31 @@
111 - smoketest: $(TESTPROGS) fuzzcheck$(TEXE)
112 - ./testfixture$(TEXE) $(TOP)/test/main.test $(TESTOPTS)
113 -
114 --sqlite3_analyzer.c: sqlite3.c $(TOP)/src/tclsqlite.c $(TOP)/tool/spaceanal.tcl
115 -+sqlite3_analyzer.c: $(TOP)/src/tclsqlite.c $(TOP)/tool/spaceanal.tcl
116 - echo "#define TCLSH 2" > $@
117 -- echo "#define SQLITE_ENABLE_DBSTAT_VTAB 1" >> $@
118 -- cat sqlite3.c $(TOP)/src/tclsqlite.c >> $@
119 -+ cat $(TOP)/src/tclsqlite.c >> $@
120 - echo "static const char *tclsh_main_loop(void){" >> $@
121 - echo "static const char *zMainloop = " >> $@
122 - $(TCLSH_CMD) $(TOP)/tool/tostr.tcl $(TOP)/tool/spaceanal.tcl >> $@
123 - echo "; return zMainloop; }" >> $@
124 -
125 --sqlite3_analyzer$(TEXE): sqlite3_analyzer.c
126 -- $(LTLINK) sqlite3_analyzer.c -o $@ $(LIBTCL) $(TLIBS)
127 -+sqlite3_analyzer$(TEXE): sqlite3_analyzer.c libsqlite3.la
128 -+ $(LTLINK) sqlite3_analyzer.c -o $@ libsqlite3.la $(LIBTCL)
129 -
130 --showdb$(TEXE): $(TOP)/tool/showdb.c sqlite3.lo
131 -- $(LTLINK) -o $@ $(TOP)/tool/showdb.c sqlite3.lo $(TLIBS)
132 -+showdb$(TEXE): $(TOP)/tool/showdb.c libsqlite3.la
133 -+ $(LTLINK) -o $@ $(TOP)/tool/showdb.c libsqlite3.la
134 -
135 --showstat4$(TEXE): $(TOP)/tool/showstat4.c sqlite3.lo
136 -- $(LTLINK) -o $@ $(TOP)/tool/showstat4.c sqlite3.lo $(TLIBS)
137 -+showstat4$(TEXE): $(TOP)/tool/showstat4.c libsqlite3.la
138 -+ $(LTLINK) -o $@ $(TOP)/tool/showstat4.c libsqlite3.la
139 -
140 --showjournal$(TEXE): $(TOP)/tool/showjournal.c sqlite3.lo
141 -- $(LTLINK) -o $@ $(TOP)/tool/showjournal.c sqlite3.lo $(TLIBS)
142 -+showjournal$(TEXE): $(TOP)/tool/showjournal.c
143 -+ $(LTLINK) -o $@ $(TOP)/tool/showjournal.c
144 -
145 --showwal$(TEXE): $(TOP)/tool/showwal.c sqlite3.lo
146 -- $(LTLINK) -o $@ $(TOP)/tool/showwal.c sqlite3.lo $(TLIBS)
147 -+showwal$(TEXE): $(TOP)/tool/showwal.c
148 -+ $(LTLINK) -o $@ $(TOP)/tool/showwal.c
149 -
150 --changeset$(TEXE): $(TOP)/ext/session/changeset.c sqlite3.lo
151 -- $(LTLINK) -o $@ $(TOP)/ext/session/changeset.c sqlite3.lo $(TLIBS)
152 -+changeset$(TEXE): $(TOP)/ext/session/changeset.c libsqlite3.la
153 -+ $(LTLINK) -o $@ $(TOP)/ext/session/changeset.c libsqlite3.la
154 -
155 - rollback-test$(TEXE): $(TOP)/tool/rollback-test.c sqlite3.lo
156 - $(LTLINK) -o $@ $(TOP)/tool/rollback-test.c sqlite3.lo $(TLIBS)
157 -@@ -1180,8 +1180,8 @@
158 - speedtest1$(TEXE): $(TOP)/test/speedtest1.c sqlite3.lo
159 - $(LTLINK) -o $@ $(TOP)/test/speedtest1.c sqlite3.lo $(TLIBS)
160 -
161 --rbu$(EXE): $(TOP)/ext/rbu/rbu.c $(TOP)/ext/rbu/sqlite3rbu.c sqlite3.lo
162 -- $(LTLINK) -I. -o $@ $(TOP)/ext/rbu/rbu.c sqlite3.lo $(TLIBS)
163 -+rbu$(EXE): $(TOP)/ext/rbu/rbu.c libsqlite3.la
164 -+ $(LTLINK) -I. -o $@ $(TOP)/ext/rbu/rbu.c libsqlite3.la
165 -
166 - loadfts$(EXE): $(TOP)/tool/loadfts.c libsqlite3.la
167 - $(LTLINK) $(TOP)/tool/loadfts.c libsqlite3.la -o $@ $(TLIBS)
168 ---- configure.ac
169 -+++ configure.ac
170 -@@ -584,6 +584,9 @@
171 - if test "${use_loadextension}" = "yes" ; then
172 - OPT_FEATURE_FLAGS=""
173 - AC_SEARCH_LIBS(dlopen, dl)
174 -+ if test "${ac_cv_search_dlopen}" = "no" ; then
175 -+ OPT_FEATURE_FLAGS="-DSQLITE_OMIT_LOAD_EXTENSION=1"
176 -+ fi
177 - else
178 - OPT_FEATURE_FLAGS="-DSQLITE_OMIT_LOAD_EXTENSION=1"
179 - fi
180
181 diff --git a/dev-db/sqlite/files/sqlite-3.16.0-nonfull_tarball-build.patch b/dev-db/sqlite/files/sqlite-3.16.0-nonfull_tarball-build.patch
182 deleted file mode 100644
183 index 81ef29d..0000000
184 --- a/dev-db/sqlite/files/sqlite-3.16.0-nonfull_tarball-build.patch
185 +++ /dev/null
186 @@ -1,14 +0,0 @@
187 -Fix building with dlopen() not available.
188 -
189 ---- configure.ac
190 -+++ configure.ac
191 -@@ -102,6 +102,9 @@
192 - [], [enable_dynamic_extensions=yes])
193 - if test x"$enable_dynamic_extensions" != "xno"; then
194 - AC_SEARCH_LIBS(dlopen, dl)
195 -+ if test "${ac_cv_search_dlopen}" = "no" ; then
196 -+ DYNAMIC_EXTENSION_FLAGS=-DSQLITE_OMIT_LOAD_EXTENSION=1
197 -+ fi
198 - else
199 - DYNAMIC_EXTENSION_FLAGS=-DSQLITE_OMIT_LOAD_EXTENSION=1
200 - fi
201
202 diff --git a/dev-db/sqlite/metadata.xml b/dev-db/sqlite/metadata.xml
203 deleted file mode 100644
204 index a3118d8..0000000
205 --- a/dev-db/sqlite/metadata.xml
206 +++ /dev/null
207 @@ -1,19 +0,0 @@
208 -<?xml version="1.0" encoding="UTF-8"?>
209 -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
210 -<pkgmetadata>
211 - <maintainer type="person">
212 - <email>arfrever.fta@×××××.com</email>
213 - <name>Arfrever Frehtes Taifersar Arahesis</name>
214 - </maintainer>
215 - <maintainer type="project">
216 - <email>proxy-maint@g.o</email>
217 - <name>Proxy Maintainers</name>
218 - </maintainer>
219 - <use>
220 - <flag name="secure-delete">Enable overwriting of deleted content with zeros by default (http://sqlite.org/pragma.html#pragma_secure_delete), causing some performance penalty</flag>
221 - <flag name="tools">Install additional tools</flag>
222 - </use>
223 - <upstream>
224 - <remote-id type="cpe">cpe:/a:sqlite:sqlite</remote-id>
225 - </upstream>
226 -</pkgmetadata>
227
228 diff --git a/dev-db/sqlite/sqlite-3.17.0.ebuild b/dev-db/sqlite/sqlite-3.17.0.ebuild
229 deleted file mode 100644
230 index 7d79ee9..0000000
231 --- a/dev-db/sqlite/sqlite-3.17.0.ebuild
232 +++ /dev/null
233 @@ -1,260 +0,0 @@
234 -# Copyright 1999-2017 Gentoo Foundation
235 -# Distributed under the terms of the GNU General Public License v2
236 -
237 -EAPI="6"
238 -
239 -inherit autotools eutils flag-o-matic multilib multilib-minimal toolchain-funcs versionator
240 -
241 -SRC_PV="$(printf "%u%02u%02u%02u" $(get_version_components))"
242 -DOC_PV="${SRC_PV}"
243 -# DOC_PV="$(printf "%u%02u%02u00" $(get_version_components $(get_version_component_range 1-3)))"
244 -
245 -DESCRIPTION="A SQL Database Engine in a C Library"
246 -HOMEPAGE="https://sqlite.org/"
247 -SRC_URI="doc? ( https://sqlite.org/2017/${PN}-doc-${DOC_PV}.zip )
248 - tcl? ( https://sqlite.org/2017/${PN}-src-${SRC_PV}.zip )
249 - test? ( https://sqlite.org/2017/${PN}-src-${SRC_PV}.zip )
250 - tools? ( https://sqlite.org/2017/${PN}-src-${SRC_PV}.zip )
251 - !tcl? ( !test? ( !tools? ( https://sqlite.org/2017/${PN}-autoconf-${SRC_PV}.tar.gz ) ) )"
252 -
253 -LICENSE="public-domain"
254 -SLOT="3"
255 -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
256 -IUSE="debug doc icu +readline secure-delete static-libs tcl test tools"
257 -
258 -RDEPEND="icu? ( dev-libs/icu:0=[${MULTILIB_USEDEP}] )
259 - readline? ( sys-libs/readline:0=[${MULTILIB_USEDEP}] )
260 - tcl? ( dev-lang/tcl:0=[${MULTILIB_USEDEP}] )
261 - tools? ( dev-lang/tcl:0=[${MULTILIB_USEDEP}] )"
262 -DEPEND="${RDEPEND}
263 - doc? ( app-arch/unzip )
264 - tcl? ( app-arch/unzip )
265 - test? (
266 - app-arch/unzip
267 - dev-lang/tcl:0[${MULTILIB_USEDEP}]
268 - )
269 - tools? ( app-arch/unzip )"
270 -
271 -full_tarball() {
272 - use tcl || use test || use tools
273 -}
274 -
275 -pkg_setup() {
276 - if full_tarball; then
277 - S="${WORKDIR}/${PN}-src-${SRC_PV}"
278 - else
279 - S="${WORKDIR}/${PN}-autoconf-${SRC_PV}"
280 - fi
281 -}
282 -
283 -src_prepare() {
284 - if full_tarball; then
285 - eapply -p0 "${FILESDIR}/${PN}-3.16.0-full_tarball-build.patch"
286 -
287 - eapply_user
288 -
289 - # Fix AC_CHECK_FUNCS.
290 - # https://mailinglists.sqlite.org/cgi-bin/mailman/private/sqlite-dev/2016-March/002762.html
291 - sed -e "s/AC_CHECK_FUNCS(.*)/AC_CHECK_FUNCS([fdatasync fullfsync gmtime_r isnan localtime_r localtime_s malloc_usable_size posix_fallocate pread pread64 pwrite pwrite64 strchrnul usleep utime])/" -i configure.ac || die "sed failed"
292 - else
293 - eapply -p0 "${FILESDIR}/${PN}-3.16.0-nonfull_tarball-build.patch"
294 -
295 - eapply_user
296 -
297 - # Fix AC_CHECK_FUNCS.
298 - # https://mailinglists.sqlite.org/cgi-bin/mailman/private/sqlite-dev/2016-March/002762.html
299 - sed \
300 - -e "s/AC_CHECK_FUNCS(\[fdatasync.*/AC_CHECK_FUNCS([fdatasync fullfsync gmtime_r isnan localtime_r localtime_s malloc_usable_size posix_fallocate pread pread64 pwrite pwrite64 strchrnul usleep utime])/" \
301 - -e "/AC_CHECK_FUNCS(posix_fallocate)/d" \
302 - -i configure.ac || die "sed failed"
303 - fi
304 -
305 - eautoreconf
306 -
307 - multilib_copy_sources
308 -}
309 -
310 -multilib_src_configure() {
311 - local CPPFLAGS="${CPPFLAGS}" options=()
312 -
313 - options+=(
314 - --enable-$(full_tarball && echo load-extension || echo dynamic-extensions)
315 - --enable-threadsafe
316 - )
317 - if ! full_tarball; then
318 - options+=(--disable-static-shell)
319 - fi
320 -
321 - # Support detection of misuse of SQLite API.
322 - # https://sqlite.org/compile.html#enable_api_armor
323 - append-cppflags -DSQLITE_ENABLE_API_ARMOR
324 -
325 - # Support column metadata functions.
326 - # https://sqlite.org/c3ref/column_database_name.html
327 - append-cppflags -DSQLITE_ENABLE_COLUMN_METADATA
328 -
329 - # Support dbstat virtual table.
330 - # https://sqlite.org/dbstat.html
331 - append-cppflags -DSQLITE_ENABLE_DBSTAT_VTAB
332 -
333 - # Support comments in output of EXPLAIN.
334 - # https://sqlite.org/compile.html#enable_explain_comments
335 - append-cppflags -DSQLITE_ENABLE_EXPLAIN_COMMENTS
336 -
337 - # Support Full-Text Search versions 3, 4 and 5.
338 - # https://sqlite.org/fts3.html
339 - # https://sqlite.org/fts5.html
340 - append-cppflags -DSQLITE_ENABLE_FTS3 -DSQLITE_ENABLE_FTS3_PARENTHESIS -DSQLITE_ENABLE_FTS4
341 - options+=(--enable-fts5)
342 -
343 - # Support hidden columns.
344 - append-cppflags -DSQLITE_ENABLE_HIDDEN_COLUMNS
345 -
346 - # Support JSON1 extension.
347 - # https://sqlite.org/json1.html
348 - append-cppflags -DSQLITE_ENABLE_JSON1
349 -
350 - # Support memsys5 memory allocator.
351 - # https://sqlite.org/malloc.html#memsys5
352 - append-cppflags -DSQLITE_ENABLE_MEMSYS5
353 -
354 - # Support Resumable Bulk Update extension.
355 - # https://sqlite.org/rbu.html
356 - append-cppflags -DSQLITE_ENABLE_RBU
357 -
358 - # Support R*Trees.
359 - # https://sqlite.org/rtree.html
360 - append-cppflags -DSQLITE_ENABLE_RTREE
361 -
362 - # Support scan status functions.
363 - # https://sqlite.org/c3ref/stmt_scanstatus.html
364 - # https://sqlite.org/c3ref/stmt_scanstatus_reset.html
365 - append-cppflags -DSQLITE_ENABLE_STMT_SCANSTATUS
366 -
367 - # Support Session extension.
368 - # https://sqlite.org/sessionintro.html
369 - options+=(--enable-session)
370 -
371 - # Support unknown() function.
372 - # https://sqlite.org/compile.html#enable_unknown_sql_function
373 - append-cppflags -DSQLITE_ENABLE_UNKNOWN_SQL_FUNCTION
374 -
375 - # Support unlock notification.
376 - # https://sqlite.org/unlock_notify.html
377 - append-cppflags -DSQLITE_ENABLE_UNLOCK_NOTIFY
378 -
379 - # Support soundex() function.
380 - # https://sqlite.org/lang_corefunc.html#soundex
381 - append-cppflags -DSQLITE_SOUNDEX
382 -
383 - # debug USE flag.
384 - if full_tarball; then
385 - options+=($(use_enable debug))
386 - else
387 - if use debug; then
388 - append-cppflags -DSQLITE_DEBUG
389 - else
390 - append-cppflags -DNDEBUG
391 - fi
392 - fi
393 -
394 - # icu USE flag.
395 - if use icu; then
396 - # Support ICU extension.
397 - # https://sqlite.org/compile.html#enable_icu
398 - append-cppflags -DSQLITE_ENABLE_ICU
399 - if full_tarball; then
400 - sed -e "s/^TLIBS = @LIBS@/& -licui18n -licuuc/" -i Makefile.in || die "sed failed"
401 - else
402 - sed -e "s/^LIBS = @LIBS@/& -licui18n -licuuc/" -i Makefile.in || die "sed failed"
403 - fi
404 - fi
405 -
406 - # readline USE flag.
407 - options+=(
408 - --disable-editline
409 - $(use_enable readline)
410 - )
411 - if full_tarball && use readline; then
412 - options+=(--with-readline-inc="-I${EPREFIX}/usr/include/readline")
413 - fi
414 -
415 - # secure-delete USE flag.
416 - if use secure-delete; then
417 - # Enable secure_delete pragma by default.
418 - # https://sqlite.org/pragma.html#pragma_secure_delete
419 - append-cppflags -DSQLITE_SECURE_DELETE
420 - fi
421 -
422 - # static-libs USE flag.
423 - options+=($(use_enable static-libs static))
424 -
425 - # tcl, test, tools USE flags.
426 - if full_tarball; then
427 - options+=(--enable-tcl)
428 - fi
429 -
430 - if [[ "${CHOST}" == *-mint* ]]; then
431 - append-cppflags -DSQLITE_OMIT_WAL
432 - fi
433 -
434 - econf "${options[@]}"
435 -}
436 -
437 -multilib_src_compile() {
438 - emake HAVE_TCL="$(usex tcl 1 "")" TCLLIBDIR="${EPREFIX}/usr/$(get_libdir)/${P}"
439 -
440 - if use tools && multilib_is_native_abi; then
441 - emake changeset dbhash rbu scrub showdb showjournal showstat4 showwal sqldiff sqlite3_analyzer
442 - fi
443 -}
444 -
445 -multilib_src_test() {
446 - if [[ "${EUID}" -eq 0 ]]; then
447 - ewarn "Skipping tests due to root permissions"
448 - return
449 - fi
450 -
451 - emake HAVE_TCL="$(usex tcl 1 "")" $(use debug && echo fulltest || echo test)
452 -}
453 -
454 -multilib_src_install() {
455 - emake DESTDIR="${D}" HAVE_TCL="$(usex tcl 1 "")" TCLLIBDIR="${EPREFIX}/usr/$(get_libdir)/${P}" install
456 -
457 - if use tools && multilib_is_native_abi; then
458 - install_tool() {
459 - if [[ -f ".libs/${1}" ]]; then
460 - newbin ".libs/${1}" "${2}"
461 - else
462 - newbin "${1}" "${2}"
463 - fi
464 - }
465 -
466 - install_tool changeset sqlite3-changeset
467 - install_tool dbhash sqlite3-db-hash
468 - install_tool rbu sqlite3-rbu
469 - install_tool scrub sqlite3-scrub
470 - install_tool showdb sqlite3-show-db
471 - install_tool showjournal sqlite3-show-journal
472 - install_tool showstat4 sqlite3-show-stat4
473 - install_tool showwal sqlite3-show-wal
474 - install_tool sqldiff sqlite3-diff
475 - install_tool sqlite3_analyzer sqlite3-analyzer
476 -
477 - unset -f install_tool
478 - fi
479 -}
480 -
481 -multilib_src_install_all() {
482 - prune_libtool_files
483 -
484 - doman sqlite3.1
485 -
486 - if use doc; then
487 - rm "${WORKDIR}/${PN}-doc-${DOC_PV}/"*.{db,txt}
488 - (
489 - docinto html
490 - dodoc -r "${WORKDIR}/${PN}-doc-${DOC_PV}/"*
491 - )
492 - fi
493 -}