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