1 |
commit: d623487d60ebf43146e1bed06cce4e6ac1b0f48e |
2 |
Author: Jakov Smolić <jsmolic <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Aug 1 20:19:27 2022 +0000 |
4 |
Commit: Jakov Smolić <jsmolic <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Aug 1 20:20:30 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d623487d |
7 |
|
8 |
dev-db/sqlite: drop 3.38.2, 3.38.5 |
9 |
|
10 |
Signed-off-by: Jakov Smolić <jsmolic <AT> gentoo.org> |
11 |
|
12 |
dev-db/sqlite/Manifest | 4 - |
13 |
dev-db/sqlite/sqlite-3.38.2.ebuild | 436 ------------------------------------- |
14 |
dev-db/sqlite/sqlite-3.38.5.ebuild | 436 ------------------------------------- |
15 |
3 files changed, 876 deletions(-) |
16 |
|
17 |
diff --git a/dev-db/sqlite/Manifest b/dev-db/sqlite/Manifest |
18 |
index 62a2bce1aa2e..26d53697bbcc 100644 |
19 |
--- a/dev-db/sqlite/Manifest |
20 |
+++ b/dev-db/sqlite/Manifest |
21 |
@@ -1,6 +1,2 @@ |
22 |
-DIST sqlite-doc-3380200.zip 10620764 BLAKE2B 81f7e7b9aef37bdae133c4d7dc517d2040d8202a7e0cdf00180d3abe3fb677c80dbc1987e437f0d0f34f47c61f09a7c9d664ba42af976ecfb24555590bb22087 SHA512 b54372ff788aa42b2138c6de91c42c4f6a6440623de3679f08b0519c5c20d9d865c60fa63223c60f4374ff5badb800d6f209e75abb280b9815902757424faf0b |
23 |
-DIST sqlite-doc-3380500.zip 10640188 BLAKE2B d831b672879a07e700c4d19bb97435cfc3aabc2371fd1b7f9e2257d1d53edaba72d974816d509fa60dbc7feaddf4b4f64c6bc061da4945aecab7be463951cb0c SHA512 1f8520e8b06cac97a3cd532d105be847b864d4d51ff2d8ab92c62b369e2e662aa477808e566e334a9103e31b84c119050b92ab6f0ef6d5d68db4d49bf2dd8182 |
24 |
DIST sqlite-doc-3390200.zip 10683207 BLAKE2B 745aedf0c71da6c0d802aed2b64b6e10ef57f4a72210b12276a3019ccc5408bef537ad93c64eb972a7f24117df5780e35f75246d2ba9cd74c4537588eb6cba3c SHA512 54b9e632244b95ebf35fcaa5ce9c02381601eb442eec2ec2a809a7fe24d2cfed751581bb82fd243aaede2c935864da39fd1f1685e762826dd76fc754c7f79c0b |
25 |
-DIST sqlite-src-3380200.zip 13242285 BLAKE2B a07f895f57c355e2ec1c96fc857b63d774ff52f7e49c22b1c936b260e6e7787ec656059c02cc6d38845c4368507067d86dac493559541fbb914a3da9cbc67cce SHA512 fd457602db4577b31bc6053fd3cceb220337275e3fd26976f4270fb8a7da4fa047ca23dd18e2795cdfd894d05bad4c53954a81391d71507d359fb224995e420a |
26 |
-DIST sqlite-src-3380500.zip 13245057 BLAKE2B d2deefbc918ab593146950c21047dbd94168d09150ffe00da20e4ee6b02f69516b496b14e1925b00ace8a4148b87bfb263a97d75ab48990e29e12796387fee5f SHA512 d91f060165354ff4b32a72627c16b6d2310d478768794a49eef57229d7199d83f951444fdc0725acf8d2565ef61a9c7921e9c965f429b018b6fd23d129b6e630 |
27 |
DIST sqlite-src-3390200.zip 13403722 BLAKE2B 24ab8cfe5fda267c7a90939875e87bc9f9914f2690f195c21ff2b774ba83a7d6914f57648cf618fd79b37e54ad85121f86310a733a87e6c76bf729716a937d02 SHA512 a838386a48654391590ea0e1cb355d29f6f93033c3e582df7c63139adaf5119dd5a1550e913dbad0d3eafb0bfa03c4fc6dc48a334d9c45ffb8a7205a528b38f1 |
28 |
|
29 |
diff --git a/dev-db/sqlite/sqlite-3.38.2.ebuild b/dev-db/sqlite/sqlite-3.38.2.ebuild |
30 |
deleted file mode 100644 |
31 |
index a2eb7c1e987f..000000000000 |
32 |
--- a/dev-db/sqlite/sqlite-3.38.2.ebuild |
33 |
+++ /dev/null |
34 |
@@ -1,436 +0,0 @@ |
35 |
-# Copyright 1999-2022 Gentoo Authors |
36 |
-# Distributed under the terms of the GNU General Public License v2 |
37 |
- |
38 |
-EAPI="7" |
39 |
- |
40 |
-inherit autotools flag-o-matic multilib-minimal toolchain-funcs |
41 |
- |
42 |
-if [[ "${PV}" != "9999" ]]; then |
43 |
- SRC_PV="$(printf "%u%02u%02u%02u" $(ver_rs 1- " "))" |
44 |
- DOC_PV="${SRC_PV}" |
45 |
- # DOC_PV="$(printf "%u%02u%02u00" $(ver_rs 1-3 " "))" |
46 |
-fi |
47 |
- |
48 |
-DESCRIPTION="SQL database engine" |
49 |
-HOMEPAGE="https://sqlite.org/" |
50 |
- |
51 |
-# On version updates, make sure to read the forum (https://sqlite.org/forum/forum) |
52 |
-# for hints regarding test failures, backports, etc. |
53 |
-if [[ "${PV}" == "9999" ]]; then |
54 |
- SRC_URI="" |
55 |
-else |
56 |
- SRC_URI="https://sqlite.org/2022/${PN}-src-${SRC_PV}.zip |
57 |
- doc? ( https://sqlite.org/2022/${PN}-doc-${DOC_PV}.zip )" |
58 |
-fi |
59 |
- |
60 |
-LICENSE="public-domain" |
61 |
-SLOT="3" |
62 |
-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" |
63 |
-IUSE="debug doc icu +readline secure-delete static-libs tcl test tools" |
64 |
-if [[ "${PV}" == "9999" ]]; then |
65 |
- PROPERTIES="live" |
66 |
-fi |
67 |
-RESTRICT="!test? ( test )" |
68 |
- |
69 |
-if [[ "${PV}" == "9999" ]]; then |
70 |
- BDEPEND=">=dev-lang/tcl-8.6:0 |
71 |
- dev-vcs/fossil" |
72 |
-else |
73 |
- BDEPEND="app-arch/unzip |
74 |
- >=dev-lang/tcl-8.6:0" |
75 |
-fi |
76 |
-RDEPEND="sys-libs/zlib:0=[${MULTILIB_USEDEP}] |
77 |
- icu? ( dev-libs/icu:0=[${MULTILIB_USEDEP}] ) |
78 |
- readline? ( sys-libs/readline:0=[${MULTILIB_USEDEP}] ) |
79 |
- tcl? ( dev-lang/tcl:0=[${MULTILIB_USEDEP}] ) |
80 |
- tools? ( dev-lang/tcl:0= )" |
81 |
-DEPEND="${RDEPEND} |
82 |
- test? ( >=dev-lang/tcl-8.6:0[${MULTILIB_USEDEP}] )" |
83 |
- |
84 |
-if [[ "${PV}" == "9999" ]]; then |
85 |
- S="${WORKDIR}/${PN}" |
86 |
-else |
87 |
- S="${WORKDIR}/${PN}-src-${SRC_PV}" |
88 |
-fi |
89 |
- |
90 |
-_fossil_fetch() { |
91 |
- local distdir="${PORTAGE_ACTUAL_DISTDIR:-${DISTDIR}}" |
92 |
- local repo_id="${1}" |
93 |
- local repo_uri="${2}" |
94 |
- |
95 |
- local -x FOSSIL_HOME="${HOME}" |
96 |
- |
97 |
- mkdir -p "${T}/fossil/${repo_id}" || die |
98 |
- pushd "${T}/fossil/${repo_id}" > /dev/null || die |
99 |
- |
100 |
- if [[ -n "${EVCS_OFFLINE}" ]]; then |
101 |
- if [[ ! -f "${distdir}/fossil-src/${repo_id}/${repo_id}.fossil" ]]; then |
102 |
- die "Network activity disabled using EVCS_OFFLINE and clone of repository missing: \"${distdir}/fossil-src/${repo_id}/${repo_id}.fossil\"" |
103 |
- fi |
104 |
- else |
105 |
- if [[ ! -f "${distdir}/fossil-src/${repo_id}/${repo_id}.fossil" ]]; then |
106 |
- einfo fossil clone --verbose "${repo_uri}" "${repo_id}.fossil" |
107 |
- fossil clone --verbose "${repo_uri}" "${repo_id}.fossil" || die |
108 |
- echo |
109 |
- else |
110 |
- cp -p "${distdir}/fossil-src/${repo_id}/${repo_id}.fossil" . || die |
111 |
- einfo fossil pull --repository "${repo_id}.fossil" --verbose "${repo_uri}" |
112 |
- fossil pull --repository "${repo_id}.fossil" --verbose "${repo_uri}" || die |
113 |
- echo |
114 |
- fi |
115 |
- |
116 |
- ( |
117 |
- addwrite "${distdir}" |
118 |
- mkdir -p "${distdir}/fossil-src/${repo_id}" || die |
119 |
- cp -p "${repo_id}.fossil" "${distdir}/fossil-src/${repo_id}/${repo_id}.fossil" || die |
120 |
- ) |
121 |
- fi |
122 |
- |
123 |
- popd > /dev/null || die |
124 |
-} |
125 |
- |
126 |
-_fossil_checkout() { |
127 |
- local distdir="${PORTAGE_ACTUAL_DISTDIR:-${DISTDIR}}" |
128 |
- local repo_id="${1}" |
129 |
- local branch_or_commit="${2}" |
130 |
- local target_directory="${3}" |
131 |
- |
132 |
- local -x FOSSIL_HOME="${HOME}" |
133 |
- |
134 |
- if [[ ! -f "${distdir}/fossil-src/${repo_id}/${repo_id}.fossil" ]]; then |
135 |
- die "Clone of repository missing: \"${distdir}/fossil-src/${repo_id}/${repo_id}.fossil\"" |
136 |
- fi |
137 |
- |
138 |
- if [[ ! -f "${T}/fossil/${repo_id}/${repo_id}.fossil" ]]; then |
139 |
- mkdir -p "${T}/fossil/${repo_id}" || die |
140 |
- cp -p "${distdir}/fossil-src/${repo_id}/${repo_id}.fossil" "${T}/fossil/${repo_id}" || die |
141 |
- fi |
142 |
- |
143 |
- mkdir "${target_directory}" || die |
144 |
- pushd "${target_directory}" > /dev/null || die |
145 |
- |
146 |
- einfo fossil open --quiet "${T}/fossil/${repo_id}/${repo_id}.fossil" "${branch_or_commit}" |
147 |
- fossil open --quiet "${T}/fossil/${repo_id}/${repo_id}.fossil" "${branch_or_commit}" || die |
148 |
- echo |
149 |
- |
150 |
- popd > /dev/null || die |
151 |
-} |
152 |
- |
153 |
-fossil_fetch() { |
154 |
- local repo_id="${1}" |
155 |
- local repo_uri="${2}" |
156 |
- local target_directory="${3}" |
157 |
- |
158 |
- local branch_or_commit="${EFOSSIL_COMMIT:-${EFOSSIL_BRANCH:-trunk}}" |
159 |
- |
160 |
- _fossil_fetch "${repo_id}" "${repo_uri}" |
161 |
- _fossil_checkout "${repo_id}" "${branch_or_commit}" "${target_directory}" |
162 |
-} |
163 |
- |
164 |
-src_unpack() { |
165 |
- if [[ "${PV}" == "9999" ]]; then |
166 |
- fossil_fetch sqlite https://sqlite.org/src "${WORKDIR}/${PN}" |
167 |
- if use doc; then |
168 |
- fossil_fetch sqlite-doc https://sqlite.org/docsrc "${WORKDIR}/${PN}-doc" |
169 |
- fi |
170 |
- else |
171 |
- default |
172 |
- fi |
173 |
-} |
174 |
- |
175 |
-src_prepare() { |
176 |
- eapply_user |
177 |
- |
178 |
- eautoreconf |
179 |
- |
180 |
- multilib_copy_sources |
181 |
-} |
182 |
- |
183 |
-multilib_src_configure() { |
184 |
- local -x CPPFLAGS="${CPPFLAGS}" CFLAGS="${CFLAGS}" |
185 |
- local options=() |
186 |
- |
187 |
- options+=( |
188 |
- --enable-load-extension |
189 |
- --enable-threadsafe |
190 |
- ) |
191 |
- |
192 |
- # Support detection of misuse of SQLite API. |
193 |
- # https://sqlite.org/compile.html#enable_api_armor |
194 |
- append-cppflags -DSQLITE_ENABLE_API_ARMOR |
195 |
- |
196 |
- # Support bytecode and tables_used virtual tables. |
197 |
- # https://sqlite.org/compile.html#enable_bytecode_vtab |
198 |
- # https://sqlite.org/bytecodevtab.html |
199 |
- append-cppflags -DSQLITE_ENABLE_BYTECODE_VTAB |
200 |
- |
201 |
- # Support column metadata functions. |
202 |
- # https://sqlite.org/compile.html#enable_column_metadata |
203 |
- # https://sqlite.org/c3ref/column_database_name.html |
204 |
- append-cppflags -DSQLITE_ENABLE_COLUMN_METADATA |
205 |
- |
206 |
- # Support sqlite_dbpage virtual table. |
207 |
- # https://sqlite.org/compile.html#enable_dbpage_vtab |
208 |
- # https://sqlite.org/dbpage.html |
209 |
- append-cppflags -DSQLITE_ENABLE_DBPAGE_VTAB |
210 |
- |
211 |
- # Support dbstat virtual table. |
212 |
- # https://sqlite.org/compile.html#enable_dbstat_vtab |
213 |
- # https://sqlite.org/dbstat.html |
214 |
- append-cppflags -DSQLITE_ENABLE_DBSTAT_VTAB |
215 |
- |
216 |
- # Support sqlite3_serialize() and sqlite3_deserialize() functions. |
217 |
- # https://sqlite.org/compile.html#enable_deserialize |
218 |
- # https://sqlite.org/c3ref/serialize.html |
219 |
- # https://sqlite.org/c3ref/deserialize.html |
220 |
- append-cppflags -DSQLITE_ENABLE_DESERIALIZE |
221 |
- |
222 |
- # Support comments in output of EXPLAIN. |
223 |
- # https://sqlite.org/compile.html#enable_explain_comments |
224 |
- append-cppflags -DSQLITE_ENABLE_EXPLAIN_COMMENTS |
225 |
- |
226 |
- # Support Full-Text Search versions 3, 4 and 5. |
227 |
- # https://sqlite.org/compile.html#enable_fts3 |
228 |
- # https://sqlite.org/compile.html#enable_fts3_parenthesis |
229 |
- # https://sqlite.org/compile.html#enable_fts4 |
230 |
- # https://sqlite.org/compile.html#enable_fts5 |
231 |
- # https://sqlite.org/fts3.html |
232 |
- # https://sqlite.org/fts5.html |
233 |
- append-cppflags -DSQLITE_ENABLE_FTS3 -DSQLITE_ENABLE_FTS3_PARENTHESIS -DSQLITE_ENABLE_FTS4 |
234 |
- options+=(--enable-fts5) |
235 |
- |
236 |
- # Support hidden columns. |
237 |
- append-cppflags -DSQLITE_ENABLE_HIDDEN_COLUMNS |
238 |
- |
239 |
- # Support memsys5 memory allocator. |
240 |
- # https://sqlite.org/compile.html#enable_memsys5 |
241 |
- # https://sqlite.org/malloc.html#memsys5 |
242 |
- append-cppflags -DSQLITE_ENABLE_MEMSYS5 |
243 |
- |
244 |
- # Support sqlite3_normalized_sql() function. |
245 |
- # https://sqlite.org/c3ref/expanded_sql.html |
246 |
- append-cppflags -DSQLITE_ENABLE_NORMALIZE |
247 |
- |
248 |
- # Support sqlite_offset() function. |
249 |
- # https://sqlite.org/compile.html#enable_offset_sql_func |
250 |
- # https://sqlite.org/lang_corefunc.html#sqlite_offset |
251 |
- append-cppflags -DSQLITE_ENABLE_OFFSET_SQL_FUNC |
252 |
- |
253 |
- # Support pre-update hook functions. |
254 |
- # https://sqlite.org/compile.html#enable_preupdate_hook |
255 |
- # https://sqlite.org/c3ref/preupdate_count.html |
256 |
- append-cppflags -DSQLITE_ENABLE_PREUPDATE_HOOK |
257 |
- |
258 |
- # Support Resumable Bulk Update extension. |
259 |
- # https://sqlite.org/compile.html#enable_rbu |
260 |
- # https://sqlite.org/rbu.html |
261 |
- append-cppflags -DSQLITE_ENABLE_RBU |
262 |
- |
263 |
- # Support R*Trees. |
264 |
- # https://sqlite.org/compile.html#enable_rtree |
265 |
- # https://sqlite.org/compile.html#enable_geopoly |
266 |
- # https://sqlite.org/rtree.html |
267 |
- # https://sqlite.org/geopoly.html |
268 |
- append-cppflags -DSQLITE_ENABLE_RTREE -DSQLITE_ENABLE_GEOPOLY |
269 |
- |
270 |
- # Support Session extension. |
271 |
- # https://sqlite.org/compile.html#enable_session |
272 |
- # https://sqlite.org/sessionintro.html |
273 |
- append-cppflags -DSQLITE_ENABLE_SESSION |
274 |
- |
275 |
- # Support scan status functions. |
276 |
- # https://sqlite.org/compile.html#enable_stmt_scanstatus |
277 |
- # https://sqlite.org/c3ref/stmt_scanstatus.html |
278 |
- # https://sqlite.org/c3ref/stmt_scanstatus_reset.html |
279 |
- append-cppflags -DSQLITE_ENABLE_STMT_SCANSTATUS |
280 |
- |
281 |
- # Support sqlite_stmt virtual table. |
282 |
- # https://sqlite.org/compile.html#enable_stmtvtab |
283 |
- # https://sqlite.org/stmt.html |
284 |
- append-cppflags -DSQLITE_ENABLE_STMTVTAB |
285 |
- |
286 |
- # Support unknown() function. |
287 |
- # https://sqlite.org/compile.html#enable_unknown_sql_function |
288 |
- append-cppflags -DSQLITE_ENABLE_UNKNOWN_SQL_FUNCTION |
289 |
- |
290 |
- # Support unlock notification. |
291 |
- # https://sqlite.org/compile.html#enable_unlock_notify |
292 |
- # https://sqlite.org/c3ref/unlock_notify.html |
293 |
- # https://sqlite.org/unlock_notify.html |
294 |
- append-cppflags -DSQLITE_ENABLE_UNLOCK_NOTIFY |
295 |
- |
296 |
- # Support LIMIT and ORDER BY clauses on DELETE and UPDATE statements. |
297 |
- # https://sqlite.org/compile.html#enable_update_delete_limit |
298 |
- # https://sqlite.org/lang_delete.html#optional_limit_and_order_by_clauses |
299 |
- # https://sqlite.org/lang_update.html#optional_limit_and_order_by_clauses |
300 |
- append-cppflags -DSQLITE_ENABLE_UPDATE_DELETE_LIMIT |
301 |
- |
302 |
- # Support soundex() function. |
303 |
- # https://sqlite.org/compile.html#soundex |
304 |
- # https://sqlite.org/lang_corefunc.html#soundex |
305 |
- append-cppflags -DSQLITE_SOUNDEX |
306 |
- |
307 |
- # Support URI filenames. |
308 |
- # https://sqlite.org/compile.html#use_uri |
309 |
- # https://sqlite.org/uri.html |
310 |
- append-cppflags -DSQLITE_USE_URI |
311 |
- |
312 |
- # debug USE flag. |
313 |
- options+=($(use_enable debug)) |
314 |
- |
315 |
- # icu USE flag. |
316 |
- if use icu; then |
317 |
- # Support ICU extension. |
318 |
- # https://sqlite.org/compile.html#enable_icu |
319 |
- append-cppflags -DSQLITE_ENABLE_ICU |
320 |
- sed -e "s/^TLIBS = @LIBS@/& -licui18n -licuuc/" -i Makefile.in || die "sed failed" |
321 |
- fi |
322 |
- |
323 |
- # readline USE flag. |
324 |
- options+=( |
325 |
- --disable-editline |
326 |
- $(use_enable readline) |
327 |
- ) |
328 |
- if use readline; then |
329 |
- options+=(--with-readline-inc="-I${ESYSROOT}/usr/include/readline") |
330 |
- fi |
331 |
- |
332 |
- # secure-delete USE flag. |
333 |
- if use secure-delete; then |
334 |
- # Enable secure_delete pragma by default. |
335 |
- # https://sqlite.org/compile.html#secure_delete |
336 |
- # https://sqlite.org/pragma.html#pragma_secure_delete |
337 |
- append-cppflags -DSQLITE_SECURE_DELETE |
338 |
- fi |
339 |
- |
340 |
- # static-libs USE flag. |
341 |
- options+=($(use_enable static-libs static)) |
342 |
- |
343 |
- # tcl, test, tools USE flags. |
344 |
- if use tcl || use test || { use tools && multilib_is_native_abi; }; then |
345 |
- options+=( |
346 |
- --enable-tcl |
347 |
- --with-tcl="${ESYSROOT}/usr/$(get_libdir)" |
348 |
- ) |
349 |
- else |
350 |
- options+=(--disable-tcl) |
351 |
- fi |
352 |
- |
353 |
- if [[ "${ABI}" == "x86" ]]; then |
354 |
- if $(tc-getCC) ${CPPFLAGS} ${CFLAGS} -E -P -dM - < /dev/null 2> /dev/null | grep -q "^#define __SSE__ 1$"; then |
355 |
- append-cflags -mfpmath=sse |
356 |
- else |
357 |
- append-cflags -ffloat-store |
358 |
- fi |
359 |
- |
360 |
- # Skip known-broken test for now |
361 |
- # https://sqlite.org/forum/forumpost/d97caf168f |
362 |
- # https://sqlite.org/forum/forumpost/50f136d91d |
363 |
- if use test ; then |
364 |
- rm test/atof1.test || die |
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 |
- # e_uri.test tries to open files in /. |
403 |
- # https://bugs.gentoo.org/839798 |
404 |
- local SANDBOX_PREDICT=${SANDBOX_PREDICT} |
405 |
- addpredict "/test.db:/ÿ.db" |
406 |
- |
407 |
- emake HAVE_TCL="$(usex tcl 1 "")" $(use debug && echo fulltest || echo test) |
408 |
-} |
409 |
- |
410 |
-multilib_src_install() { |
411 |
- emake DESTDIR="${D}" HAVE_TCL="$(usex tcl 1 "")" TCLLIBDIR="${EPREFIX}/usr/$(get_libdir)/${P}" install |
412 |
- |
413 |
- if use tools && multilib_is_native_abi; then |
414 |
- install_tool() { |
415 |
- if [[ -f ".libs/${1}" ]]; then |
416 |
- newbin ".libs/${1}" "${2}" |
417 |
- else |
418 |
- newbin "${1}" "${2}" |
419 |
- fi |
420 |
- } |
421 |
- |
422 |
- install_tool changeset sqlite3-changeset |
423 |
- install_tool dbdump sqlite3-db-dump |
424 |
- install_tool dbhash sqlite3-db-hash |
425 |
- install_tool dbtotxt sqlite3-db-to-txt |
426 |
- install_tool index_usage sqlite3-index-usage |
427 |
- install_tool rbu sqlite3-rbu |
428 |
- install_tool scrub sqlite3-scrub |
429 |
- install_tool showdb sqlite3-show-db |
430 |
- install_tool showjournal sqlite3-show-journal |
431 |
- install_tool showshm sqlite3-show-shm |
432 |
- install_tool showstat4 sqlite3-show-stat4 |
433 |
- install_tool showwal sqlite3-show-wal |
434 |
- install_tool sqldiff sqlite3-diff |
435 |
- install_tool sqlite3_analyzer sqlite3-analyzer |
436 |
- install_tool sqlite3_checker sqlite3-checker |
437 |
- install_tool sqlite3_expert sqlite3-expert |
438 |
- install_tool sqltclsh sqlite3-tclsh |
439 |
- |
440 |
- unset -f install_tool |
441 |
- fi |
442 |
-} |
443 |
- |
444 |
-multilib_src_install_all() { |
445 |
- find "${ED}" -name "*.la" -delete || die |
446 |
- |
447 |
- doman sqlite3.1 |
448 |
- |
449 |
- if use doc; then |
450 |
- if [[ "${PV}" == "9999" ]]; then |
451 |
- pushd "${WORKDIR}/${PN}-doc-build/doc" > /dev/null || die |
452 |
- else |
453 |
- pushd "${WORKDIR}/${PN}-doc-${DOC_PV}" > /dev/null || die |
454 |
- fi |
455 |
- |
456 |
- find "(" -name "*.db" -o -name "*.txt" ")" -delete || die |
457 |
- if [[ "${PV}" != "9999" ]]; then |
458 |
- rm search search.d/admin || die |
459 |
- rmdir search.d || die |
460 |
- find -name "*~" -delete || die |
461 |
- fi |
462 |
- |
463 |
- ( |
464 |
- docinto html |
465 |
- dodoc -r * |
466 |
- ) |
467 |
- |
468 |
- popd > /dev/null || die |
469 |
- fi |
470 |
-} |
471 |
|
472 |
diff --git a/dev-db/sqlite/sqlite-3.38.5.ebuild b/dev-db/sqlite/sqlite-3.38.5.ebuild |
473 |
deleted file mode 100644 |
474 |
index 296678136915..000000000000 |
475 |
--- a/dev-db/sqlite/sqlite-3.38.5.ebuild |
476 |
+++ /dev/null |
477 |
@@ -1,436 +0,0 @@ |
478 |
-# Copyright 1999-2022 Gentoo Authors |
479 |
-# Distributed under the terms of the GNU General Public License v2 |
480 |
- |
481 |
-EAPI="7" |
482 |
- |
483 |
-inherit autotools flag-o-matic multilib-minimal toolchain-funcs |
484 |
- |
485 |
-if [[ "${PV}" != "9999" ]]; then |
486 |
- SRC_PV="$(printf "%u%02u%02u%02u" $(ver_rs 1- " "))" |
487 |
- DOC_PV="${SRC_PV}" |
488 |
- # DOC_PV="$(printf "%u%02u%02u00" $(ver_rs 1-3 " "))" |
489 |
-fi |
490 |
- |
491 |
-DESCRIPTION="SQL database engine" |
492 |
-HOMEPAGE="https://sqlite.org/" |
493 |
- |
494 |
-# On version updates, make sure to read the forum (https://sqlite.org/forum/forum) |
495 |
-# for hints regarding test failures, backports, etc. |
496 |
-if [[ "${PV}" == "9999" ]]; then |
497 |
- SRC_URI="" |
498 |
-else |
499 |
- SRC_URI="https://sqlite.org/2022/${PN}-src-${SRC_PV}.zip |
500 |
- doc? ( https://sqlite.org/2022/${PN}-doc-${DOC_PV}.zip )" |
501 |
-fi |
502 |
- |
503 |
-LICENSE="public-domain" |
504 |
-SLOT="3" |
505 |
-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" |
506 |
-IUSE="debug doc icu +readline secure-delete static-libs tcl test tools" |
507 |
-if [[ "${PV}" == "9999" ]]; then |
508 |
- PROPERTIES="live" |
509 |
-fi |
510 |
-RESTRICT="!test? ( test )" |
511 |
- |
512 |
-if [[ "${PV}" == "9999" ]]; then |
513 |
- BDEPEND=">=dev-lang/tcl-8.6:0 |
514 |
- dev-vcs/fossil" |
515 |
-else |
516 |
- BDEPEND="app-arch/unzip |
517 |
- >=dev-lang/tcl-8.6:0" |
518 |
-fi |
519 |
-RDEPEND="sys-libs/zlib:0=[${MULTILIB_USEDEP}] |
520 |
- icu? ( dev-libs/icu:0=[${MULTILIB_USEDEP}] ) |
521 |
- readline? ( sys-libs/readline:0=[${MULTILIB_USEDEP}] ) |
522 |
- tcl? ( dev-lang/tcl:0=[${MULTILIB_USEDEP}] ) |
523 |
- tools? ( dev-lang/tcl:0= )" |
524 |
-DEPEND="${RDEPEND} |
525 |
- test? ( >=dev-lang/tcl-8.6:0[${MULTILIB_USEDEP}] )" |
526 |
- |
527 |
-if [[ "${PV}" == "9999" ]]; then |
528 |
- S="${WORKDIR}/${PN}" |
529 |
-else |
530 |
- S="${WORKDIR}/${PN}-src-${SRC_PV}" |
531 |
-fi |
532 |
- |
533 |
-_fossil_fetch() { |
534 |
- local distdir="${PORTAGE_ACTUAL_DISTDIR:-${DISTDIR}}" |
535 |
- local repo_id="${1}" |
536 |
- local repo_uri="${2}" |
537 |
- |
538 |
- local -x FOSSIL_HOME="${HOME}" |
539 |
- |
540 |
- mkdir -p "${T}/fossil/${repo_id}" || die |
541 |
- pushd "${T}/fossil/${repo_id}" > /dev/null || die |
542 |
- |
543 |
- if [[ -n "${EVCS_OFFLINE}" ]]; then |
544 |
- if [[ ! -f "${distdir}/fossil-src/${repo_id}/${repo_id}.fossil" ]]; then |
545 |
- die "Network activity disabled using EVCS_OFFLINE and clone of repository missing: \"${distdir}/fossil-src/${repo_id}/${repo_id}.fossil\"" |
546 |
- fi |
547 |
- else |
548 |
- if [[ ! -f "${distdir}/fossil-src/${repo_id}/${repo_id}.fossil" ]]; then |
549 |
- einfo fossil clone --verbose "${repo_uri}" "${repo_id}.fossil" |
550 |
- fossil clone --verbose "${repo_uri}" "${repo_id}.fossil" || die |
551 |
- echo |
552 |
- else |
553 |
- cp -p "${distdir}/fossil-src/${repo_id}/${repo_id}.fossil" . || die |
554 |
- einfo fossil pull --repository "${repo_id}.fossil" --verbose "${repo_uri}" |
555 |
- fossil pull --repository "${repo_id}.fossil" --verbose "${repo_uri}" || die |
556 |
- echo |
557 |
- fi |
558 |
- |
559 |
- ( |
560 |
- addwrite "${distdir}" |
561 |
- mkdir -p "${distdir}/fossil-src/${repo_id}" || die |
562 |
- cp -p "${repo_id}.fossil" "${distdir}/fossil-src/${repo_id}/${repo_id}.fossil" || die |
563 |
- ) |
564 |
- fi |
565 |
- |
566 |
- popd > /dev/null || die |
567 |
-} |
568 |
- |
569 |
-_fossil_checkout() { |
570 |
- local distdir="${PORTAGE_ACTUAL_DISTDIR:-${DISTDIR}}" |
571 |
- local repo_id="${1}" |
572 |
- local branch_or_commit="${2}" |
573 |
- local target_directory="${3}" |
574 |
- |
575 |
- local -x FOSSIL_HOME="${HOME}" |
576 |
- |
577 |
- if [[ ! -f "${distdir}/fossil-src/${repo_id}/${repo_id}.fossil" ]]; then |
578 |
- die "Clone of repository missing: \"${distdir}/fossil-src/${repo_id}/${repo_id}.fossil\"" |
579 |
- fi |
580 |
- |
581 |
- if [[ ! -f "${T}/fossil/${repo_id}/${repo_id}.fossil" ]]; then |
582 |
- mkdir -p "${T}/fossil/${repo_id}" || die |
583 |
- cp -p "${distdir}/fossil-src/${repo_id}/${repo_id}.fossil" "${T}/fossil/${repo_id}" || die |
584 |
- fi |
585 |
- |
586 |
- mkdir "${target_directory}" || die |
587 |
- pushd "${target_directory}" > /dev/null || die |
588 |
- |
589 |
- einfo fossil open --quiet "${T}/fossil/${repo_id}/${repo_id}.fossil" "${branch_or_commit}" |
590 |
- fossil open --quiet "${T}/fossil/${repo_id}/${repo_id}.fossil" "${branch_or_commit}" || die |
591 |
- echo |
592 |
- |
593 |
- popd > /dev/null || die |
594 |
-} |
595 |
- |
596 |
-fossil_fetch() { |
597 |
- local repo_id="${1}" |
598 |
- local repo_uri="${2}" |
599 |
- local target_directory="${3}" |
600 |
- |
601 |
- local branch_or_commit="${EFOSSIL_COMMIT:-${EFOSSIL_BRANCH:-trunk}}" |
602 |
- |
603 |
- _fossil_fetch "${repo_id}" "${repo_uri}" |
604 |
- _fossil_checkout "${repo_id}" "${branch_or_commit}" "${target_directory}" |
605 |
-} |
606 |
- |
607 |
-src_unpack() { |
608 |
- if [[ "${PV}" == "9999" ]]; then |
609 |
- fossil_fetch sqlite https://sqlite.org/src "${WORKDIR}/${PN}" |
610 |
- if use doc; then |
611 |
- fossil_fetch sqlite-doc https://sqlite.org/docsrc "${WORKDIR}/${PN}-doc" |
612 |
- fi |
613 |
- else |
614 |
- default |
615 |
- fi |
616 |
-} |
617 |
- |
618 |
-src_prepare() { |
619 |
- eapply_user |
620 |
- |
621 |
- eautoreconf |
622 |
- |
623 |
- multilib_copy_sources |
624 |
-} |
625 |
- |
626 |
-multilib_src_configure() { |
627 |
- local -x CPPFLAGS="${CPPFLAGS}" CFLAGS="${CFLAGS}" |
628 |
- local options=() |
629 |
- |
630 |
- options+=( |
631 |
- --enable-load-extension |
632 |
- --enable-threadsafe |
633 |
- ) |
634 |
- |
635 |
- # Support detection of misuse of SQLite API. |
636 |
- # https://sqlite.org/compile.html#enable_api_armor |
637 |
- append-cppflags -DSQLITE_ENABLE_API_ARMOR |
638 |
- |
639 |
- # Support bytecode and tables_used virtual tables. |
640 |
- # https://sqlite.org/compile.html#enable_bytecode_vtab |
641 |
- # https://sqlite.org/bytecodevtab.html |
642 |
- append-cppflags -DSQLITE_ENABLE_BYTECODE_VTAB |
643 |
- |
644 |
- # Support column metadata functions. |
645 |
- # https://sqlite.org/compile.html#enable_column_metadata |
646 |
- # https://sqlite.org/c3ref/column_database_name.html |
647 |
- append-cppflags -DSQLITE_ENABLE_COLUMN_METADATA |
648 |
- |
649 |
- # Support sqlite_dbpage virtual table. |
650 |
- # https://sqlite.org/compile.html#enable_dbpage_vtab |
651 |
- # https://sqlite.org/dbpage.html |
652 |
- append-cppflags -DSQLITE_ENABLE_DBPAGE_VTAB |
653 |
- |
654 |
- # Support dbstat virtual table. |
655 |
- # https://sqlite.org/compile.html#enable_dbstat_vtab |
656 |
- # https://sqlite.org/dbstat.html |
657 |
- append-cppflags -DSQLITE_ENABLE_DBSTAT_VTAB |
658 |
- |
659 |
- # Support sqlite3_serialize() and sqlite3_deserialize() functions. |
660 |
- # https://sqlite.org/compile.html#enable_deserialize |
661 |
- # https://sqlite.org/c3ref/serialize.html |
662 |
- # https://sqlite.org/c3ref/deserialize.html |
663 |
- append-cppflags -DSQLITE_ENABLE_DESERIALIZE |
664 |
- |
665 |
- # Support comments in output of EXPLAIN. |
666 |
- # https://sqlite.org/compile.html#enable_explain_comments |
667 |
- append-cppflags -DSQLITE_ENABLE_EXPLAIN_COMMENTS |
668 |
- |
669 |
- # Support Full-Text Search versions 3, 4 and 5. |
670 |
- # https://sqlite.org/compile.html#enable_fts3 |
671 |
- # https://sqlite.org/compile.html#enable_fts3_parenthesis |
672 |
- # https://sqlite.org/compile.html#enable_fts4 |
673 |
- # https://sqlite.org/compile.html#enable_fts5 |
674 |
- # https://sqlite.org/fts3.html |
675 |
- # https://sqlite.org/fts5.html |
676 |
- append-cppflags -DSQLITE_ENABLE_FTS3 -DSQLITE_ENABLE_FTS3_PARENTHESIS -DSQLITE_ENABLE_FTS4 |
677 |
- options+=(--enable-fts5) |
678 |
- |
679 |
- # Support hidden columns. |
680 |
- append-cppflags -DSQLITE_ENABLE_HIDDEN_COLUMNS |
681 |
- |
682 |
- # Support memsys5 memory allocator. |
683 |
- # https://sqlite.org/compile.html#enable_memsys5 |
684 |
- # https://sqlite.org/malloc.html#memsys5 |
685 |
- append-cppflags -DSQLITE_ENABLE_MEMSYS5 |
686 |
- |
687 |
- # Support sqlite3_normalized_sql() function. |
688 |
- # https://sqlite.org/c3ref/expanded_sql.html |
689 |
- append-cppflags -DSQLITE_ENABLE_NORMALIZE |
690 |
- |
691 |
- # Support sqlite_offset() function. |
692 |
- # https://sqlite.org/compile.html#enable_offset_sql_func |
693 |
- # https://sqlite.org/lang_corefunc.html#sqlite_offset |
694 |
- append-cppflags -DSQLITE_ENABLE_OFFSET_SQL_FUNC |
695 |
- |
696 |
- # Support pre-update hook functions. |
697 |
- # https://sqlite.org/compile.html#enable_preupdate_hook |
698 |
- # https://sqlite.org/c3ref/preupdate_count.html |
699 |
- append-cppflags -DSQLITE_ENABLE_PREUPDATE_HOOK |
700 |
- |
701 |
- # Support Resumable Bulk Update extension. |
702 |
- # https://sqlite.org/compile.html#enable_rbu |
703 |
- # https://sqlite.org/rbu.html |
704 |
- append-cppflags -DSQLITE_ENABLE_RBU |
705 |
- |
706 |
- # Support R*Trees. |
707 |
- # https://sqlite.org/compile.html#enable_rtree |
708 |
- # https://sqlite.org/compile.html#enable_geopoly |
709 |
- # https://sqlite.org/rtree.html |
710 |
- # https://sqlite.org/geopoly.html |
711 |
- append-cppflags -DSQLITE_ENABLE_RTREE -DSQLITE_ENABLE_GEOPOLY |
712 |
- |
713 |
- # Support Session extension. |
714 |
- # https://sqlite.org/compile.html#enable_session |
715 |
- # https://sqlite.org/sessionintro.html |
716 |
- append-cppflags -DSQLITE_ENABLE_SESSION |
717 |
- |
718 |
- # Support scan status functions. |
719 |
- # https://sqlite.org/compile.html#enable_stmt_scanstatus |
720 |
- # https://sqlite.org/c3ref/stmt_scanstatus.html |
721 |
- # https://sqlite.org/c3ref/stmt_scanstatus_reset.html |
722 |
- append-cppflags -DSQLITE_ENABLE_STMT_SCANSTATUS |
723 |
- |
724 |
- # Support sqlite_stmt virtual table. |
725 |
- # https://sqlite.org/compile.html#enable_stmtvtab |
726 |
- # https://sqlite.org/stmt.html |
727 |
- append-cppflags -DSQLITE_ENABLE_STMTVTAB |
728 |
- |
729 |
- # Support unknown() function. |
730 |
- # https://sqlite.org/compile.html#enable_unknown_sql_function |
731 |
- append-cppflags -DSQLITE_ENABLE_UNKNOWN_SQL_FUNCTION |
732 |
- |
733 |
- # Support unlock notification. |
734 |
- # https://sqlite.org/compile.html#enable_unlock_notify |
735 |
- # https://sqlite.org/c3ref/unlock_notify.html |
736 |
- # https://sqlite.org/unlock_notify.html |
737 |
- append-cppflags -DSQLITE_ENABLE_UNLOCK_NOTIFY |
738 |
- |
739 |
- # Support LIMIT and ORDER BY clauses on DELETE and UPDATE statements. |
740 |
- # https://sqlite.org/compile.html#enable_update_delete_limit |
741 |
- # https://sqlite.org/lang_delete.html#optional_limit_and_order_by_clauses |
742 |
- # https://sqlite.org/lang_update.html#optional_limit_and_order_by_clauses |
743 |
- append-cppflags -DSQLITE_ENABLE_UPDATE_DELETE_LIMIT |
744 |
- |
745 |
- # Support soundex() function. |
746 |
- # https://sqlite.org/compile.html#soundex |
747 |
- # https://sqlite.org/lang_corefunc.html#soundex |
748 |
- append-cppflags -DSQLITE_SOUNDEX |
749 |
- |
750 |
- # Support URI filenames. |
751 |
- # https://sqlite.org/compile.html#use_uri |
752 |
- # https://sqlite.org/uri.html |
753 |
- append-cppflags -DSQLITE_USE_URI |
754 |
- |
755 |
- # debug USE flag. |
756 |
- options+=($(use_enable debug)) |
757 |
- |
758 |
- # icu USE flag. |
759 |
- if use icu; then |
760 |
- # Support ICU extension. |
761 |
- # https://sqlite.org/compile.html#enable_icu |
762 |
- append-cppflags -DSQLITE_ENABLE_ICU |
763 |
- sed -e "s/^TLIBS = @LIBS@/& -licui18n -licuuc/" -i Makefile.in || die "sed failed" |
764 |
- fi |
765 |
- |
766 |
- # readline USE flag. |
767 |
- options+=( |
768 |
- --disable-editline |
769 |
- $(use_enable readline) |
770 |
- ) |
771 |
- if use readline; then |
772 |
- options+=(--with-readline-inc="-I${ESYSROOT}/usr/include/readline") |
773 |
- fi |
774 |
- |
775 |
- # secure-delete USE flag. |
776 |
- if use secure-delete; then |
777 |
- # Enable secure_delete pragma by default. |
778 |
- # https://sqlite.org/compile.html#secure_delete |
779 |
- # https://sqlite.org/pragma.html#pragma_secure_delete |
780 |
- append-cppflags -DSQLITE_SECURE_DELETE |
781 |
- fi |
782 |
- |
783 |
- # static-libs USE flag. |
784 |
- options+=($(use_enable static-libs static)) |
785 |
- |
786 |
- # tcl, test, tools USE flags. |
787 |
- if use tcl || use test || { use tools && multilib_is_native_abi; }; then |
788 |
- options+=( |
789 |
- --enable-tcl |
790 |
- --with-tcl="${ESYSROOT}/usr/$(get_libdir)" |
791 |
- ) |
792 |
- else |
793 |
- options+=(--disable-tcl) |
794 |
- fi |
795 |
- |
796 |
- if [[ "${ABI}" == "x86" ]]; then |
797 |
- if $(tc-getCC) ${CPPFLAGS} ${CFLAGS} -E -P -dM - < /dev/null 2> /dev/null | grep -q "^#define __SSE__ 1$"; then |
798 |
- append-cflags -mfpmath=sse |
799 |
- else |
800 |
- append-cflags -ffloat-store |
801 |
- fi |
802 |
- |
803 |
- # Skip known-broken test for now |
804 |
- # https://sqlite.org/forum/forumpost/d97caf168f |
805 |
- # https://sqlite.org/forum/forumpost/50f136d91d |
806 |
- if use test ; then |
807 |
- rm test/atof1.test || die |
808 |
- fi |
809 |
- fi |
810 |
- |
811 |
- econf "${options[@]}" |
812 |
-} |
813 |
- |
814 |
-multilib_src_compile() { |
815 |
- emake HAVE_TCL="$(usex tcl 1 "")" TCLLIBDIR="${EPREFIX}/usr/$(get_libdir)/${P}" |
816 |
- |
817 |
- if use tools && multilib_is_native_abi; then |
818 |
- emake changeset dbdump dbhash dbtotxt index_usage rbu scrub showdb showjournal showshm showstat4 showwal sqldiff sqlite3_analyzer sqlite3_checker sqlite3_expert sqltclsh |
819 |
- fi |
820 |
- |
821 |
- if [[ "${PV}" == "9999" ]] && use doc && multilib_is_native_abi; then |
822 |
- emake tclsqlite3.c |
823 |
- |
824 |
- local build_directory="$(pwd)" |
825 |
- build_directory="${build_directory##*/}" |
826 |
- |
827 |
- mkdir "${WORKDIR}/${PN}-doc-build" || die |
828 |
- pushd "${WORKDIR}/${PN}-doc-build" > /dev/null || die |
829 |
- |
830 |
- 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 |
831 |
- rmdir doc/matrix{/*,} || die |
832 |
- |
833 |
- popd > /dev/null || die |
834 |
- fi |
835 |
-} |
836 |
- |
837 |
-multilib_src_test() { |
838 |
- if [[ "${EUID}" -eq 0 ]]; then |
839 |
- ewarn "Skipping tests due to root permissions" |
840 |
- return |
841 |
- fi |
842 |
- |
843 |
- local -x SQLITE_HISTORY="${T}/sqlite_history_${ABI}" |
844 |
- |
845 |
- # e_uri.test tries to open files in /. |
846 |
- # https://bugs.gentoo.org/839798 |
847 |
- local SANDBOX_PREDICT=${SANDBOX_PREDICT} |
848 |
- addpredict "/test.db:/ÿ.db" |
849 |
- |
850 |
- emake HAVE_TCL="$(usex tcl 1 "")" $(use debug && echo fulltest || echo test) |
851 |
-} |
852 |
- |
853 |
-multilib_src_install() { |
854 |
- emake DESTDIR="${D}" HAVE_TCL="$(usex tcl 1 "")" TCLLIBDIR="${EPREFIX}/usr/$(get_libdir)/${P}" install |
855 |
- |
856 |
- if use tools && multilib_is_native_abi; then |
857 |
- install_tool() { |
858 |
- if [[ -f ".libs/${1}" ]]; then |
859 |
- newbin ".libs/${1}" "${2}" |
860 |
- else |
861 |
- newbin "${1}" "${2}" |
862 |
- fi |
863 |
- } |
864 |
- |
865 |
- install_tool changeset sqlite3-changeset |
866 |
- install_tool dbdump sqlite3-db-dump |
867 |
- install_tool dbhash sqlite3-db-hash |
868 |
- install_tool dbtotxt sqlite3-db-to-txt |
869 |
- install_tool index_usage sqlite3-index-usage |
870 |
- install_tool rbu sqlite3-rbu |
871 |
- install_tool scrub sqlite3-scrub |
872 |
- install_tool showdb sqlite3-show-db |
873 |
- install_tool showjournal sqlite3-show-journal |
874 |
- install_tool showshm sqlite3-show-shm |
875 |
- install_tool showstat4 sqlite3-show-stat4 |
876 |
- install_tool showwal sqlite3-show-wal |
877 |
- install_tool sqldiff sqlite3-diff |
878 |
- install_tool sqlite3_analyzer sqlite3-analyzer |
879 |
- install_tool sqlite3_checker sqlite3-checker |
880 |
- install_tool sqlite3_expert sqlite3-expert |
881 |
- install_tool sqltclsh sqlite3-tclsh |
882 |
- |
883 |
- unset -f install_tool |
884 |
- fi |
885 |
-} |
886 |
- |
887 |
-multilib_src_install_all() { |
888 |
- find "${ED}" -name "*.la" -delete || die |
889 |
- |
890 |
- doman sqlite3.1 |
891 |
- |
892 |
- if use doc; then |
893 |
- if [[ "${PV}" == "9999" ]]; then |
894 |
- pushd "${WORKDIR}/${PN}-doc-build/doc" > /dev/null || die |
895 |
- else |
896 |
- pushd "${WORKDIR}/${PN}-doc-${DOC_PV}" > /dev/null || die |
897 |
- fi |
898 |
- |
899 |
- find "(" -name "*.db" -o -name "*.txt" ")" -delete || die |
900 |
- if [[ "${PV}" != "9999" ]]; then |
901 |
- rm search search.d/admin || die |
902 |
- rmdir search.d || die |
903 |
- find -name "*~" -delete || die |
904 |
- fi |
905 |
- |
906 |
- ( |
907 |
- docinto html |
908 |
- dodoc -r * |
909 |
- ) |
910 |
- |
911 |
- popd > /dev/null || die |
912 |
- fi |
913 |
-} |