Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-db/sqlite/
Date: Sun, 02 Jan 2022 09:25:46
Message-Id: 1641114829.618f2be49f2766f2427708990eeb875e0644f628.sam@gentoo
1 commit: 618f2be49f2766f2427708990eeb875e0644f628
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jan 2 09:10:49 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Sun Jan 2 09:13:49 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=618f2be4
7
8 dev-db/sqlite: add 3.37.1
9
10 Signed-off-by: Sam James <sam <AT> gentoo.org>
11
12 dev-db/sqlite/Manifest | 2 +
13 dev-db/sqlite/sqlite-3.37.1.ebuild | 426 +++++++++++++++++++++++++++++++++++++
14 2 files changed, 428 insertions(+)
15
16 diff --git a/dev-db/sqlite/Manifest b/dev-db/sqlite/Manifest
17 index 542840aa492f..dbffb5324f9b 100644
18 --- a/dev-db/sqlite/Manifest
19 +++ b/dev-db/sqlite/Manifest
20 @@ -6,6 +6,7 @@ DIST sqlite-doc-3350300.zip 10197905 BLAKE2B ffe3e800fa7c9066c6f180a5989cceb89df
21 DIST sqlite-doc-3350400.zip 10206227 BLAKE2B 82572a771e72e76149fc7ca4e3d5b6f268d6b2d441cc8a4c02be7f2062582b55cefd1577dbb3c77d2e932e93f1a0403f55a9ffc8b74f7eada06435ef23a6b065 SHA512 cc967b6625e0ae3ffb4a84f87a6efb5bc0e2d3cb2080e438c9e1ba3b8c2ba707612b8bdfc2bf3291ef2ad2836780127050762945a3ff7503f662cf30ab4fde4a
22 DIST sqlite-doc-3350500.zip 10205830 BLAKE2B e078713786522f8da7984df6ddf62671c24ec5381cac88fe976c97fcdf4800cff8dc1a595df9c9010c687c9929cb5ab070957f8ccbc0b5e8bd7add88ae9a0514 SHA512 2da5357623f4db7003f46ec7ea8bdd8a794ad6e1be9a25a8ebccfe5222da43eabc32d9d17acfd7766aa4cf1fd010e476a8087fab78ac6f6596c7c5b8a06de685
23 DIST sqlite-doc-3370000.zip 10509325 BLAKE2B 3f994a01811f97f55d977582c8f8b9b3bf4379eb925e38f57f525b7315dc2812bd39deaeca42e8a72b58ab40b7076ef3cb496849c113c707a4bcd08764293bdc SHA512 f245731675c67347318578e773b8d5f548c26eac7a333d6028cf7e11c4c9d2c3314da0a5428533ff26416f4194dce5c805d7f61f1fef27e02e9b91efa3c6d4c7
24 +DIST sqlite-doc-3370100.zip 10530906 BLAKE2B 6a17376b39b47af5e09a62bd22be6fac836f2328f30cf96134a7dfbf682e6de7fbe10b79e070a05e9d19a3d5e1c3d38a30aa768584cf35b332f1c545aba217a4 SHA512 76184e913399734982ddad256273603670e650fc2332ac20a044218fb7e8df69e77ad0970af328d8a8c4403f11de29a7b01ded6a72b9cf727c41d14ccaefd316
25 DIST sqlite-src-3340100.zip 12623711 BLAKE2B 08c98d0c56d46fe909f449f322002ae4d69fd952930d2f04514988a939b31744a13aea85935d84bc05db52faca1aad6a70d7c31e7da0e396bb649685a49699bb SHA512 5ed02fe609b3d08c3297cc43b21e6ee3f56fb51a6616ac391a0e50cd1677dbad03c6bf9bf9c8409cf94b83b16fe6b6e4a112640b18c7d4fd95328066da3c3943
26 DIST sqlite-src-3350000.zip 12814378 BLAKE2B f77880bfb335da078623841f9d9d9fc690085630757d8d8e3d40d42646902f809febf8dcc5048d38be0e2d74c0114c35f09789bc261e51d49f9685201f6d1297 SHA512 4b77d963092a6aed61b50e59450edf2af187f16b185b05ca54d81c3eecf71b1cb9bc2883a8aadeb971fcebe343fa430ea788aedb77e3712c8b39d4892c93a797
27 DIST sqlite-src-3350100.zip 12814875 BLAKE2B bc4f6913ce93c32e1c6fbd39f45666a14476096b09f7534047aee56cbb18e949bf5225c080c813281a0abae9198a35165161393db39df0c2af2a92138b4604d9 SHA512 004bcca9c2ae883b05d8f15c8bf28a12fd2fdf9527d1560d137f8e2570c153d14ea5405c500d0e79966a3881a516df4d9ed07be751712f1584df411e86c60977
28 @@ -14,3 +15,4 @@ DIST sqlite-src-3350300.zip 12817388 BLAKE2B 5b07d15ec5ed934ffa776ae4e079d4b4a3d
29 DIST sqlite-src-3350400.zip 12818802 BLAKE2B c671c5666d754c763e70f20e742e017320ceb27e1a8668e8713dbe5257aa0842ba8d7343e535be06eefd371dc2bae9ded6718194b7891e46c6eb4081531b4944 SHA512 3a3fa1df47b8f148fffbb056522e0e671d9e295c154173124208b7b1348d321eba410a40fbdea02fdc1af3b55cdfce37044ed09f328502fc50f42f5ecabc1236
30 DIST sqlite-src-3350500.zip 12819198 BLAKE2B 0f0d39cd663d78a3c698df62dd533019c32244e8c998e625354cb069f5839cc374476b825e2e2a6408916301333a9954c0c7b9cbab5493522fdffe8859f9b6a5 SHA512 f9afd11b3c42a8241f91e2ecafc3928e7391cc0f1fbee236b8122c2d3ca922d0c82d2605968b131351b6c5e38f983f8eed29b86c94cfa72799e2387b3b3db561
31 DIST sqlite-src-3370000.zip 13141152 BLAKE2B 72e3ba37dcc1e10ab822ce080319c98e67aae5092946fb32c0da02bf3fd50e043c0e35b807270f2f20aee5fd53ecdf125113571f807f2facf1d9033f5e84d7a6 SHA512 5a3c358c42782bc248a0795ca78a10d834861f98ab0a021a05d8358ba1716f3febb3da29ded187dfd205902f77bbf284ed3207aabe4979b68b90d0557d1676f7
32 +DIST sqlite-src-3370100.zip 13142659 BLAKE2B 47f2c7ca9610958893cc3969f02fac6f46dc687e0a68dc464e94e5260c21313aecf01acdf1a359bb0061e8ff259b7e97bd4decc5bcd3086e274a4449ed81a4df SHA512 ff808f9541f53174ae221a6eb0f937643d46157ed3940f72f08910e9c68a08419a118933089dc771ef30d1af5ce397e96d5379198568029b09ad167dfd4242eb
33
34 diff --git a/dev-db/sqlite/sqlite-3.37.1.ebuild b/dev-db/sqlite/sqlite-3.37.1.ebuild
35 new file mode 100644
36 index 000000000000..d15876c7e61a
37 --- /dev/null
38 +++ b/dev-db/sqlite/sqlite-3.37.1.ebuild
39 @@ -0,0 +1,426 @@
40 +# Copyright 1999-2022 Gentoo Authors
41 +# Distributed under the terms of the GNU General Public License v2
42 +
43 +EAPI="7"
44 +
45 +inherit autotools flag-o-matic multilib-minimal toolchain-funcs
46 +
47 +if [[ "${PV}" != "9999" ]]; then
48 + SRC_PV="$(printf "%u%02u%02u%02u" $(ver_rs 1- " "))"
49 + DOC_PV="${SRC_PV}"
50 + # DOC_PV="$(printf "%u%02u%02u00" $(ver_rs 1-3 " "))"
51 +fi
52 +
53 +DESCRIPTION="SQL database engine"
54 +HOMEPAGE="https://sqlite.org/"
55 +if [[ "${PV}" == "9999" ]]; then
56 + SRC_URI=""
57 +else
58 + SRC_URI="https://sqlite.org/2021/${PN}-src-${SRC_PV}.zip
59 + doc? ( https://sqlite.org/2021/${PN}-doc-${DOC_PV}.zip )"
60 +fi
61 +
62 +LICENSE="public-domain"
63 +SLOT="3"
64 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
65 +IUSE="debug doc icu +readline secure-delete static-libs tcl test tools"
66 +if [[ "${PV}" == "9999" ]]; then
67 + PROPERTIES="live"
68 +fi
69 +RESTRICT="!test? ( test )"
70 +
71 +if [[ "${PV}" == "9999" ]]; then
72 + BDEPEND=">=dev-lang/tcl-8.6:0
73 + dev-vcs/fossil"
74 +else
75 + BDEPEND="app-arch/unzip
76 + >=dev-lang/tcl-8.6:0"
77 +fi
78 +RDEPEND="sys-libs/zlib:0=[${MULTILIB_USEDEP}]
79 + icu? ( dev-libs/icu:0=[${MULTILIB_USEDEP}] )
80 + readline? ( sys-libs/readline:0=[${MULTILIB_USEDEP}] )
81 + tcl? ( dev-lang/tcl:0=[${MULTILIB_USEDEP}] )
82 + tools? ( dev-lang/tcl:0= )"
83 +DEPEND="${RDEPEND}
84 + test? ( >=dev-lang/tcl-8.6:0[${MULTILIB_USEDEP}] )"
85 +
86 +if [[ "${PV}" == "9999" ]]; then
87 + S="${WORKDIR}/${PN}"
88 +else
89 + S="${WORKDIR}/${PN}-src-${SRC_PV}"
90 +fi
91 +
92 +_fossil_fetch() {
93 + local distdir="${PORTAGE_ACTUAL_DISTDIR:-${DISTDIR}}"
94 + local repo_id="${1}"
95 + local repo_uri="${2}"
96 +
97 + local -x FOSSIL_HOME="${HOME}"
98 +
99 + mkdir -p "${T}/fossil/${repo_id}" || die
100 + pushd "${T}/fossil/${repo_id}" > /dev/null || die
101 +
102 + if [[ -n "${EVCS_OFFLINE}" ]]; then
103 + if [[ ! -f "${distdir}/fossil-src/${repo_id}/${repo_id}.fossil" ]]; then
104 + die "Network activity disabled using EVCS_OFFLINE and clone of repository missing: \"${distdir}/fossil-src/${repo_id}/${repo_id}.fossil\""
105 + fi
106 + else
107 + if [[ ! -f "${distdir}/fossil-src/${repo_id}/${repo_id}.fossil" ]]; then
108 + einfo fossil clone --verbose "${repo_uri}" "${repo_id}.fossil"
109 + fossil clone --verbose "${repo_uri}" "${repo_id}.fossil" || die
110 + echo
111 + else
112 + cp -p "${distdir}/fossil-src/${repo_id}/${repo_id}.fossil" . || die
113 + einfo fossil pull --repository "${repo_id}.fossil" --verbose "${repo_uri}"
114 + fossil pull --repository "${repo_id}.fossil" --verbose "${repo_uri}" || die
115 + echo
116 + fi
117 +
118 + (
119 + addwrite "${distdir}"
120 + mkdir -p "${distdir}/fossil-src/${repo_id}" || die
121 + cp -p "${repo_id}.fossil" "${distdir}/fossil-src/${repo_id}/${repo_id}.fossil" || die
122 + )
123 + fi
124 +
125 + popd > /dev/null || die
126 +}
127 +
128 +_fossil_checkout() {
129 + local distdir="${PORTAGE_ACTUAL_DISTDIR:-${DISTDIR}}"
130 + local repo_id="${1}"
131 + local branch_or_commit="${2}"
132 + local target_directory="${3}"
133 +
134 + local -x FOSSIL_HOME="${HOME}"
135 +
136 + if [[ ! -f "${distdir}/fossil-src/${repo_id}/${repo_id}.fossil" ]]; then
137 + die "Clone of repository missing: \"${distdir}/fossil-src/${repo_id}/${repo_id}.fossil\""
138 + fi
139 +
140 + if [[ ! -f "${T}/fossil/${repo_id}/${repo_id}.fossil" ]]; then
141 + mkdir -p "${T}/fossil/${repo_id}" || die
142 + cp -p "${distdir}/fossil-src/${repo_id}/${repo_id}.fossil" "${T}/fossil/${repo_id}" || die
143 + fi
144 +
145 + mkdir "${target_directory}" || die
146 + pushd "${target_directory}" > /dev/null || die
147 +
148 + einfo fossil open --quiet "${T}/fossil/${repo_id}/${repo_id}.fossil" "${branch_or_commit}"
149 + fossil open --quiet "${T}/fossil/${repo_id}/${repo_id}.fossil" "${branch_or_commit}" || die
150 + echo
151 +
152 + popd > /dev/null || die
153 +}
154 +
155 +fossil_fetch() {
156 + local repo_id="${1}"
157 + local repo_uri="${2}"
158 + local target_directory="${3}"
159 +
160 + local branch_or_commit="${EFOSSIL_COMMIT:-${EFOSSIL_BRANCH:-trunk}}"
161 +
162 + _fossil_fetch "${repo_id}" "${repo_uri}"
163 + _fossil_checkout "${repo_id}" "${branch_or_commit}" "${target_directory}"
164 +}
165 +
166 +src_unpack() {
167 + if [[ "${PV}" == "9999" ]]; then
168 + fossil_fetch sqlite https://sqlite.org/src "${WORKDIR}/${PN}"
169 + if use doc; then
170 + fossil_fetch sqlite-doc https://sqlite.org/docsrc "${WORKDIR}/${PN}-doc"
171 + fi
172 + else
173 + default
174 + fi
175 +}
176 +
177 +src_prepare() {
178 + eapply_user
179 +
180 + eautoreconf
181 +
182 + multilib_copy_sources
183 +}
184 +
185 +multilib_src_configure() {
186 + local -x CPPFLAGS="${CPPFLAGS}" CFLAGS="${CFLAGS}"
187 + local options=()
188 +
189 + options+=(
190 + --enable-load-extension
191 + --enable-threadsafe
192 + )
193 +
194 + # Support detection of misuse of SQLite API.
195 + # https://sqlite.org/compile.html#enable_api_armor
196 + append-cppflags -DSQLITE_ENABLE_API_ARMOR
197 +
198 + # Support bytecode and tables_used virtual tables.
199 + # https://sqlite.org/compile.html#enable_bytecode_vtab
200 + # https://sqlite.org/bytecodevtab.html
201 + append-cppflags -DSQLITE_ENABLE_BYTECODE_VTAB
202 +
203 + # Support column metadata functions.
204 + # https://sqlite.org/compile.html#enable_column_metadata
205 + # https://sqlite.org/c3ref/column_database_name.html
206 + append-cppflags -DSQLITE_ENABLE_COLUMN_METADATA
207 +
208 + # Support sqlite_dbpage virtual table.
209 + # https://sqlite.org/compile.html#enable_dbpage_vtab
210 + # https://sqlite.org/dbpage.html
211 + append-cppflags -DSQLITE_ENABLE_DBPAGE_VTAB
212 +
213 + # Support dbstat virtual table.
214 + # https://sqlite.org/compile.html#enable_dbstat_vtab
215 + # https://sqlite.org/dbstat.html
216 + append-cppflags -DSQLITE_ENABLE_DBSTAT_VTAB
217 +
218 + # Support sqlite3_serialize() and sqlite3_deserialize() functions.
219 + # https://sqlite.org/compile.html#enable_deserialize
220 + # https://sqlite.org/c3ref/serialize.html
221 + # https://sqlite.org/c3ref/deserialize.html
222 + append-cppflags -DSQLITE_ENABLE_DESERIALIZE
223 +
224 + # Support comments in output of EXPLAIN.
225 + # https://sqlite.org/compile.html#enable_explain_comments
226 + append-cppflags -DSQLITE_ENABLE_EXPLAIN_COMMENTS
227 +
228 + # Support Full-Text Search versions 3, 4 and 5.
229 + # https://sqlite.org/compile.html#enable_fts3
230 + # https://sqlite.org/compile.html#enable_fts3_parenthesis
231 + # https://sqlite.org/compile.html#enable_fts4
232 + # https://sqlite.org/compile.html#enable_fts5
233 + # https://sqlite.org/fts3.html
234 + # https://sqlite.org/fts5.html
235 + append-cppflags -DSQLITE_ENABLE_FTS3 -DSQLITE_ENABLE_FTS3_PARENTHESIS -DSQLITE_ENABLE_FTS4
236 + options+=(--enable-fts5)
237 +
238 + # Support hidden columns.
239 + append-cppflags -DSQLITE_ENABLE_HIDDEN_COLUMNS
240 +
241 + # Support JSON1 extension.
242 + # https://sqlite.org/compile.html#enable_json1
243 + # https://sqlite.org/json1.html
244 + append-cppflags -DSQLITE_ENABLE_JSON1
245 +
246 + # Support memsys5 memory allocator.
247 + # https://sqlite.org/compile.html#enable_memsys5
248 + # https://sqlite.org/malloc.html#memsys5
249 + append-cppflags -DSQLITE_ENABLE_MEMSYS5
250 +
251 + # Support sqlite3_normalized_sql() function.
252 + # https://sqlite.org/c3ref/expanded_sql.html
253 + append-cppflags -DSQLITE_ENABLE_NORMALIZE
254 +
255 + # Support sqlite_offset() function.
256 + # https://sqlite.org/compile.html#enable_offset_sql_func
257 + # https://sqlite.org/lang_corefunc.html#sqlite_offset
258 + append-cppflags -DSQLITE_ENABLE_OFFSET_SQL_FUNC
259 +
260 + # Support pre-update hook functions.
261 + # https://sqlite.org/compile.html#enable_preupdate_hook
262 + # https://sqlite.org/c3ref/preupdate_count.html
263 + append-cppflags -DSQLITE_ENABLE_PREUPDATE_HOOK
264 +
265 + # Support Resumable Bulk Update extension.
266 + # https://sqlite.org/compile.html#enable_rbu
267 + # https://sqlite.org/rbu.html
268 + append-cppflags -DSQLITE_ENABLE_RBU
269 +
270 + # Support R*Trees.
271 + # https://sqlite.org/compile.html#enable_rtree
272 + # https://sqlite.org/compile.html#enable_geopoly
273 + # https://sqlite.org/rtree.html
274 + # https://sqlite.org/geopoly.html
275 + append-cppflags -DSQLITE_ENABLE_RTREE -DSQLITE_ENABLE_GEOPOLY
276 +
277 + # Support Session extension.
278 + # https://sqlite.org/compile.html#enable_session
279 + # https://sqlite.org/sessionintro.html
280 + append-cppflags -DSQLITE_ENABLE_SESSION
281 +
282 + # Support scan status functions.
283 + # https://sqlite.org/compile.html#enable_stmt_scanstatus
284 + # https://sqlite.org/c3ref/stmt_scanstatus.html
285 + # https://sqlite.org/c3ref/stmt_scanstatus_reset.html
286 + append-cppflags -DSQLITE_ENABLE_STMT_SCANSTATUS
287 +
288 + # Support sqlite_stmt virtual table.
289 + # https://sqlite.org/compile.html#enable_stmtvtab
290 + # https://sqlite.org/stmt.html
291 + append-cppflags -DSQLITE_ENABLE_STMTVTAB
292 +
293 + # Support unknown() function.
294 + # https://sqlite.org/compile.html#enable_unknown_sql_function
295 + append-cppflags -DSQLITE_ENABLE_UNKNOWN_SQL_FUNCTION
296 +
297 + # Support unlock notification.
298 + # https://sqlite.org/compile.html#enable_unlock_notify
299 + # https://sqlite.org/c3ref/unlock_notify.html
300 + # https://sqlite.org/unlock_notify.html
301 + append-cppflags -DSQLITE_ENABLE_UNLOCK_NOTIFY
302 +
303 + # Support LIMIT and ORDER BY clauses on DELETE and UPDATE statements.
304 + # https://sqlite.org/compile.html#enable_update_delete_limit
305 + # https://sqlite.org/lang_delete.html#optional_limit_and_order_by_clauses
306 + # https://sqlite.org/lang_update.html#optional_limit_and_order_by_clauses
307 + append-cppflags -DSQLITE_ENABLE_UPDATE_DELETE_LIMIT
308 +
309 + # Support soundex() function.
310 + # https://sqlite.org/compile.html#soundex
311 + # https://sqlite.org/lang_corefunc.html#soundex
312 + append-cppflags -DSQLITE_SOUNDEX
313 +
314 + # Support URI filenames.
315 + # https://sqlite.org/compile.html#use_uri
316 + # https://sqlite.org/uri.html
317 + append-cppflags -DSQLITE_USE_URI
318 +
319 + # debug USE flag.
320 + options+=($(use_enable debug))
321 +
322 + # icu USE flag.
323 + if use icu; then
324 + # Support ICU extension.
325 + # https://sqlite.org/compile.html#enable_icu
326 + append-cppflags -DSQLITE_ENABLE_ICU
327 + sed -e "s/^TLIBS = @LIBS@/& -licui18n -licuuc/" -i Makefile.in || die "sed failed"
328 + fi
329 +
330 + # readline USE flag.
331 + options+=(
332 + --disable-editline
333 + $(use_enable readline)
334 + )
335 + if use readline; then
336 + options+=(--with-readline-inc="-I${ESYSROOT}/usr/include/readline")
337 + fi
338 +
339 + # secure-delete USE flag.
340 + if use secure-delete; then
341 + # Enable secure_delete pragma by default.
342 + # https://sqlite.org/compile.html#secure_delete
343 + # https://sqlite.org/pragma.html#pragma_secure_delete
344 + append-cppflags -DSQLITE_SECURE_DELETE
345 + fi
346 +
347 + # static-libs USE flag.
348 + options+=($(use_enable static-libs static))
349 +
350 + # tcl, test, tools USE flags.
351 + if use tcl || use test || { use tools && multilib_is_native_abi; }; then
352 + options+=(
353 + --enable-tcl
354 + --with-tcl="${ESYSROOT}/usr/$(get_libdir)"
355 + )
356 + else
357 + options+=(--disable-tcl)
358 + fi
359 +
360 + if [[ "${ABI}" == "x86" ]]; then
361 + if $(tc-getCC) ${CPPFLAGS} ${CFLAGS} -E -P -dM - < /dev/null 2> /dev/null | grep -q "^#define __SSE__ 1$"; then
362 + append-cflags -mfpmath=sse
363 + else
364 + append-cflags -ffloat-store
365 + fi
366 + fi
367 +
368 + econf "${options[@]}"
369 +}
370 +
371 +multilib_src_compile() {
372 + emake HAVE_TCL="$(usex tcl 1 "")" TCLLIBDIR="${EPREFIX}/usr/$(get_libdir)/${P}"
373 +
374 + if use tools && multilib_is_native_abi; then
375 + emake changeset dbdump dbhash dbtotxt index_usage rbu scrub showdb showjournal showshm showstat4 showwal sqldiff sqlite3_analyzer sqlite3_checker sqlite3_expert sqltclsh
376 + fi
377 +
378 + if [[ "${PV}" == "9999" ]] && use doc && multilib_is_native_abi; then
379 + emake tclsqlite3.c
380 +
381 + local build_directory="$(pwd)"
382 + build_directory="${build_directory##*/}"
383 +
384 + mkdir "${WORKDIR}/${PN}-doc-build" || die
385 + pushd "${WORKDIR}/${PN}-doc-build" > /dev/null || die
386 +
387 + emake -f "../${PN}-doc/Makefile" -j1 SRC="../${PN}" BLD="../${build_directory}" DOC="../${PN}-doc" CC="$(tc-getBUILD_CC)" TCLINC="" TCLFLAGS="$($(tc-getBUILD_PKG_CONFIG) --libs tcl) -ldl -lm" base doc
388 + rmdir doc/matrix{/*,} || die
389 +
390 + popd > /dev/null || die
391 + fi
392 +}
393 +
394 +multilib_src_test() {
395 + if [[ "${EUID}" -eq 0 ]]; then
396 + ewarn "Skipping tests due to root permissions"
397 + return
398 + fi
399 +
400 + local -x SQLITE_HISTORY="${T}/sqlite_history_${ABI}"
401 +
402 + emake HAVE_TCL="$(usex tcl 1 "")" $(use debug && echo fulltest || echo test)
403 +}
404 +
405 +multilib_src_install() {
406 + emake DESTDIR="${D}" HAVE_TCL="$(usex tcl 1 "")" TCLLIBDIR="${EPREFIX}/usr/$(get_libdir)/${P}" install
407 +
408 + if use tools && multilib_is_native_abi; then
409 + install_tool() {
410 + if [[ -f ".libs/${1}" ]]; then
411 + newbin ".libs/${1}" "${2}"
412 + else
413 + newbin "${1}" "${2}"
414 + fi
415 + }
416 +
417 + install_tool changeset sqlite3-changeset
418 + install_tool dbdump sqlite3-db-dump
419 + install_tool dbhash sqlite3-db-hash
420 + install_tool dbtotxt sqlite3-db-to-txt
421 + install_tool index_usage sqlite3-index-usage
422 + install_tool rbu sqlite3-rbu
423 + install_tool scrub sqlite3-scrub
424 + install_tool showdb sqlite3-show-db
425 + install_tool showjournal sqlite3-show-journal
426 + install_tool showshm sqlite3-show-shm
427 + install_tool showstat4 sqlite3-show-stat4
428 + install_tool showwal sqlite3-show-wal
429 + install_tool sqldiff sqlite3-diff
430 + install_tool sqlite3_analyzer sqlite3-analyzer
431 + install_tool sqlite3_checker sqlite3-checker
432 + install_tool sqlite3_expert sqlite3-expert
433 + install_tool sqltclsh sqlite3-tclsh
434 +
435 + unset -f install_tool
436 + fi
437 +}
438 +
439 +multilib_src_install_all() {
440 + find "${ED}" -name "*.la" -delete || die
441 +
442 + doman sqlite3.1
443 +
444 + if use doc; then
445 + if [[ "${PV}" == "9999" ]]; then
446 + pushd "${WORKDIR}/${PN}-doc-build/doc" > /dev/null || die
447 + else
448 + pushd "${WORKDIR}/${PN}-doc-${DOC_PV}" > /dev/null || die
449 + fi
450 +
451 + find "(" -name "*.db" -o -name "*.txt" ")" -delete || die
452 + if [[ "${PV}" != "9999" ]]; then
453 + rm search search.d/admin || die
454 + rmdir search.d || die
455 + find -name "*~" -delete || die
456 + fi
457 +
458 + (
459 + docinto html
460 + dodoc -r *
461 + )
462 +
463 + popd > /dev/null || die
464 + fi
465 +}