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