Gentoo Archives: gentoo-commits

From: "Jakov Smolić" <jsmolic@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-db/sqlite/
Date: Fri, 06 May 2022 19:11:39
Message-Id: 1651864286.c19184d3fa2b7d6b2a0da7631085d2b46c14f1a6.jsmolic@gentoo
1 commit: c19184d3fa2b7d6b2a0da7631085d2b46c14f1a6
2 Author: Jakov Smolić <jsmolic <AT> gentoo <DOT> org>
3 AuthorDate: Fri May 6 19:10:50 2022 +0000
4 Commit: Jakov Smolić <jsmolic <AT> gentoo <DOT> org>
5 CommitDate: Fri May 6 19:11:26 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c19184d3
7
8 dev-db/sqlite: add 3.38.5
9
10 Signed-off-by: Jakov Smolić <jsmolic <AT> gentoo.org>
11
12 dev-db/sqlite/Manifest | 2 +
13 dev-db/sqlite/sqlite-3.38.5.ebuild | 436 +++++++++++++++++++++++++++++++++++++
14 2 files changed, 438 insertions(+)
15
16 diff --git a/dev-db/sqlite/Manifest b/dev-db/sqlite/Manifest
17 index 1753527de9dd..dcb6711ce5f1 100644
18 --- a/dev-db/sqlite/Manifest
19 +++ b/dev-db/sqlite/Manifest
20 @@ -2,7 +2,9 @@ DIST sqlite-doc-3380000.zip 10603776 BLAKE2B f196b00cce01672dc1a27a64d70669ff87c
21 DIST sqlite-doc-3380100.zip 10615296 BLAKE2B fa3df2458b9c15d5f7ce8abb02eb050dddb618c6e87cd79e1979612649be53de4ed26d2bb3e1230e43d7fb1293e1d5bfa870d211195a9b7c2a11a97d417d1ab6 SHA512 ccdfee3d07f2c43b6dda52a2240fd3e72ada38be5a644d097b23116e1b0c2e21f539bf56afbae30fc4275b9b4a954393f95b0a5272bcf18c98e1538d190ff6bc
22 DIST sqlite-doc-3380200.zip 10620764 BLAKE2B 81f7e7b9aef37bdae133c4d7dc517d2040d8202a7e0cdf00180d3abe3fb677c80dbc1987e437f0d0f34f47c61f09a7c9d664ba42af976ecfb24555590bb22087 SHA512 b54372ff788aa42b2138c6de91c42c4f6a6440623de3679f08b0519c5c20d9d865c60fa63223c60f4374ff5badb800d6f209e75abb280b9815902757424faf0b
23 DIST sqlite-doc-3380300.zip 10626490 BLAKE2B 7f1c2ff11ed4ba4748c35fcd72bedec5ce1ca68d87d00839f0a5f512c7309cf1c60678c0a0d8aecf07dc521c2240acdf1262f47ff3000b95e4953e095f2ec8f2 SHA512 4c30860b6ff0ba8c9455ea037cdda642bab2c1070e8726411ee51046b442f333623ce9c810d1d028a49ce571e6cc4afe363c643e90ba59463e84bb39298c4ad3
24 +DIST sqlite-doc-3380500.zip 10640188 BLAKE2B d831b672879a07e700c4d19bb97435cfc3aabc2371fd1b7f9e2257d1d53edaba72d974816d509fa60dbc7feaddf4b4f64c6bc061da4945aecab7be463951cb0c SHA512 1f8520e8b06cac97a3cd532d105be847b864d4d51ff2d8ab92c62b369e2e662aa477808e566e334a9103e31b84c119050b92ab6f0ef6d5d68db4d49bf2dd8182
25 DIST sqlite-src-3380000.zip 13236840 BLAKE2B f303e39a9d913994f0756f986de9d316322b2278b8d2aeb505eb37d1c370c2edbb91f6f56e95b73938137a72b0c22a82fc8a2ceb19ab03271c38f653b66f66ea SHA512 9f4d3c406df5e6290f3f0b5e24b568723ab54bb085cb8cd7621ab42b0b8cd4f76e9784a4a29b42ea8cb0d1b7d759267c3cd980913d490d08e7172df05949131d
26 DIST sqlite-src-3380100.zip 13241298 BLAKE2B 9dbccd5942f146da4c40d6208c491473c191752a74ee18ce131f3dea533976732440974e97906aead460daee39c7d6085ffa0f093d8f17e8f64c813bbb2409ad SHA512 df200916789c15e010a8e62dd8257833f34d4cf3496080a72fdc2330a530c193cda055e3c9ed39a404b87c8001c83a4b187491525ca95b5c5a1dbdd2f41cc222
27 DIST sqlite-src-3380200.zip 13242285 BLAKE2B a07f895f57c355e2ec1c96fc857b63d774ff52f7e49c22b1c936b260e6e7787ec656059c02cc6d38845c4368507067d86dac493559541fbb914a3da9cbc67cce SHA512 fd457602db4577b31bc6053fd3cceb220337275e3fd26976f4270fb8a7da4fa047ca23dd18e2795cdfd894d05bad4c53954a81391d71507d359fb224995e420a
28 DIST sqlite-src-3380300.zip 13244116 BLAKE2B d28c26a72729b49fac009e835068a15cb14b13bcef5e2d45a94929f22329002cbbf09ff9926a7cb041d1bcbd6fb9ebac784cce06196d29a9b9bf56f97645553e SHA512 d0605148931db62d167080e384d058e87452409fcb3ce366603e6eec8e2f68754259ce217c26e641401d5b0ae7714efd45fc4a881671db37597f2f027cd7da51
29 +DIST sqlite-src-3380500.zip 13245057 BLAKE2B d2deefbc918ab593146950c21047dbd94168d09150ffe00da20e4ee6b02f69516b496b14e1925b00ace8a4148b87bfb263a97d75ab48990e29e12796387fee5f SHA512 d91f060165354ff4b32a72627c16b6d2310d478768794a49eef57229d7199d83f951444fdc0725acf8d2565ef61a9c7921e9c965f429b018b6fd23d129b6e630
30
31 diff --git a/dev-db/sqlite/sqlite-3.38.5.ebuild b/dev-db/sqlite/sqlite-3.38.5.ebuild
32 new file mode 100644
33 index 000000000000..c69a893b551d
34 --- /dev/null
35 +++ b/dev-db/sqlite/sqlite-3.38.5.ebuild
36 @@ -0,0 +1,436 @@
37 +# Copyright 1999-2022 Gentoo Authors
38 +# Distributed under the terms of the GNU General Public License v2
39 +
40 +EAPI="7"
41 +
42 +inherit autotools flag-o-matic multilib-minimal toolchain-funcs
43 +
44 +if [[ "${PV}" != "9999" ]]; then
45 + SRC_PV="$(printf "%u%02u%02u%02u" $(ver_rs 1- " "))"
46 + DOC_PV="${SRC_PV}"
47 + # DOC_PV="$(printf "%u%02u%02u00" $(ver_rs 1-3 " "))"
48 +fi
49 +
50 +DESCRIPTION="SQL database engine"
51 +HOMEPAGE="https://sqlite.org/"
52 +
53 +# On version updates, make sure to read the forum (https://sqlite.org/forum/forum)
54 +# for hints regarding test failures, backports, etc.
55 +if [[ "${PV}" == "9999" ]]; then
56 + SRC_URI=""
57 +else
58 + SRC_URI="https://sqlite.org/2022/${PN}-src-${SRC_PV}.zip
59 + doc? ( https://sqlite.org/2022/${PN}-doc-${DOC_PV}.zip )"
60 +fi
61 +
62 +LICENSE="public-domain"
63 +SLOT="3"
64 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~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 memsys5 memory allocator.
242 + # https://sqlite.org/compile.html#enable_memsys5
243 + # https://sqlite.org/malloc.html#memsys5
244 + append-cppflags -DSQLITE_ENABLE_MEMSYS5
245 +
246 + # Support sqlite3_normalized_sql() function.
247 + # https://sqlite.org/c3ref/expanded_sql.html
248 + append-cppflags -DSQLITE_ENABLE_NORMALIZE
249 +
250 + # Support sqlite_offset() function.
251 + # https://sqlite.org/compile.html#enable_offset_sql_func
252 + # https://sqlite.org/lang_corefunc.html#sqlite_offset
253 + append-cppflags -DSQLITE_ENABLE_OFFSET_SQL_FUNC
254 +
255 + # Support pre-update hook functions.
256 + # https://sqlite.org/compile.html#enable_preupdate_hook
257 + # https://sqlite.org/c3ref/preupdate_count.html
258 + append-cppflags -DSQLITE_ENABLE_PREUPDATE_HOOK
259 +
260 + # Support Resumable Bulk Update extension.
261 + # https://sqlite.org/compile.html#enable_rbu
262 + # https://sqlite.org/rbu.html
263 + append-cppflags -DSQLITE_ENABLE_RBU
264 +
265 + # Support R*Trees.
266 + # https://sqlite.org/compile.html#enable_rtree
267 + # https://sqlite.org/compile.html#enable_geopoly
268 + # https://sqlite.org/rtree.html
269 + # https://sqlite.org/geopoly.html
270 + append-cppflags -DSQLITE_ENABLE_RTREE -DSQLITE_ENABLE_GEOPOLY
271 +
272 + # Support Session extension.
273 + # https://sqlite.org/compile.html#enable_session
274 + # https://sqlite.org/sessionintro.html
275 + append-cppflags -DSQLITE_ENABLE_SESSION
276 +
277 + # Support scan status functions.
278 + # https://sqlite.org/compile.html#enable_stmt_scanstatus
279 + # https://sqlite.org/c3ref/stmt_scanstatus.html
280 + # https://sqlite.org/c3ref/stmt_scanstatus_reset.html
281 + append-cppflags -DSQLITE_ENABLE_STMT_SCANSTATUS
282 +
283 + # Support sqlite_stmt virtual table.
284 + # https://sqlite.org/compile.html#enable_stmtvtab
285 + # https://sqlite.org/stmt.html
286 + append-cppflags -DSQLITE_ENABLE_STMTVTAB
287 +
288 + # Support unknown() function.
289 + # https://sqlite.org/compile.html#enable_unknown_sql_function
290 + append-cppflags -DSQLITE_ENABLE_UNKNOWN_SQL_FUNCTION
291 +
292 + # Support unlock notification.
293 + # https://sqlite.org/compile.html#enable_unlock_notify
294 + # https://sqlite.org/c3ref/unlock_notify.html
295 + # https://sqlite.org/unlock_notify.html
296 + append-cppflags -DSQLITE_ENABLE_UNLOCK_NOTIFY
297 +
298 + # Support LIMIT and ORDER BY clauses on DELETE and UPDATE statements.
299 + # https://sqlite.org/compile.html#enable_update_delete_limit
300 + # https://sqlite.org/lang_delete.html#optional_limit_and_order_by_clauses
301 + # https://sqlite.org/lang_update.html#optional_limit_and_order_by_clauses
302 + append-cppflags -DSQLITE_ENABLE_UPDATE_DELETE_LIMIT
303 +
304 + # Support soundex() function.
305 + # https://sqlite.org/compile.html#soundex
306 + # https://sqlite.org/lang_corefunc.html#soundex
307 + append-cppflags -DSQLITE_SOUNDEX
308 +
309 + # Support URI filenames.
310 + # https://sqlite.org/compile.html#use_uri
311 + # https://sqlite.org/uri.html
312 + append-cppflags -DSQLITE_USE_URI
313 +
314 + # debug USE flag.
315 + options+=($(use_enable debug))
316 +
317 + # icu USE flag.
318 + if use icu; then
319 + # Support ICU extension.
320 + # https://sqlite.org/compile.html#enable_icu
321 + append-cppflags -DSQLITE_ENABLE_ICU
322 + sed -e "s/^TLIBS = @LIBS@/& -licui18n -licuuc/" -i Makefile.in || die "sed failed"
323 + fi
324 +
325 + # readline USE flag.
326 + options+=(
327 + --disable-editline
328 + $(use_enable readline)
329 + )
330 + if use readline; then
331 + options+=(--with-readline-inc="-I${ESYSROOT}/usr/include/readline")
332 + fi
333 +
334 + # secure-delete USE flag.
335 + if use secure-delete; then
336 + # Enable secure_delete pragma by default.
337 + # https://sqlite.org/compile.html#secure_delete
338 + # https://sqlite.org/pragma.html#pragma_secure_delete
339 + append-cppflags -DSQLITE_SECURE_DELETE
340 + fi
341 +
342 + # static-libs USE flag.
343 + options+=($(use_enable static-libs static))
344 +
345 + # tcl, test, tools USE flags.
346 + if use tcl || use test || { use tools && multilib_is_native_abi; }; then
347 + options+=(
348 + --enable-tcl
349 + --with-tcl="${ESYSROOT}/usr/$(get_libdir)"
350 + )
351 + else
352 + options+=(--disable-tcl)
353 + fi
354 +
355 + if [[ "${ABI}" == "x86" ]]; then
356 + if $(tc-getCC) ${CPPFLAGS} ${CFLAGS} -E -P -dM - < /dev/null 2> /dev/null | grep -q "^#define __SSE__ 1$"; then
357 + append-cflags -mfpmath=sse
358 + else
359 + append-cflags -ffloat-store
360 + fi
361 +
362 + # Skip known-broken test for now
363 + # https://sqlite.org/forum/forumpost/d97caf168f
364 + # https://sqlite.org/forum/forumpost/50f136d91d
365 + if use test ; then
366 + rm test/atof1.test || die
367 + fi
368 + fi
369 +
370 + econf "${options[@]}"
371 +}
372 +
373 +multilib_src_compile() {
374 + emake HAVE_TCL="$(usex tcl 1 "")" TCLLIBDIR="${EPREFIX}/usr/$(get_libdir)/${P}"
375 +
376 + if use tools && multilib_is_native_abi; then
377 + emake changeset dbdump dbhash dbtotxt index_usage rbu scrub showdb showjournal showshm showstat4 showwal sqldiff sqlite3_analyzer sqlite3_checker sqlite3_expert sqltclsh
378 + fi
379 +
380 + if [[ "${PV}" == "9999" ]] && use doc && multilib_is_native_abi; then
381 + emake tclsqlite3.c
382 +
383 + local build_directory="$(pwd)"
384 + build_directory="${build_directory##*/}"
385 +
386 + mkdir "${WORKDIR}/${PN}-doc-build" || die
387 + pushd "${WORKDIR}/${PN}-doc-build" > /dev/null || die
388 +
389 + 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
390 + rmdir doc/matrix{/*,} || die
391 +
392 + popd > /dev/null || die
393 + fi
394 +}
395 +
396 +multilib_src_test() {
397 + if [[ "${EUID}" -eq 0 ]]; then
398 + ewarn "Skipping tests due to root permissions"
399 + return
400 + fi
401 +
402 + local -x SQLITE_HISTORY="${T}/sqlite_history_${ABI}"
403 +
404 + # e_uri.test tries to open files in /.
405 + # https://bugs.gentoo.org/839798
406 + local SANDBOX_PREDICT=${SANDBOX_PREDICT}
407 + addpredict "/test.db:/ÿ.db"
408 +
409 + emake HAVE_TCL="$(usex tcl 1 "")" $(use debug && echo fulltest || echo test)
410 +}
411 +
412 +multilib_src_install() {
413 + emake DESTDIR="${D}" HAVE_TCL="$(usex tcl 1 "")" TCLLIBDIR="${EPREFIX}/usr/$(get_libdir)/${P}" install
414 +
415 + if use tools && multilib_is_native_abi; then
416 + install_tool() {
417 + if [[ -f ".libs/${1}" ]]; then
418 + newbin ".libs/${1}" "${2}"
419 + else
420 + newbin "${1}" "${2}"
421 + fi
422 + }
423 +
424 + install_tool changeset sqlite3-changeset
425 + install_tool dbdump sqlite3-db-dump
426 + install_tool dbhash sqlite3-db-hash
427 + install_tool dbtotxt sqlite3-db-to-txt
428 + install_tool index_usage sqlite3-index-usage
429 + install_tool rbu sqlite3-rbu
430 + install_tool scrub sqlite3-scrub
431 + install_tool showdb sqlite3-show-db
432 + install_tool showjournal sqlite3-show-journal
433 + install_tool showshm sqlite3-show-shm
434 + install_tool showstat4 sqlite3-show-stat4
435 + install_tool showwal sqlite3-show-wal
436 + install_tool sqldiff sqlite3-diff
437 + install_tool sqlite3_analyzer sqlite3-analyzer
438 + install_tool sqlite3_checker sqlite3-checker
439 + install_tool sqlite3_expert sqlite3-expert
440 + install_tool sqltclsh sqlite3-tclsh
441 +
442 + unset -f install_tool
443 + fi
444 +}
445 +
446 +multilib_src_install_all() {
447 + find "${ED}" -name "*.la" -delete || die
448 +
449 + doman sqlite3.1
450 +
451 + if use doc; then
452 + if [[ "${PV}" == "9999" ]]; then
453 + pushd "${WORKDIR}/${PN}-doc-build/doc" > /dev/null || die
454 + else
455 + pushd "${WORKDIR}/${PN}-doc-${DOC_PV}" > /dev/null || die
456 + fi
457 +
458 + find "(" -name "*.db" -o -name "*.txt" ")" -delete || die
459 + if [[ "${PV}" != "9999" ]]; then
460 + rm search search.d/admin || die
461 + rmdir search.d || die
462 + find -name "*~" -delete || die
463 + fi
464 +
465 + (
466 + docinto html
467 + dodoc -r *
468 + )
469 +
470 + popd > /dev/null || die
471 + fi
472 +}