Gentoo Archives: gentoo-commits

From: Mike Gilbert <floppym@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-db/sqlite/files/, dev-db/sqlite/
Date: Tue, 04 Apr 2017 19:50:55
Message-Id: 1491335402.749e0f3407bc47d1a8b1e5cdb91f5580adf952dd.floppym@gentoo
1 commit: 749e0f3407bc47d1a8b1e5cdb91f5580adf952dd
2 Author: Arfrever Frehtes Taifersar Arahesis <Arfrever <AT> Apache <DOT> Org>
3 AuthorDate: Sun Apr 2 19:17:55 2017 +0000
4 Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org>
5 CommitDate: Tue Apr 4 19:50:02 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=749e0f34
7
8 dev-db/sqlite: Delete old versions.
9
10 dev-db/sqlite/Manifest | 24 --
11 .../files/sqlite-3.11.0-full_tarball-build.patch | 132 -----------
12 .../sqlite-3.12.0-nonfull_tarball-build.patch | 14 --
13 .../files/sqlite-3.13.0-full_tarball-build.patch | 137 -----------
14 .../files/sqlite-3.14.0-full_tarball-build.patch | 147 ------------
15 .../sqlite-3.15.0-full_tarball-tests-icu.patch | 64 -----
16 dev-db/sqlite/sqlite-3.12.0.ebuild | 237 -------------------
17 dev-db/sqlite/sqlite-3.12.1.ebuild | 237 -------------------
18 dev-db/sqlite/sqlite-3.12.2.ebuild | 237 -------------------
19 dev-db/sqlite/sqlite-3.13.0.ebuild | 242 -------------------
20 dev-db/sqlite/sqlite-3.14.1.ebuild | 260 --------------------
21 dev-db/sqlite/sqlite-3.14.2.ebuild | 260 --------------------
22 dev-db/sqlite/sqlite-3.15.1.ebuild | 261 ---------------------
23 dev-db/sqlite/sqlite-3.15.2.ebuild | 260 --------------------
24 14 files changed, 2512 deletions(-)
25
26 diff --git a/dev-db/sqlite/Manifest b/dev-db/sqlite/Manifest
27 index 9f382e229f4..e599eec48fb 100644
28 --- a/dev-db/sqlite/Manifest
29 +++ b/dev-db/sqlite/Manifest
30 @@ -1,30 +1,6 @@
31 -DIST sqlite-autoconf-3120000.tar.gz 2374101 SHA256 53ecdbb5287af673eca3710c5f6c2305e73bb2d034f2a28770bea2be92ed269e SHA512 84a9107ca9045ddc724d7e37dfe2b1dc00a106769260c7bd429a95beedc46a906985b65e0b2bf597de23dd56d132b9ef6888a8c4e5f8a731c8a5c026b971d89e WHIRLPOOL 4ec76b383670f2ee9c50870587696a3c86357161344851b487f54a03c668dac8c4272738b44e5a4048dd00bf2b3122904c53b6d2195f9b48aef3ad928f34b85b
32 -DIST sqlite-autoconf-3120100.tar.gz 2374576 SHA256 1c038519862b3983b0475f3ed3143ce4bbfcd21bfbd0741192f415838c831a7c SHA512 eb0b892bb6a1783df9b712d5f78c9f5fb5aa8ff1b1735fd2806e96b1c04e2a5f87b2e47469185195611a5cf6c446ec32935e9ae0b01734383a8fefc1bcaf5842 WHIRLPOOL 0284241a3fd6dbee16ba5fe4c1a0dc15b1b3134bd39ba8a2219c2da4e426e3572809459bbdc8bbf3fa4ea055406b85c547d8e7f05afcb57baa712653ce0d6f64
33 -DIST sqlite-autoconf-3120200.tar.gz 2374804 SHA256 fd00770c9afd39db555c78400e52f55e8bd6568c78be23561abb472a22d09abb SHA512 e56b8d5b8fb41d27437659db669259198663c266c0b3faf44ba9b130441550fb79bd040e6488f56280b33230d9cf4e51c7906f968ffdd36206354bfabc4b6eb4 WHIRLPOOL bd1231f0cce91281c9e42338ae698a06446078d2070f4f16b5472ed4004dbf1913339a3f0e5a34d87d0e71390a130c347f3c97353967530b65b23e1492664b7e
34 -DIST sqlite-autoconf-3130000.tar.gz 2459805 SHA256 e2797026b3310c9d08bd472f6d430058c6dd139ff9d4e30289884ccd9744086b SHA512 c2547ff9a144c46829344058b4f8dcc5b8c9c823cbc667be2944dc7beecb9cc213858cc9ce302a763200278397d9a0fc6bb35c542028a124ef0980fedd574c2f WHIRLPOOL b9bcfb2eecf30719f7a673d569949b4e497c9682de08ca6f0ccc6c67a8f1541a51e88108bebde94a14802516b114c9f8cad83fbdbb130774b3082a8107657255
35 -DIST sqlite-autoconf-3140100.tar.gz 2473610 SHA256 bc7182476900017becb81565ecea7775d46ab747a97281aa610f4f45881c47a6 SHA512 14d78eea1aef5bd143f942b88f01ef2c1ef58aeac6c0a10c0807761ac5301b71db7d787f82ba8215d804b80c115ee4800072d4aa86616d04d01aaf529e168461 WHIRLPOOL b43a9397b24b3cd6841bf5468d03d4ca10805c355df5afa6b0e69b6cf5d924f1e11e03b5b78549f9e21028d5a1ba2467707e84eb2e2955df21a59abd464dacb2
36 -DIST sqlite-autoconf-3140200.tar.gz 2472940 SHA256 644f0c127f7d0cbe8765b9bbdf9ed09d6a2f2b9dfba48ddfd8ca0a42fdb5b3fc SHA512 02c5ca3073e29307f842af3305793dd6251d2ac43ce3f37b5b9402d6582a6bda56a41f82b130d03997ebb3cc109d6ab7baa9a946c03e74ae5158426bc154fd70 WHIRLPOOL c98f2b004838e5b767704248fdc5afd0428559155838240943861edd6e4a20121f81e24fca672cd8408c9c6907ef4e5d6c228c167ab7b3a0670b787420006377
37 -DIST sqlite-autoconf-3150100.tar.gz 2491350 SHA256 5dfa89b7697ee3c2ac7b44e8e157e7f204bf999c866afcaa8bb1c7ff656ae2c5 SHA512 516d683fb64a6a0ef170d718059420c9b0023bffd75780194d9c06fab1142a749700fafd83577c81dfc7a7a21eee955df9a879f8c2f818f542c7adb968daa0ed WHIRLPOOL 550a7a1e85860ab656ad78d7bfb61d859cc146343caf5b59009b29ee206a635725a0d65b261b08f4430192f064a01cc35a4088946275f4f239aa821622b8fd8c
38 -DIST sqlite-autoconf-3150200.tar.gz 2491735 SHA256 07b35063b9386865b78226cdaca9a299d938a87aaa8fdc4d73edb0cef30f3149 SHA512 9620f03bbd14a15063378656567df544245f62255ed36cca683b3b92b6eb48e83c6ca09bbf904b916c1c7504b69f0332860923daabb25c94b2a46434e2dcb19d WHIRLPOOL 0293b8d50082d8fdceef67fe3f9c6e827bf5df25d92ecd4651af468848288e2faea657d519d6c3facc45d760e9dcbd89d60dd3271b76396b6f358e72eb57554d
39 DIST sqlite-autoconf-3160200.tar.gz 2508179 SHA256 65cc0c3e9366f50c0679c5ccd31432cea894bc4a3e8947dabab88c8693263615 SHA512 83bdd588504f265bbe93fb98a33a292aff5618c14f94d521c8557efbb5f777e82dfbb2d186cbfd4c628ee9522b1fcb73857e24ca2318fa34af3a3f9540e72b9a WHIRLPOOL 850a5051739f65eade0ee5740641a0503870f88d1ebdb40cab36b68d956896270ed59e387d57db74eede5ecd7fc9b3c14bc5841ff02e17eb50abc4701eba18fc
40 DIST sqlite-autoconf-3170000.tar.gz 2515143 SHA256 a4e485ad3a16e054765baf6371826b5000beed07e626510896069c0bf013874c SHA512 bebf2693ade1c99b6a178bbe663f64911bf7751932a2524506994cbbb19ab254e7febe3693a76084e55853c1ea85db9e4ece87192422583555fbe569915a2ca8 WHIRLPOOL c3ddeb9691470dfd10950ef36bca8f05f06faa171e3ee87da66d431ba364b7dd903b1350b8ab1aae445a2696ea56dd3f0c50e07d25bc83a09d673a9b92c84e3f
41 -DIST sqlite-doc-3120000.zip 5402611 SHA256 346d9d56a0193d9396948192b7eca9e45c2adfeea6bbf71df62502830da510f3 SHA512 7879d006e528d692ea5718f27d03e2dfe2a5e54aa135be983b992836102720df4dc690d84795115a25ed19a663e895a3f3f8a59d0de079c451d215e07081281e WHIRLPOOL 00f5bc4b82af1ba8d43ae4d0761dacd2e608009812a12fee9aedd333baec9b36f74542c60de4acacd19f5ef898d3bd57dfb705f3b21219ba3862ca91c2f76402
42 -DIST sqlite-doc-3120100.zip 5410493 SHA256 dbe53c076922c711a467dde57432583fbf9a12eac57cb75f6116a310880eb088 SHA512 d0117618d97744255248b9160816203147ba2afdb0bea5fe02d5e464541e09bc9147189317c6f849cc56059d6ae96e3e4b2a30cd8d0bc7b0e1ecacb573cfcdd4 WHIRLPOOL e3f054eda83301b9e4b5170bf9c56895756e4ac78a1c6256467c990fafccaeadec5f7ca54f1bf118bcb950f25db63df6c0972a138d36a10a0a9cfdf688eb207b
43 -DIST sqlite-doc-3120200.zip 5416790 SHA256 67c640c4b01b961016717db61e3e43c63c33248c78ce0de9f10b88ea7ce97670 SHA512 4ded937565b2d9b63ae55495d4b536bc0056e0d9aa7119ee54ddea127c42ba7de17986db7b85c172043fab1112132cbc126a102b248770fca6cde9a8fda438ae WHIRLPOOL 7eefecb6d0450c85ec3f30cdeb853117f4067e1bace7d3c0524e5c6cb13d2e31772211aec8562f972491da413d9bd79022bc29c16968b086562e7f17bff984eb
44 -DIST sqlite-doc-3130000.zip 5550186 SHA256 510606a9cdd89814b2d44e7b7f284ebb0a58153e1800de6daadfab445190f79c SHA512 0bf4544a07bd92533bc248dc16ed43c4fcad870ab535591618d3006f38c2741a8c0ed1da082444ea1af2f57936575c678bc12b651252426b908660023b36cd39 WHIRLPOOL 78fd5de701224e39d07fbb03a9193dff45237845b215d83f27a623f289d9da0df7082d53115e90474856b775d350ee3f9d2970ca2c1a4a33b24543de06fd3b9a
45 -DIST sqlite-doc-3140100.zip 5689913 SHA256 036203c71ca5796fd80b9d9d3bd710f698da3d5393d4df5c7cdf5468258c9ec6 SHA512 4a5292f6b6a117a0bf7ef8446c9748cde534d6a6f3a02a12fc4eb4cddcf1d11479bc4e2eebdb21866a1994143e02fd66b79a08b98acfdb3390689cbe425b0b6e WHIRLPOOL 4c82e3e950396504846a14d62c01a94c9063978b9aa42656adbb0219dbd6f89a4d7703ee2a4ed7265b7875f612f2b0869b098b09a2bfcafa01e7694dfaa57c06
46 -DIST sqlite-doc-3140200.zip 5386739 SHA256 421d2ea3d288dd301ec98155a6765d6bc8ce93b9a3ae82bac56a21cdd91190c2 SHA512 4acd9818cc864332cbc57c9533d45c26d62f5c62ab9dff3f0fb1bb98530fe974f83699ccc0b098b14bcbfd718a2aa6b4d3b7c2ca880e4097d9b0833b8d902069 WHIRLPOOL b2593b17da42d41425d5579d36193945dc20d7bc11b271c0d94f005fef06352d3bf8b1c2963b9b811ba8f46190f35a9ea61080c09e765b28e9c7330ca613f3e6
47 -DIST sqlite-doc-3150100.zip 5461172 SHA256 121363c75da7f6c8988f70dfa5bed5f0f06b5c9d37b4e2230316c55a80760825 SHA512 fa58e69d74cc816e4541385ad0a62b1987eb1abf4cb325867500030b4fa8a5058a63133314aef685a2158e9171f98a557d555e99a13417bc7bf8240da7feda30 WHIRLPOOL 6eac94d6c71b28850592a9135a487d0d69a74c7d366f072d02f02de2091fe8169469b4ccba0605d555d10c5549cca6138d5938ad03dc5b453d3a342fb43d8101
48 -DIST sqlite-doc-3150200.zip 5464066 SHA256 d231fb3a7c890d2107b60859d4f626abfcd5cf82e7f3abc1f32dc6748ac54421 SHA512 c0fd3325c4d73c86a07abe126a317e4b3acbf5dfe88c0e70de5a9b54dace8b1ca1469fe559a5d0fc1781586581abe51a4350a96f6498d02db1dfce4470cf0496 WHIRLPOOL 7b09777bceab8b8cd70fd49531c2e5676aaa0a14b0bc788a571e594e03956611b25400e85989a0785faefd17cf0ff736e01b47fac7523d7af3d5afd94a473941
49 DIST sqlite-doc-3160200.zip 5521023 SHA256 c13ffbb6019f3849b251c22358f31ccb862a842c0a2379f552f2935600157dcb SHA512 b79d21074d1ab154e3b324fb2943f24321ad5cdbc6e2030f1d21940ae46538462af049e0e0cd7c6cf96dec2c59708eaf70aa4cb3c84ba1a0e87238ffcf31fca2 WHIRLPOOL 4d07279b8f186c4a015324021d60f3e76840594a35a2466cc023cd3ef32b5b01572d8a83db5d96f7281c617a8384485bdef60d390e1c12c4ecbc7e0223e1a194
50 DIST sqlite-doc-3170000.zip 5533032 SHA256 3102d9eab879074776216357e4c9e272f63d0cda975a0819ec5baba5e0922ff6 SHA512 6a7813be301416dc59401b7732733f44efad60b458ded0f4ed8d845aab0843a1123dd20d1e6f209dd32184a87bcd7e68e213e3676c43d1d05d2df5acc2c64b74 WHIRLPOOL dc1c9b6802985be34ac7819e08883c456a0a76fb1822eff46b26613760063b72888d34323cf15f0f48be69555c0b07b99424a85f29ac580c4ad8fa46b990b723
51 -DIST sqlite-src-3120000.zip 9367749 SHA256 d891e7ffd56cd97d069a6ed99d7e85cbe655b0a97ca6b5398c7806e888642df1 SHA512 9669e33e328b826f4692725ec09e21d85f4f2c386c624a81b0535f41ca7d2f996ebf5018db8ecdfdac18cff39a881a953111801499705dfb599f00e3bb5d10e4 WHIRLPOOL 865aaecbe331ec93b1a8c5b965c3edc43d35994c2db79d336febb27860ee91d68753d3ea274b4639f3e05d3f0a589fb21aedac33bc2120a4de8d094383d7b923
52 -DIST sqlite-src-3120100.zip 9368459 SHA256 49b9819683f8f7329a78d2008e3f7c4e02126b556b95e5dfe3be102b9e741cff SHA512 6d0d7230343ca460215b5764d4a546631ddc2bcfc0777051379fb4632ccf9c36a53d26eda6811823156be166643c001c994a0f52498c6196ed13b34e931d55e1 WHIRLPOOL e41fd7a1ba870efb5421657975990c1d7e1ecc27023882771474a62e82b2ae305bc3d0b8556e0627de886d35e1b375fec223b3f70582d64fc5345c525b293131
53 -DIST sqlite-src-3120200.zip 9370396 SHA256 2c16caa653e57f3c71873aa88797c97117981d6b0974254ce24d933dd27f9a86 SHA512 6cc9718c23ca3f65a42cc715eb67c8d174ecf0e397457efb6bfc5bd2efc9a51ea2f84266d31826068bf46efc550eb277b3c8e93cb85c5d23645e8b8ae4e2fc07 WHIRLPOOL ffdbbc384189f0d62a93ee8219051ff936b7c0c2fd39449f6ff72a734ab219f23f049648de7c0ec510a74aad85ba07ef0c8bebea4c3b83e043464744d2c039f4
54 -DIST sqlite-src-3130000.zip 9506412 SHA256 b46b62dc27abbde52db69d8e2a710469b9af613ba251eb98e412d4f3827f915b SHA512 4cb7531105869ff7db5c08aa8e4d303fa3d80c8c67e21d9a835a09f7dddb4c9dbba837e2030dd4af6bcdb00a305b057cbd6430e11b3f2ae5e470f27b69b6c1e6 WHIRLPOOL 901f6cd343daaa62970f8d768e3c6ccb0b1da75fb5643b27e76f60d224005a08955fde9df5b8bb63250ab27994e2428ce19e21b4a1ccabec47cd4b8df4a13657
55 -DIST sqlite-src-3140100.zip 9574478 SHA256 9411f67f383256d8d1520bac727b9e96eed5494222d2f8af76548d233b0adc74 SHA512 055f5f7db4088f527750358e7e9575b248a48137db5b4720269206141518b2426370e3c02d46278f1b7abf0b2f491e1f536e78d6d051a00b4e79579810cc57a6 WHIRLPOOL 0b1884844b0cec05c4a830a453221d2390f396c913133e259d0bea2800949d57894a43f729f97b7955c91db7f6a24e56d71fe63286b6e5b952fa8e24726b3448
56 -DIST sqlite-src-3140200.zip 9577094 SHA256 52507e20c2757b24b703b43ede77ce464c8106c1658a5b357974c435aa0677a6 SHA512 d68412bceec463674790adb4388988dd4e1db40b095ba3f88cc3404979191930805b0a46603ef0b81ab41657167b3efa904535c0516170e2fc8c825a2729946c WHIRLPOOL 7084e7df53edf22de6fca51c0dbf12c16e3cb4b1ee62251e72a4a4820b6fdafee188654b2a3c5ecd2ae1054cf7f13b5e4dedad18eb94f307960c4a5d7cb3495c
57 -DIST sqlite-src-3150100.zip 9632944 SHA256 423a73936931c5148a4812ee7d82534ec7d998576ea1b4e1573af91ec15a4b01 SHA512 c659d52287b8f9ae86d327490feeb4dad824712c3827483688b72fd43e067139ec5434086cf02e9f8f375adf6967337ebdd6aa696698ed5936b27ece01cff8a6 WHIRLPOOL 8ae9b7c56e4a8c22c2dba1d9656f6735610a7b8b9cd12de6417f1c6cd77e1dc5341ace9aef68ed2813f7b7d43583190312c8097186f58bcd51237d73cc7def49
58 -DIST sqlite-src-3150200.zip 9635796 SHA256 38a1e867b5b1a58ba3731a63ffe69a2271d79bd0723d21c5a9a71e4cb7452a83 SHA512 9ee97b2822853bb2dbf4ceaf011864e1afeb1deef7a668f2f31d5a6d1a9aab4a7127c6d54b4fa7288b21c8e849989bf24c53ea6de483103f9158d07dfb8ca85a WHIRLPOOL e9be2d778bed657b36c99e86ba16b999a4773ae45b95dfab2336df0a16883b079aeac6cf50d586d847f273ace85551709f4ee14621517e1859c67e72fcd93230
59 DIST sqlite-src-3160200.zip 10081950 SHA256 ee77c2cc5cc4a7b0a746a1d4496f7aee0d71c558a3bbfcf8e9e0b35416910337 SHA512 db49551c09830cf4d8997f0a623deeed9f85db5f27e6ca9d8aa5812a23c1466bbcdf8bb56cf009511f72cafec8f09a305127123f54d90437b28770dac34a0897 WHIRLPOOL b8cc52d5111bde34dae02391be8d83f9e703672b2101b36f5409e9acc23743c00561b02bd14b098e29972077fa1866a506d6343b58e4897ca07dac0bb60f4367
60 DIST sqlite-src-3170000.zip 10120844 SHA256 86754bee6bcaf1f2a6bf4a02676eb3a43d22d4e5d8339e217424cb2be6b748c3 SHA512 e60381de33fbf566507454e4f1dfb7d3ada554e5c919f05f0dd2f96a6f266adaa62681437f21fdea1c24de57fb6141b798f97854918faa189b507f12f11e0d36 WHIRLPOOL 535c598f7bb9ddbecdd1ca841c0ecf398831c494c99c38542d1cbb756d8333260d6891aa36167aeba75df83fbaf402465dc65c9b3a7fb6685fa54420cb1a1342
61
62 diff --git a/dev-db/sqlite/files/sqlite-3.11.0-full_tarball-build.patch b/dev-db/sqlite/files/sqlite-3.11.0-full_tarball-build.patch
63 deleted file mode 100644
64 index 4745f05b6d6..00000000000
65 --- a/dev-db/sqlite/files/sqlite-3.11.0-full_tarball-build.patch
66 +++ /dev/null
67 @@ -1,132 +0,0 @@
68 -Link executables against libsqlite3.so.
69 -Increase timeout for fuzzcheck.
70 -Fix building with dlopen() not available.
71 -
72 ---- Makefile.in
73 -+++ Makefile.in
74 -@@ -550,7 +550,7 @@
75 - # Extra compiler options for various shell tools
76 - #
77 - SHELL_OPT = -DSQLITE_ENABLE_JSON1 -DSQLITE_ENABLE_FTS4
78 --SHELL_OPT += -DSQLITE_ENABLE_EXPLAIN_COMMENTS
79 -+SHELL_OPT += -DSQLITE_ENABLE_EXPLAIN_COMMENTS -DSQLITE_ENABLE_DBSTAT_VTAB
80 - FUZZERSHELL_OPT = -DSQLITE_ENABLE_JSON1
81 - FUZZCHECK_OPT = -DSQLITE_ENABLE_JSON1 -DSQLITE_ENABLE_MEMSYS5
82 -
83 -@@ -571,18 +571,18 @@
84 -
85 - libtclsqlite3.la: tclsqlite.lo libsqlite3.la
86 - $(LTLINK) -no-undefined -o $@ tclsqlite.lo \
87 -- libsqlite3.la @TCL_STUB_LIB_SPEC@ $(TLIBS) \
88 -+ libsqlite3.la @TCL_STUB_LIB_SPEC@ \
89 - -rpath "$(TCLLIBDIR)" \
90 - -version-info "8:6:8" \
91 - -avoid-version
92 -
93 --sqlite3$(TEXE): $(TOP)/src/shell.c sqlite3.c
94 -- $(LTLINK) $(READLINE_FLAGS) $(SHELL_OPT) -o $@ \
95 -- $(TOP)/src/shell.c sqlite3.c \
96 -- $(LIBREADLINE) $(TLIBS) -rpath "$(libdir)"
97 -+sqlite3$(TEXE): $(TOP)/src/shell.c libsqlite3.la
98 -+ $(LTLINK) $(READLINE_FLAGS) -o $@ \
99 -+ $(TOP)/src/shell.c libsqlite3.la \
100 -+ $(LIBREADLINE)
101 -
102 --sqldiff$(TEXE): $(TOP)/tool/sqldiff.c sqlite3.c sqlite3.h
103 -- $(LTLINK) -o $@ $(TOP)/tool/sqldiff.c sqlite3.c $(TLIBS)
104 -+sqldiff$(TEXE): $(TOP)/tool/sqldiff.c libsqlite3.la
105 -+ $(LTLINK) -o $@ $(TOP)/tool/sqldiff.c libsqlite3.la
106 -
107 - srcck1$(BEXE): $(TOP)/tool/srcck1.c
108 - $(BCC) -o srcck1$(BEXE) $(TOP)/tool/srcck1.c
109 -@@ -650,7 +650,7 @@
110 - # Rule to build the amalgamation
111 - #
112 - sqlite3.lo: sqlite3.c
113 -- $(LTCOMPILE) $(TEMP_STORE) -c sqlite3.c
114 -+ $(LTCOMPILE) $(SHELL_OPT) $(TEMP_STORE) -c sqlite3.c
115 -
116 - # Rules to build the LEMON compiler generator
117 - #
118 -@@ -1074,13 +1074,13 @@
119 -
120 - # Fuzz testing
121 - fuzztest: fuzzcheck$(TEXE) $(FUZZDATA)
122 -- ./fuzzcheck$(TEXE) $(FUZZDATA)
123 -+ ./fuzzcheck$(TEXE) --timeout 3600 $(FUZZDATA)
124 -
125 - fastfuzztest: fuzzcheck$(TEXE) $(FUZZDATA)
126 -- ./fuzzcheck$(TEXE) --limit-mem 100M $(FUZZDATA)
127 -+ ./fuzzcheck$(TEXE) --limit-mem 100M --timeout 3600 $(FUZZDATA)
128 -
129 - valgrindfuzz: fuzzcheck$(TEXT) $(FUZZDATA)
130 -- valgrind ./fuzzcheck$(TEXE) --cell-size-check --limit-mem 10M --timeout 600 $(FUZZDATA)
131 -+ valgrind ./fuzzcheck$(TEXE) --cell-size-check --limit-mem 10M --timeout 3600 $(FUZZDATA)
132 -
133 - # Minimal testing that runs in less than 3 minutes
134 - #
135 -@@ -1106,29 +1106,29 @@
136 - smoketest: $(TESTPROGS) fuzzcheck$(TEXE)
137 - ./testfixture$(TEXE) $(TOP)/test/main.test $(TESTOPTS)
138 -
139 --sqlite3_analyzer.c: sqlite3.c $(TOP)/src/tclsqlite.c $(TOP)/tool/spaceanal.tcl
140 -+sqlite3_analyzer.c: $(TOP)/src/tclsqlite.c $(TOP)/tool/spaceanal.tcl
141 - echo "#define TCLSH 2" > $@
142 - echo "#define SQLITE_ENABLE_DBSTAT_VTAB 1" >> $@
143 -- cat sqlite3.c $(TOP)/src/tclsqlite.c >> $@
144 -+ cat $(TOP)/src/tclsqlite.c >> $@
145 - echo "static const char *tclsh_main_loop(void){" >> $@
146 - echo "static const char *zMainloop = " >> $@
147 - $(TCLSH_CMD) $(TOP)/tool/tostr.tcl $(TOP)/tool/spaceanal.tcl >> $@
148 - echo "; return zMainloop; }" >> $@
149 -
150 --sqlite3_analyzer$(TEXE): sqlite3_analyzer.c
151 -- $(LTLINK) sqlite3_analyzer.c -o $@ $(LIBTCL) $(TLIBS)
152 -+sqlite3_analyzer$(TEXE): sqlite3_analyzer.c libsqlite3.la
153 -+ $(LTLINK) sqlite3_analyzer.c -o $@ libsqlite3.la $(LIBTCL)
154 -
155 --showdb$(TEXE): $(TOP)/tool/showdb.c sqlite3.lo
156 -- $(LTLINK) -o $@ $(TOP)/tool/showdb.c sqlite3.lo $(TLIBS)
157 -+showdb$(TEXE): $(TOP)/tool/showdb.c libsqlite3.la
158 -+ $(LTLINK) -o $@ $(TOP)/tool/showdb.c libsqlite3.la
159 -
160 --showstat4$(TEXE): $(TOP)/tool/showstat4.c sqlite3.lo
161 -- $(LTLINK) -o $@ $(TOP)/tool/showstat4.c sqlite3.lo $(TLIBS)
162 -+showstat4$(TEXE): $(TOP)/tool/showstat4.c libsqlite3.la
163 -+ $(LTLINK) -o $@ $(TOP)/tool/showstat4.c libsqlite3.la
164 -
165 --showjournal$(TEXE): $(TOP)/tool/showjournal.c sqlite3.lo
166 -- $(LTLINK) -o $@ $(TOP)/tool/showjournal.c sqlite3.lo $(TLIBS)
167 -+showjournal$(TEXE): $(TOP)/tool/showjournal.c
168 -+ $(LTLINK) -o $@ $(TOP)/tool/showjournal.c
169 -
170 --showwal$(TEXE): $(TOP)/tool/showwal.c sqlite3.lo
171 -- $(LTLINK) -o $@ $(TOP)/tool/showwal.c sqlite3.lo $(TLIBS)
172 -+showwal$(TEXE): $(TOP)/tool/showwal.c
173 -+ $(LTLINK) -o $@ $(TOP)/tool/showwal.c
174 -
175 - rollback-test$(TEXE): $(TOP)/tool/rollback-test.c sqlite3.lo
176 - $(LTLINK) -o $@ $(TOP)/tool/rollback-test.c sqlite3.lo $(TLIBS)
177 -@@ -1142,8 +1142,8 @@
178 - speedtest1$(TEXE): $(TOP)/test/speedtest1.c sqlite3.lo
179 - $(LTLINK) -o $@ $(TOP)/test/speedtest1.c sqlite3.lo $(TLIBS)
180 -
181 --rbu$(EXE): $(TOP)/ext/rbu/rbu.c $(TOP)/ext/rbu/sqlite3rbu.c sqlite3.lo
182 -- $(LTLINK) -I. -o $@ $(TOP)/ext/rbu/rbu.c sqlite3.lo $(TLIBS)
183 -+rbu$(EXE): $(TOP)/ext/rbu/rbu.c libsqlite3.la
184 -+ $(LTLINK) -I. -o $@ $(TOP)/ext/rbu/rbu.c libsqlite3.la
185 -
186 - loadfts$(EXE): $(TOP)/tool/loadfts.c libsqlite3.la
187 - $(LTLINK) $(TOP)/tool/loadfts.c libsqlite3.la -o $@ $(TLIBS)
188 ---- configure.ac
189 -+++ configure.ac
190 -@@ -570,6 +570,9 @@
191 - if test "${use_loadextension}" = "yes" ; then
192 - OPT_FEATURE_FLAGS=""
193 - AC_SEARCH_LIBS(dlopen, dl)
194 -+ if test "${ac_cv_search_dlopen}" = "no" ; then
195 -+ OPT_FEATURE_FLAGS="-DSQLITE_OMIT_LOAD_EXTENSION=1"
196 -+ fi
197 - else
198 - OPT_FEATURE_FLAGS="-DSQLITE_OMIT_LOAD_EXTENSION=1"
199 - fi
200
201 diff --git a/dev-db/sqlite/files/sqlite-3.12.0-nonfull_tarball-build.patch b/dev-db/sqlite/files/sqlite-3.12.0-nonfull_tarball-build.patch
202 deleted file mode 100644
203 index 0308964a22a..00000000000
204 --- a/dev-db/sqlite/files/sqlite-3.12.0-nonfull_tarball-build.patch
205 +++ /dev/null
206 @@ -1,14 +0,0 @@
207 -Fix building with dlopen() not available.
208 -
209 ---- a/configure.ac
210 -+++ b/configure.ac
211 -@@ -89,6 +89,9 @@
212 - [], [enable_dynamic_extensions=yes])
213 - if test x"$enable_dynamic_extensions" != "xno"; then
214 - AC_SEARCH_LIBS(dlopen, dl)
215 -+ if test "${ac_cv_search_dlopen}" = "no" ; then
216 -+ DYNAMIC_EXTENSION_FLAGS=-DSQLITE_OMIT_LOAD_EXTENSION=1
217 -+ fi
218 - else
219 - DYNAMIC_EXTENSION_FLAGS=-DSQLITE_OMIT_LOAD_EXTENSION=1
220 - fi
221
222 diff --git a/dev-db/sqlite/files/sqlite-3.13.0-full_tarball-build.patch b/dev-db/sqlite/files/sqlite-3.13.0-full_tarball-build.patch
223 deleted file mode 100644
224 index 32e290206b3..00000000000
225 --- a/dev-db/sqlite/files/sqlite-3.13.0-full_tarball-build.patch
226 +++ /dev/null
227 @@ -1,137 +0,0 @@
228 -Link executables against libsqlite3.so.
229 -Increase timeout for fuzzcheck.
230 -Fix building with dlopen() not available.
231 -
232 ---- a/Makefile.in
233 -+++ b/Makefile.in
234 -@@ -555,7 +555,7 @@
235 - # Extra compiler options for various shell tools
236 - #
237 - SHELL_OPT = -DSQLITE_ENABLE_JSON1 -DSQLITE_ENABLE_FTS4
238 --SHELL_OPT += -DSQLITE_ENABLE_EXPLAIN_COMMENTS
239 -+SHELL_OPT += -DSQLITE_ENABLE_EXPLAIN_COMMENTS -DSQLITE_ENABLE_DBSTAT_VTAB
240 - FUZZERSHELL_OPT = -DSQLITE_ENABLE_JSON1
241 - FUZZCHECK_OPT = -DSQLITE_ENABLE_JSON1 -DSQLITE_ENABLE_MEMSYS5
242 -
243 -@@ -576,18 +576,18 @@
244 -
245 - libtclsqlite3.la: tclsqlite.lo libsqlite3.la
246 - $(LTLINK) -no-undefined -o $@ tclsqlite.lo \
247 -- libsqlite3.la @TCL_STUB_LIB_SPEC@ $(TLIBS) \
248 -+ libsqlite3.la @TCL_STUB_LIB_SPEC@ \
249 - -rpath "$(TCLLIBDIR)" \
250 - -version-info "8:6:8" \
251 - -avoid-version
252 -
253 --sqlite3$(TEXE): $(TOP)/src/shell.c sqlite3.c
254 -- $(LTLINK) $(READLINE_FLAGS) $(SHELL_OPT) -o $@ \
255 -- $(TOP)/src/shell.c sqlite3.c \
256 -- $(LIBREADLINE) $(TLIBS) -rpath "$(libdir)"
257 -+sqlite3$(TEXE): $(TOP)/src/shell.c libsqlite3.la
258 -+ $(LTLINK) $(READLINE_FLAGS) -o $@ \
259 -+ $(TOP)/src/shell.c libsqlite3.la \
260 -+ $(LIBREADLINE)
261 -
262 --sqldiff$(TEXE): $(TOP)/tool/sqldiff.c sqlite3.c sqlite3.h
263 -- $(LTLINK) -o $@ $(TOP)/tool/sqldiff.c sqlite3.c $(TLIBS)
264 -+sqldiff$(TEXE): $(TOP)/tool/sqldiff.c libsqlite3.la
265 -+ $(LTLINK) -o $@ $(TOP)/tool/sqldiff.c libsqlite3.la
266 -
267 - srcck1$(BEXE): $(TOP)/tool/srcck1.c
268 - $(BCC) -o srcck1$(BEXE) $(TOP)/tool/srcck1.c
269 -@@ -656,7 +656,7 @@
270 - # Rule to build the amalgamation
271 - #
272 - sqlite3.lo: sqlite3.c
273 -- $(LTCOMPILE) $(TEMP_STORE) -c sqlite3.c
274 -+ $(LTCOMPILE) $(SHELL_OPT) $(TEMP_STORE) -c sqlite3.c
275 -
276 - # Rules to build the LEMON compiler generator
277 - #
278 -@@ -1082,13 +1082,13 @@
279 -
280 - # Fuzz testing
281 - fuzztest: fuzzcheck$(TEXE) $(FUZZDATA)
282 -- ./fuzzcheck$(TEXE) $(FUZZDATA)
283 -+ ./fuzzcheck$(TEXE) --timeout 3600 $(FUZZDATA)
284 -
285 - fastfuzztest: fuzzcheck$(TEXE) $(FUZZDATA)
286 -- ./fuzzcheck$(TEXE) --limit-mem 100M $(FUZZDATA)
287 -+ ./fuzzcheck$(TEXE) --limit-mem 100M --timeout 3600 $(FUZZDATA)
288 -
289 - valgrindfuzz: fuzzcheck$(TEXT) $(FUZZDATA)
290 -- valgrind ./fuzzcheck$(TEXE) --cell-size-check --limit-mem 10M --timeout 600 $(FUZZDATA)
291 -+ valgrind ./fuzzcheck$(TEXE) --cell-size-check --limit-mem 10M --timeout 3600 $(FUZZDATA)
292 -
293 - # Minimal testing that runs in less than 3 minutes
294 - #
295 -@@ -1114,32 +1114,32 @@
296 - smoketest: $(TESTPROGS) fuzzcheck$(TEXE)
297 - ./testfixture$(TEXE) $(TOP)/test/main.test $(TESTOPTS)
298 -
299 --sqlite3_analyzer.c: sqlite3.c $(TOP)/src/tclsqlite.c $(TOP)/tool/spaceanal.tcl
300 -+sqlite3_analyzer.c: $(TOP)/src/tclsqlite.c $(TOP)/tool/spaceanal.tcl
301 - echo "#define TCLSH 2" > $@
302 - echo "#define SQLITE_ENABLE_DBSTAT_VTAB 1" >> $@
303 -- cat sqlite3.c $(TOP)/src/tclsqlite.c >> $@
304 -+ cat $(TOP)/src/tclsqlite.c >> $@
305 - echo "static const char *tclsh_main_loop(void){" >> $@
306 - echo "static const char *zMainloop = " >> $@
307 - $(TCLSH_CMD) $(TOP)/tool/tostr.tcl $(TOP)/tool/spaceanal.tcl >> $@
308 - echo "; return zMainloop; }" >> $@
309 -
310 --sqlite3_analyzer$(TEXE): sqlite3_analyzer.c
311 -- $(LTLINK) sqlite3_analyzer.c -o $@ $(LIBTCL) $(TLIBS)
312 -+sqlite3_analyzer$(TEXE): sqlite3_analyzer.c libsqlite3.la
313 -+ $(LTLINK) sqlite3_analyzer.c -o $@ libsqlite3.la $(LIBTCL)
314 -
315 --showdb$(TEXE): $(TOP)/tool/showdb.c sqlite3.lo
316 -- $(LTLINK) -o $@ $(TOP)/tool/showdb.c sqlite3.lo $(TLIBS)
317 -+showdb$(TEXE): $(TOP)/tool/showdb.c libsqlite3.la
318 -+ $(LTLINK) -o $@ $(TOP)/tool/showdb.c libsqlite3.la
319 -
320 --showstat4$(TEXE): $(TOP)/tool/showstat4.c sqlite3.lo
321 -- $(LTLINK) -o $@ $(TOP)/tool/showstat4.c sqlite3.lo $(TLIBS)
322 -+showstat4$(TEXE): $(TOP)/tool/showstat4.c libsqlite3.la
323 -+ $(LTLINK) -o $@ $(TOP)/tool/showstat4.c libsqlite3.la
324 -
325 --showjournal$(TEXE): $(TOP)/tool/showjournal.c sqlite3.lo
326 -- $(LTLINK) -o $@ $(TOP)/tool/showjournal.c sqlite3.lo $(TLIBS)
327 -+showjournal$(TEXE): $(TOP)/tool/showjournal.c
328 -+ $(LTLINK) -o $@ $(TOP)/tool/showjournal.c
329 -
330 --showwal$(TEXE): $(TOP)/tool/showwal.c sqlite3.lo
331 -- $(LTLINK) -o $@ $(TOP)/tool/showwal.c sqlite3.lo $(TLIBS)
332 -+showwal$(TEXE): $(TOP)/tool/showwal.c
333 -+ $(LTLINK) -o $@ $(TOP)/tool/showwal.c
334 -
335 --changeset$(TEXE): $(TOP)/ext/session/changeset.c sqlite3.lo
336 -- $(LTLINK) -o $@ $(TOP)/ext/session/changeset.c sqlite3.lo $(TLIBS)
337 -+changeset$(TEXE): $(TOP)/ext/session/changeset.c libsqlite3.la
338 -+ $(LTLINK) -o $@ $(TOP)/ext/session/changeset.c libsqlite3.la
339 -
340 - rollback-test$(TEXE): $(TOP)/tool/rollback-test.c sqlite3.lo
341 - $(LTLINK) -o $@ $(TOP)/tool/rollback-test.c sqlite3.lo $(TLIBS)
342 -@@ -1153,8 +1153,8 @@
343 - speedtest1$(TEXE): $(TOP)/test/speedtest1.c sqlite3.lo
344 - $(LTLINK) -o $@ $(TOP)/test/speedtest1.c sqlite3.lo $(TLIBS)
345 -
346 --rbu$(EXE): $(TOP)/ext/rbu/rbu.c $(TOP)/ext/rbu/sqlite3rbu.c sqlite3.lo
347 -- $(LTLINK) -I. -o $@ $(TOP)/ext/rbu/rbu.c sqlite3.lo $(TLIBS)
348 -+rbu$(EXE): $(TOP)/ext/rbu/rbu.c libsqlite3.la
349 -+ $(LTLINK) -I. -o $@ $(TOP)/ext/rbu/rbu.c libsqlite3.la
350 -
351 - loadfts$(EXE): $(TOP)/tool/loadfts.c libsqlite3.la
352 - $(LTLINK) $(TOP)/tool/loadfts.c libsqlite3.la -o $@ $(TLIBS)
353 ---- a/configure.ac
354 -+++ b/configure.ac
355 -@@ -570,6 +570,9 @@
356 - if test "${use_loadextension}" = "yes" ; then
357 - OPT_FEATURE_FLAGS=""
358 - AC_SEARCH_LIBS(dlopen, dl)
359 -+ if test "${ac_cv_search_dlopen}" = "no" ; then
360 -+ OPT_FEATURE_FLAGS="-DSQLITE_OMIT_LOAD_EXTENSION=1"
361 -+ fi
362 - else
363 - OPT_FEATURE_FLAGS="-DSQLITE_OMIT_LOAD_EXTENSION=1"
364 - fi
365
366 diff --git a/dev-db/sqlite/files/sqlite-3.14.0-full_tarball-build.patch b/dev-db/sqlite/files/sqlite-3.14.0-full_tarball-build.patch
367 deleted file mode 100644
368 index e2b8889ff70..00000000000
369 --- a/dev-db/sqlite/files/sqlite-3.14.0-full_tarball-build.patch
370 +++ /dev/null
371 @@ -1,147 +0,0 @@
372 -Link executables against libsqlite3.so.
373 -Increase timeout for fuzzcheck.
374 -Fix building with dlopen() not available.
375 -
376 ---- a/Makefile.in
377 -+++ b/Makefile.in
378 -@@ -559,6 +559,7 @@
379 - #
380 - SHELL_OPT = -DSQLITE_ENABLE_JSON1 -DSQLITE_ENABLE_FTS4
381 - # SHELL_OPT += -DSQLITE_ENABLE_FTS5
382 -+SHELL_OPT += -DSQLITE_ENABLE_DBSTAT_VTAB
383 - SHELL_OPT += -DSQLITE_ENABLE_EXPLAIN_COMMENTS
384 - SHELL_OPT += -DSQLITE_ENABLE_UNKNOWN_SQL_FUNCTION
385 - FUZZERSHELL_OPT = -DSQLITE_ENABLE_JSON1
386 -@@ -581,25 +582,25 @@
387 -
388 - libtclsqlite3.la: tclsqlite.lo libsqlite3.la
389 - $(LTLINK) -no-undefined -o $@ tclsqlite.lo \
390 -- libsqlite3.la @TCL_STUB_LIB_SPEC@ $(TLIBS) \
391 -+ libsqlite3.la @TCL_STUB_LIB_SPEC@ \
392 - -rpath "$(TCLLIBDIR)" \
393 - -version-info "8:6:8" \
394 - -avoid-version
395 -
396 --sqlite3$(TEXE): $(TOP)/src/shell.c sqlite3.c
397 -- $(LTLINK) $(READLINE_FLAGS) $(SHELL_OPT) -o $@ \
398 -- $(TOP)/src/shell.c sqlite3.c \
399 -- $(LIBREADLINE) $(TLIBS) -rpath "$(libdir)"
400 -+sqlite3$(TEXE): $(TOP)/src/shell.c libsqlite3.la
401 -+ $(LTLINK) $(READLINE_FLAGS) -o $@ \
402 -+ $(TOP)/src/shell.c libsqlite3.la \
403 -+ $(LIBREADLINE)
404 -
405 --sqldiff$(TEXE): $(TOP)/tool/sqldiff.c sqlite3.lo sqlite3.h
406 -- $(LTLINK) -o $@ $(TOP)/tool/sqldiff.c sqlite3.lo $(TLIBS)
407 -+sqldiff$(TEXE): $(TOP)/tool/sqldiff.c libsqlite3.la
408 -+ $(LTLINK) -o $@ $(TOP)/tool/sqldiff.c libsqlite3.la
409 -
410 --dbhash$(TEXE): $(TOP)/tool/dbhash.c sqlite3.lo sqlite3.h
411 -- $(LTLINK) -o $@ $(TOP)/tool/dbhash.c sqlite3.lo $(TLIBS)
412 -+dbhash$(TEXE): $(TOP)/tool/dbhash.c libsqlite3.la
413 -+ $(LTLINK) -o $@ $(TOP)/tool/dbhash.c libsqlite3.la
414 -
415 --scrub$(TEXE): $(TOP)/ext/misc/scrub.c sqlite3.lo
416 -+scrub$(TEXE): $(TOP)/ext/misc/scrub.c libsqlite3.la
417 - $(LTLINK) -o $@ -I. -DSCRUB_STANDALONE \
418 -- $(TOP)/ext/misc/scrub.c sqlite3.lo $(TLIBS)
419 -+ $(TOP)/ext/misc/scrub.c libsqlite3.la
420 -
421 - srcck1$(BEXE): $(TOP)/tool/srcck1.c
422 - $(BCC) -o srcck1$(BEXE) $(TOP)/tool/srcck1.c
423 -@@ -668,7 +669,7 @@
424 - # Rule to build the amalgamation
425 - #
426 - sqlite3.lo: sqlite3.c
427 -- $(LTCOMPILE) $(TEMP_STORE) -c sqlite3.c
428 -+ $(LTCOMPILE) $(SHELL_OPT) $(TEMP_STORE) -c sqlite3.c
429 -
430 - # Rules to build the LEMON compiler generator
431 - #
432 -@@ -1094,13 +1095,13 @@
433 -
434 - # Fuzz testing
435 - fuzztest: fuzzcheck$(TEXE) $(FUZZDATA)
436 -- ./fuzzcheck$(TEXE) $(FUZZDATA)
437 -+ ./fuzzcheck$(TEXE) --timeout 3600 $(FUZZDATA)
438 -
439 - fastfuzztest: fuzzcheck$(TEXE) $(FUZZDATA)
440 -- ./fuzzcheck$(TEXE) --limit-mem 100M $(FUZZDATA)
441 -+ ./fuzzcheck$(TEXE) --limit-mem 100M --timeout 3600 $(FUZZDATA)
442 -
443 - valgrindfuzz: fuzzcheck$(TEXT) $(FUZZDATA)
444 -- valgrind ./fuzzcheck$(TEXE) --cell-size-check --limit-mem 10M --timeout 600 $(FUZZDATA)
445 -+ valgrind ./fuzzcheck$(TEXE) --cell-size-check --limit-mem 10M --timeout 3600 $(FUZZDATA)
446 -
447 - # Minimal testing that runs in less than 3 minutes
448 - #
449 -@@ -1126,32 +1127,31 @@
450 - smoketest: $(TESTPROGS) fuzzcheck$(TEXE)
451 - ./testfixture$(TEXE) $(TOP)/test/main.test $(TESTOPTS)
452 -
453 --sqlite3_analyzer.c: sqlite3.c $(TOP)/src/tclsqlite.c $(TOP)/tool/spaceanal.tcl
454 -+sqlite3_analyzer.c: $(TOP)/src/tclsqlite.c $(TOP)/tool/spaceanal.tcl
455 - echo "#define TCLSH 2" > $@
456 -- echo "#define SQLITE_ENABLE_DBSTAT_VTAB 1" >> $@
457 -- cat sqlite3.c $(TOP)/src/tclsqlite.c >> $@
458 -+ cat $(TOP)/src/tclsqlite.c >> $@
459 - echo "static const char *tclsh_main_loop(void){" >> $@
460 - echo "static const char *zMainloop = " >> $@
461 - $(TCLSH_CMD) $(TOP)/tool/tostr.tcl $(TOP)/tool/spaceanal.tcl >> $@
462 - echo "; return zMainloop; }" >> $@
463 -
464 --sqlite3_analyzer$(TEXE): sqlite3_analyzer.c
465 -- $(LTLINK) sqlite3_analyzer.c -o $@ $(LIBTCL) $(TLIBS)
466 -+sqlite3_analyzer$(TEXE): sqlite3_analyzer.c libsqlite3.la
467 -+ $(LTLINK) sqlite3_analyzer.c -o $@ libsqlite3.la $(LIBTCL)
468 -
469 --showdb$(TEXE): $(TOP)/tool/showdb.c sqlite3.lo
470 -- $(LTLINK) -o $@ $(TOP)/tool/showdb.c sqlite3.lo $(TLIBS)
471 -+showdb$(TEXE): $(TOP)/tool/showdb.c libsqlite3.la
472 -+ $(LTLINK) -o $@ $(TOP)/tool/showdb.c libsqlite3.la
473 -
474 --showstat4$(TEXE): $(TOP)/tool/showstat4.c sqlite3.lo
475 -- $(LTLINK) -o $@ $(TOP)/tool/showstat4.c sqlite3.lo $(TLIBS)
476 -+showstat4$(TEXE): $(TOP)/tool/showstat4.c libsqlite3.la
477 -+ $(LTLINK) -o $@ $(TOP)/tool/showstat4.c libsqlite3.la
478 -
479 --showjournal$(TEXE): $(TOP)/tool/showjournal.c sqlite3.lo
480 -- $(LTLINK) -o $@ $(TOP)/tool/showjournal.c sqlite3.lo $(TLIBS)
481 -+showjournal$(TEXE): $(TOP)/tool/showjournal.c
482 -+ $(LTLINK) -o $@ $(TOP)/tool/showjournal.c
483 -
484 --showwal$(TEXE): $(TOP)/tool/showwal.c sqlite3.lo
485 -- $(LTLINK) -o $@ $(TOP)/tool/showwal.c sqlite3.lo $(TLIBS)
486 -+showwal$(TEXE): $(TOP)/tool/showwal.c
487 -+ $(LTLINK) -o $@ $(TOP)/tool/showwal.c
488 -
489 --changeset$(TEXE): $(TOP)/ext/session/changeset.c sqlite3.lo
490 -- $(LTLINK) -o $@ $(TOP)/ext/session/changeset.c sqlite3.lo $(TLIBS)
491 -+changeset$(TEXE): $(TOP)/ext/session/changeset.c libsqlite3.la
492 -+ $(LTLINK) -o $@ $(TOP)/ext/session/changeset.c libsqlite3.la
493 -
494 - rollback-test$(TEXE): $(TOP)/tool/rollback-test.c sqlite3.lo
495 - $(LTLINK) -o $@ $(TOP)/tool/rollback-test.c sqlite3.lo $(TLIBS)
496 -@@ -1165,8 +1165,8 @@
497 - speedtest1$(TEXE): $(TOP)/test/speedtest1.c sqlite3.lo
498 - $(LTLINK) -o $@ $(TOP)/test/speedtest1.c sqlite3.lo $(TLIBS)
499 -
500 --rbu$(EXE): $(TOP)/ext/rbu/rbu.c $(TOP)/ext/rbu/sqlite3rbu.c sqlite3.lo
501 -- $(LTLINK) -I. -o $@ $(TOP)/ext/rbu/rbu.c sqlite3.lo $(TLIBS)
502 -+rbu$(EXE): $(TOP)/ext/rbu/rbu.c libsqlite3.la
503 -+ $(LTLINK) -I. -o $@ $(TOP)/ext/rbu/rbu.c libsqlite3.la
504 -
505 - loadfts$(EXE): $(TOP)/tool/loadfts.c libsqlite3.la
506 - $(LTLINK) $(TOP)/tool/loadfts.c libsqlite3.la -o $@ $(TLIBS)
507 ---- a/configure.ac
508 -+++ b/configure.ac
509 -@@ -584,6 +584,9 @@
510 - if test "${use_loadextension}" = "yes" ; then
511 - OPT_FEATURE_FLAGS=""
512 - AC_SEARCH_LIBS(dlopen, dl)
513 -+ if test "${ac_cv_search_dlopen}" = "no" ; then
514 -+ OPT_FEATURE_FLAGS="-DSQLITE_OMIT_LOAD_EXTENSION=1"
515 -+ fi
516 - else
517 - OPT_FEATURE_FLAGS="-DSQLITE_OMIT_LOAD_EXTENSION=1"
518 - fi
519
520 diff --git a/dev-db/sqlite/files/sqlite-3.15.0-full_tarball-tests-icu.patch b/dev-db/sqlite/files/sqlite-3.15.0-full_tarball-tests-icu.patch
521 deleted file mode 100644
522 index 15fb51e6127..00000000000
523 --- a/dev-db/sqlite/files/sqlite-3.15.0-full_tarball-tests-icu.patch
524 +++ /dev/null
525 @@ -1,64 +0,0 @@
526 -https://www.sqlite.org/src/info/afbbb6c66a85ff3f
527 -
528 ---- a/ext/icu/icu.c
529 -+++ b/ext/icu/icu.c
530 -@@ -500,20 +500,20 @@
531 - void *pContext; /* sqlite3_user_data() context */
532 - void (*xFunc)(sqlite3_context*,int,sqlite3_value**);
533 - } scalars[] = {
534 -- {"regexp", 2, SQLITE_ANY, 0, icuRegexpFunc},
535 -+ {"regexp", 2, SQLITE_ANY|SQLITE_DETERMINISTIC, 0, icuRegexpFunc},
536 -
537 -- {"lower", 1, SQLITE_UTF16, 0, icuCaseFunc16},
538 -- {"lower", 2, SQLITE_UTF16, 0, icuCaseFunc16},
539 -- {"upper", 1, SQLITE_UTF16, (void*)1, icuCaseFunc16},
540 -- {"upper", 2, SQLITE_UTF16, (void*)1, icuCaseFunc16},
541 -+ {"lower", 1, SQLITE_UTF16|SQLITE_DETERMINISTIC, 0, icuCaseFunc16},
542 -+ {"lower", 2, SQLITE_UTF16|SQLITE_DETERMINISTIC, 0, icuCaseFunc16},
543 -+ {"upper", 1, SQLITE_UTF16|SQLITE_DETERMINISTIC, (void*)1, icuCaseFunc16},
544 -+ {"upper", 2, SQLITE_UTF16|SQLITE_DETERMINISTIC, (void*)1, icuCaseFunc16},
545 -
546 -- {"lower", 1, SQLITE_UTF8, 0, icuCaseFunc16},
547 -- {"lower", 2, SQLITE_UTF8, 0, icuCaseFunc16},
548 -- {"upper", 1, SQLITE_UTF8, (void*)1, icuCaseFunc16},
549 -- {"upper", 2, SQLITE_UTF8, (void*)1, icuCaseFunc16},
550 -+ {"lower", 1, SQLITE_UTF8|SQLITE_DETERMINISTIC, 0, icuCaseFunc16},
551 -+ {"lower", 2, SQLITE_UTF8|SQLITE_DETERMINISTIC, 0, icuCaseFunc16},
552 -+ {"upper", 1, SQLITE_UTF8|SQLITE_DETERMINISTIC, (void*)1, icuCaseFunc16},
553 -+ {"upper", 2, SQLITE_UTF8|SQLITE_DETERMINISTIC, (void*)1, icuCaseFunc16},
554 -
555 -- {"like", 2, SQLITE_UTF8, 0, icuLikeFunc},
556 -- {"like", 3, SQLITE_UTF8, 0, icuLikeFunc},
557 -+ {"like", 2, SQLITE_UTF8|SQLITE_DETERMINISTIC, 0, icuLikeFunc},
558 -+ {"like", 3, SQLITE_UTF8|SQLITE_DETERMINISTIC, 0, icuLikeFunc},
559 -
560 - {"icu_load_collation", 2, SQLITE_UTF8, (void*)db, icuLoadCollation},
561 - };
562 ---- a/test/cursorhint2.test
563 -+++ b/test/cursorhint2.test
564 -@@ -164,17 +164,19 @@
565 - x2 {AND(EQ(c1,ADD(32,32)),EQ(c0,r[2]))}
566 - }
567 -
568 --do_extract_hints_test 2.11 {
569 -- SELECT * FROM x1 LEFT JOIN x2 ON (a=x) WHERE x2.b LIKE 'abc%'
570 --} {
571 -- x2 {AND(expr,EQ(c0,r[2]))}
572 -+ifcapable !icu {
573 -+ # This test only works using the built-in LIKE, not the ICU LIKE extension.
574 -+ do_extract_hints_test 2.11 {
575 -+ SELECT * FROM x1 LEFT JOIN x2 ON (a=x) WHERE x2.b LIKE 'abc%'
576 -+ } {
577 -+ x2 {AND(expr,EQ(c0,r[2]))}
578 -+ }
579 - }
580 -
581 --do_extract_hints_test 2.11 {
582 -+do_extract_hints_test 2.12 {
583 - SELECT * FROM x1 LEFT JOIN x2 ON (a=x) WHERE coalesce(x2.b, 1)
584 - } {
585 - x2 {EQ(c0,r[2])}
586 - }
587 -
588 - finish_test
589 --
590
591 diff --git a/dev-db/sqlite/sqlite-3.12.0.ebuild b/dev-db/sqlite/sqlite-3.12.0.ebuild
592 deleted file mode 100644
593 index 9899d3e5c75..00000000000
594 --- a/dev-db/sqlite/sqlite-3.12.0.ebuild
595 +++ /dev/null
596 @@ -1,237 +0,0 @@
597 -# Copyright 1999-2017 Gentoo Foundation
598 -# Distributed under the terms of the GNU General Public License v2
599 -
600 -EAPI="5"
601 -
602 -inherit autotools eutils flag-o-matic multilib multilib-minimal toolchain-funcs versionator
603 -
604 -SRC_PV="$(printf "%u%02u%02u%02u" $(get_version_components))"
605 -DOC_PV="${SRC_PV}"
606 -# DOC_PV="$(printf "%u%02u%02u00" $(get_version_components $(get_version_component_range 1-3)))"
607 -
608 -DESCRIPTION="A SQL Database Engine in a C Library"
609 -HOMEPAGE="https://sqlite.org/"
610 -SRC_URI="doc? ( https://sqlite.org/2016/${PN}-doc-${DOC_PV}.zip )
611 - tcl? ( https://sqlite.org/2016/${PN}-src-${SRC_PV}.zip )
612 - test? ( https://sqlite.org/2016/${PN}-src-${SRC_PV}.zip )
613 - tools? ( https://sqlite.org/2016/${PN}-src-${SRC_PV}.zip )
614 - !tcl? ( !test? ( !tools? ( https://sqlite.org/2016/${PN}-autoconf-${SRC_PV}.tar.gz ) ) )"
615 -
616 -LICENSE="public-domain"
617 -SLOT="3"
618 -KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh sparc x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
619 -IUSE="debug doc icu +readline secure-delete static-libs tcl test tools"
620 -
621 -RDEPEND="icu? ( dev-libs/icu:0=[${MULTILIB_USEDEP}] )
622 - readline? ( sys-libs/readline:0=[${MULTILIB_USEDEP}] )
623 - tcl? ( dev-lang/tcl:0=[${MULTILIB_USEDEP}] )
624 - tools? ( dev-lang/tcl:0=[${MULTILIB_USEDEP}] )"
625 -DEPEND="${RDEPEND}
626 - doc? ( app-arch/unzip )
627 - tcl? ( app-arch/unzip )
628 - test? (
629 - app-arch/unzip
630 - dev-lang/tcl:0[${MULTILIB_USEDEP}]
631 - )
632 - tools? ( app-arch/unzip )"
633 -
634 -full_tarball() {
635 - use tcl || use test || use tools
636 -}
637 -
638 -pkg_setup() {
639 - if full_tarball; then
640 - S="${WORKDIR}/${PN}-src-${SRC_PV}"
641 - else
642 - S="${WORKDIR}/${PN}-autoconf-${SRC_PV}"
643 - fi
644 -}
645 -
646 -src_prepare() {
647 - if full_tarball; then
648 - epatch "${FILESDIR}/${PN}-3.11.0-full_tarball-build.patch"
649 -
650 - # Fix AC_CHECK_FUNCS.
651 - # https://mailinglists.sqlite.org/cgi-bin/mailman/private/sqlite-dev/2016-March/002762.html
652 - sed -e "s/AC_CHECK_FUNCS(.*)/AC_CHECK_FUNCS([fdatasync fullfsync gmtime_r isnan localtime_r localtime_s malloc_usable_size posix_fallocate pread pread64 pwrite pwrite64 strchrnul usleep utime])/" -i configure.ac
653 - else
654 - epatch "${FILESDIR}/${PN}-3.12.0-nonfull_tarball-build.patch"
655 -
656 - # Fix AC_CHECK_FUNCS.
657 - # https://mailinglists.sqlite.org/cgi-bin/mailman/private/sqlite-dev/2016-March/002762.html
658 - sed \
659 - -e "s/AC_CHECK_FUNCS(\[fdatasync.*/AC_CHECK_FUNCS([fdatasync fullfsync gmtime_r isnan localtime_r localtime_s malloc_usable_size posix_fallocate pread pread64 pwrite pwrite64 strchrnul usleep utime])/" \
660 - -e "/AC_CHECK_FUNCS(posix_fallocate)/d" \
661 - -i configure.ac
662 - fi
663 -
664 - eautoreconf
665 -
666 - multilib_copy_sources
667 -}
668 -
669 -multilib_src_configure() {
670 - local CPPFLAGS="${CPPFLAGS}" options=()
671 -
672 - options+=(
673 - --enable-$(full_tarball && echo load-extension || echo dynamic-extensions)
674 - --enable-threadsafe
675 - )
676 - if ! full_tarball; then
677 - options+=(--disable-static-shell)
678 - fi
679 -
680 - # Support detection of misuse of SQLite API.
681 - # https://sqlite.org/compile.html#enable_api_armor
682 - append-cppflags -DSQLITE_ENABLE_API_ARMOR
683 -
684 - # Support column metadata functions.
685 - # https://sqlite.org/c3ref/column_database_name.html
686 - append-cppflags -DSQLITE_ENABLE_COLUMN_METADATA
687 -
688 - # Support dbstat virtual table.
689 - # https://sqlite.org/dbstat.html
690 - append-cppflags -DSQLITE_ENABLE_DBSTAT_VTAB
691 -
692 - # Support comments in output of EXPLAIN.
693 - # https://sqlite.org/compile.html#enable_explain_comments
694 - append-cppflags -DSQLITE_ENABLE_EXPLAIN_COMMENTS
695 -
696 - # Support Full-Text Search versions 3, 4 and 5.
697 - # https://sqlite.org/fts3.html
698 - # https://sqlite.org/fts5.html
699 - append-cppflags -DSQLITE_ENABLE_FTS3 -DSQLITE_ENABLE_FTS3_PARENTHESIS -DSQLITE_ENABLE_FTS4
700 - options+=(--enable-fts5)
701 -
702 - # Support hidden columns.
703 - append-cppflags -DSQLITE_ENABLE_HIDDEN_COLUMNS
704 -
705 - # Support JSON1 extension.
706 - # https://sqlite.org/json1.html
707 - append-cppflags -DSQLITE_ENABLE_JSON1
708 -
709 - # Support Resumable Bulk Update extension.
710 - # https://sqlite.org/rbu.html
711 - append-cppflags -DSQLITE_ENABLE_RBU
712 -
713 - # Support R*Trees.
714 - # https://sqlite.org/rtree.html
715 - append-cppflags -DSQLITE_ENABLE_RTREE
716 -
717 - # Support scan status functions.
718 - # https://sqlite.org/c3ref/stmt_scanstatus.html
719 - # https://sqlite.org/c3ref/stmt_scanstatus_reset.html
720 - append-cppflags -DSQLITE_ENABLE_STMT_SCANSTATUS
721 -
722 - # Support unlock notification.
723 - # https://sqlite.org/unlock_notify.html
724 - append-cppflags -DSQLITE_ENABLE_UNLOCK_NOTIFY
725 -
726 - # Support soundex() function.
727 - # https://sqlite.org/lang_corefunc.html#soundex
728 - append-cppflags -DSQLITE_SOUNDEX
729 -
730 - # debug USE flag.
731 - if full_tarball; then
732 - options+=($(use_enable debug))
733 - else
734 - if use debug; then
735 - append-cppflags -DSQLITE_DEBUG
736 - else
737 - append-cppflags -DNDEBUG
738 - fi
739 - fi
740 -
741 - # icu USE flag.
742 - if use icu; then
743 - # Support ICU extension.
744 - # https://sqlite.org/compile.html#enable_icu
745 - append-cppflags -DSQLITE_ENABLE_ICU
746 - if full_tarball; then
747 - sed -e "s/^TLIBS = @LIBS@/& -licui18n -licuuc/" -i Makefile.in || die "sed failed"
748 - else
749 - sed -e "s/^LIBS = @LIBS@/& -licui18n -licuuc/" -i Makefile.in || die "sed failed"
750 - fi
751 - fi
752 -
753 - # readline USE flag.
754 - options+=(
755 - --disable-editline
756 - $(use_enable readline)
757 - )
758 - if full_tarball && use readline; then
759 - options+=(--with-readline-inc="-I${EPREFIX}/usr/include/readline")
760 - fi
761 -
762 - # secure-delete USE flag.
763 - if use secure-delete; then
764 - # Enable secure_delete pragma by default.
765 - # https://sqlite.org/pragma.html#pragma_secure_delete
766 - append-cppflags -DSQLITE_SECURE_DELETE
767 - fi
768 -
769 - # static-libs USE flag.
770 - options+=($(use_enable static-libs static))
771 -
772 - # tcl, test, tools USE flags.
773 - if full_tarball; then
774 - options+=(--enable-tcl)
775 - fi
776 -
777 - if [[ "${CHOST}" == *-mint* ]]; then
778 - append-cppflags -DSQLITE_OMIT_WAL
779 - fi
780 -
781 - econf "${options[@]}"
782 -}
783 -
784 -multilib_src_compile() {
785 - emake HAVE_TCL="$(usex tcl 1 "")" TCLLIBDIR="${EPREFIX}/usr/$(get_libdir)/${P}"
786 -
787 - if use tools && multilib_is_native_abi; then
788 - emake rbu showdb showjournal showstat4 showwal sqldiff sqlite3_analyzer
789 - fi
790 -}
791 -
792 -multilib_src_test() {
793 - if [[ "${EUID}" -eq 0 ]]; then
794 - ewarn "Skipping tests due to root permissions"
795 - return
796 - fi
797 -
798 - emake HAVE_TCL="$(usex tcl 1 "")" $(use debug && echo fulltest || echo test)
799 -}
800 -
801 -multilib_src_install() {
802 - emake DESTDIR="${D}" HAVE_TCL="$(usex tcl 1 "")" TCLLIBDIR="${EPREFIX}/usr/$(get_libdir)/${P}" install
803 -
804 - if use tools && multilib_is_native_abi; then
805 - install_tool() {
806 - if [[ -f ".libs/${1}" ]]; then
807 - newbin ".libs/${1}" "${2}"
808 - else
809 - newbin "${1}" "${2}"
810 - fi
811 - }
812 -
813 - install_tool rbu sqlite3-rbu
814 - install_tool showdb sqlite3-show-db
815 - install_tool showjournal sqlite3-show-journal
816 - install_tool showstat4 sqlite3-show-stat4
817 - install_tool showwal sqlite3-show-wal
818 - install_tool sqldiff sqlite3-diff
819 - install_tool sqlite3_analyzer sqlite3-analyzer
820 -
821 - unset -f install_tool
822 - fi
823 -}
824 -
825 -multilib_src_install_all() {
826 - prune_libtool_files
827 -
828 - doman sqlite3.1
829 -
830 - if use doc; then
831 - dohtml -A ico,odf,odg,pdf,svg -r "${WORKDIR}/${PN}-doc-${DOC_PV}/"
832 - fi
833 -}
834
835 diff --git a/dev-db/sqlite/sqlite-3.12.1.ebuild b/dev-db/sqlite/sqlite-3.12.1.ebuild
836 deleted file mode 100644
837 index 348a527d8fd..00000000000
838 --- a/dev-db/sqlite/sqlite-3.12.1.ebuild
839 +++ /dev/null
840 @@ -1,237 +0,0 @@
841 -# Copyright 1999-2017 Gentoo Foundation
842 -# Distributed under the terms of the GNU General Public License v2
843 -
844 -EAPI="5"
845 -
846 -inherit autotools eutils flag-o-matic multilib multilib-minimal toolchain-funcs versionator
847 -
848 -SRC_PV="$(printf "%u%02u%02u%02u" $(get_version_components))"
849 -DOC_PV="${SRC_PV}"
850 -# DOC_PV="$(printf "%u%02u%02u00" $(get_version_components $(get_version_component_range 1-3)))"
851 -
852 -DESCRIPTION="A SQL Database Engine in a C Library"
853 -HOMEPAGE="https://sqlite.org/"
854 -SRC_URI="doc? ( https://sqlite.org/2016/${PN}-doc-${DOC_PV}.zip )
855 - tcl? ( https://sqlite.org/2016/${PN}-src-${SRC_PV}.zip )
856 - test? ( https://sqlite.org/2016/${PN}-src-${SRC_PV}.zip )
857 - tools? ( https://sqlite.org/2016/${PN}-src-${SRC_PV}.zip )
858 - !tcl? ( !test? ( !tools? ( https://sqlite.org/2016/${PN}-autoconf-${SRC_PV}.tar.gz ) ) )"
859 -
860 -LICENSE="public-domain"
861 -SLOT="3"
862 -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
863 -IUSE="debug doc icu +readline secure-delete static-libs tcl test tools"
864 -
865 -RDEPEND="icu? ( dev-libs/icu:0=[${MULTILIB_USEDEP}] )
866 - readline? ( sys-libs/readline:0=[${MULTILIB_USEDEP}] )
867 - tcl? ( dev-lang/tcl:0=[${MULTILIB_USEDEP}] )
868 - tools? ( dev-lang/tcl:0=[${MULTILIB_USEDEP}] )"
869 -DEPEND="${RDEPEND}
870 - doc? ( app-arch/unzip )
871 - tcl? ( app-arch/unzip )
872 - test? (
873 - app-arch/unzip
874 - dev-lang/tcl:0[${MULTILIB_USEDEP}]
875 - )
876 - tools? ( app-arch/unzip )"
877 -
878 -full_tarball() {
879 - use tcl || use test || use tools
880 -}
881 -
882 -pkg_setup() {
883 - if full_tarball; then
884 - S="${WORKDIR}/${PN}-src-${SRC_PV}"
885 - else
886 - S="${WORKDIR}/${PN}-autoconf-${SRC_PV}"
887 - fi
888 -}
889 -
890 -src_prepare() {
891 - if full_tarball; then
892 - epatch "${FILESDIR}/${PN}-3.11.0-full_tarball-build.patch"
893 -
894 - # Fix AC_CHECK_FUNCS.
895 - # https://mailinglists.sqlite.org/cgi-bin/mailman/private/sqlite-dev/2016-March/002762.html
896 - sed -e "s/AC_CHECK_FUNCS(.*)/AC_CHECK_FUNCS([fdatasync fullfsync gmtime_r isnan localtime_r localtime_s malloc_usable_size posix_fallocate pread pread64 pwrite pwrite64 strchrnul usleep utime])/" -i configure.ac
897 - else
898 - epatch "${FILESDIR}/${PN}-3.12.0-nonfull_tarball-build.patch"
899 -
900 - # Fix AC_CHECK_FUNCS.
901 - # https://mailinglists.sqlite.org/cgi-bin/mailman/private/sqlite-dev/2016-March/002762.html
902 - sed \
903 - -e "s/AC_CHECK_FUNCS(\[fdatasync.*/AC_CHECK_FUNCS([fdatasync fullfsync gmtime_r isnan localtime_r localtime_s malloc_usable_size posix_fallocate pread pread64 pwrite pwrite64 strchrnul usleep utime])/" \
904 - -e "/AC_CHECK_FUNCS(posix_fallocate)/d" \
905 - -i configure.ac
906 - fi
907 -
908 - eautoreconf
909 -
910 - multilib_copy_sources
911 -}
912 -
913 -multilib_src_configure() {
914 - local CPPFLAGS="${CPPFLAGS}" options=()
915 -
916 - options+=(
917 - --enable-$(full_tarball && echo load-extension || echo dynamic-extensions)
918 - --enable-threadsafe
919 - )
920 - if ! full_tarball; then
921 - options+=(--disable-static-shell)
922 - fi
923 -
924 - # Support detection of misuse of SQLite API.
925 - # https://sqlite.org/compile.html#enable_api_armor
926 - append-cppflags -DSQLITE_ENABLE_API_ARMOR
927 -
928 - # Support column metadata functions.
929 - # https://sqlite.org/c3ref/column_database_name.html
930 - append-cppflags -DSQLITE_ENABLE_COLUMN_METADATA
931 -
932 - # Support dbstat virtual table.
933 - # https://sqlite.org/dbstat.html
934 - append-cppflags -DSQLITE_ENABLE_DBSTAT_VTAB
935 -
936 - # Support comments in output of EXPLAIN.
937 - # https://sqlite.org/compile.html#enable_explain_comments
938 - append-cppflags -DSQLITE_ENABLE_EXPLAIN_COMMENTS
939 -
940 - # Support Full-Text Search versions 3, 4 and 5.
941 - # https://sqlite.org/fts3.html
942 - # https://sqlite.org/fts5.html
943 - append-cppflags -DSQLITE_ENABLE_FTS3 -DSQLITE_ENABLE_FTS3_PARENTHESIS -DSQLITE_ENABLE_FTS4
944 - options+=(--enable-fts5)
945 -
946 - # Support hidden columns.
947 - append-cppflags -DSQLITE_ENABLE_HIDDEN_COLUMNS
948 -
949 - # Support JSON1 extension.
950 - # https://sqlite.org/json1.html
951 - append-cppflags -DSQLITE_ENABLE_JSON1
952 -
953 - # Support Resumable Bulk Update extension.
954 - # https://sqlite.org/rbu.html
955 - append-cppflags -DSQLITE_ENABLE_RBU
956 -
957 - # Support R*Trees.
958 - # https://sqlite.org/rtree.html
959 - append-cppflags -DSQLITE_ENABLE_RTREE
960 -
961 - # Support scan status functions.
962 - # https://sqlite.org/c3ref/stmt_scanstatus.html
963 - # https://sqlite.org/c3ref/stmt_scanstatus_reset.html
964 - append-cppflags -DSQLITE_ENABLE_STMT_SCANSTATUS
965 -
966 - # Support unlock notification.
967 - # https://sqlite.org/unlock_notify.html
968 - append-cppflags -DSQLITE_ENABLE_UNLOCK_NOTIFY
969 -
970 - # Support soundex() function.
971 - # https://sqlite.org/lang_corefunc.html#soundex
972 - append-cppflags -DSQLITE_SOUNDEX
973 -
974 - # debug USE flag.
975 - if full_tarball; then
976 - options+=($(use_enable debug))
977 - else
978 - if use debug; then
979 - append-cppflags -DSQLITE_DEBUG
980 - else
981 - append-cppflags -DNDEBUG
982 - fi
983 - fi
984 -
985 - # icu USE flag.
986 - if use icu; then
987 - # Support ICU extension.
988 - # https://sqlite.org/compile.html#enable_icu
989 - append-cppflags -DSQLITE_ENABLE_ICU
990 - if full_tarball; then
991 - sed -e "s/^TLIBS = @LIBS@/& -licui18n -licuuc/" -i Makefile.in || die "sed failed"
992 - else
993 - sed -e "s/^LIBS = @LIBS@/& -licui18n -licuuc/" -i Makefile.in || die "sed failed"
994 - fi
995 - fi
996 -
997 - # readline USE flag.
998 - options+=(
999 - --disable-editline
1000 - $(use_enable readline)
1001 - )
1002 - if full_tarball && use readline; then
1003 - options+=(--with-readline-inc="-I${EPREFIX}/usr/include/readline")
1004 - fi
1005 -
1006 - # secure-delete USE flag.
1007 - if use secure-delete; then
1008 - # Enable secure_delete pragma by default.
1009 - # https://sqlite.org/pragma.html#pragma_secure_delete
1010 - append-cppflags -DSQLITE_SECURE_DELETE
1011 - fi
1012 -
1013 - # static-libs USE flag.
1014 - options+=($(use_enable static-libs static))
1015 -
1016 - # tcl, test, tools USE flags.
1017 - if full_tarball; then
1018 - options+=(--enable-tcl)
1019 - fi
1020 -
1021 - if [[ "${CHOST}" == *-mint* ]]; then
1022 - append-cppflags -DSQLITE_OMIT_WAL
1023 - fi
1024 -
1025 - econf "${options[@]}"
1026 -}
1027 -
1028 -multilib_src_compile() {
1029 - emake HAVE_TCL="$(usex tcl 1 "")" TCLLIBDIR="${EPREFIX}/usr/$(get_libdir)/${P}"
1030 -
1031 - if use tools && multilib_is_native_abi; then
1032 - emake rbu showdb showjournal showstat4 showwal sqldiff sqlite3_analyzer
1033 - fi
1034 -}
1035 -
1036 -multilib_src_test() {
1037 - if [[ "${EUID}" -eq 0 ]]; then
1038 - ewarn "Skipping tests due to root permissions"
1039 - return
1040 - fi
1041 -
1042 - emake HAVE_TCL="$(usex tcl 1 "")" $(use debug && echo fulltest || echo test)
1043 -}
1044 -
1045 -multilib_src_install() {
1046 - emake DESTDIR="${D}" HAVE_TCL="$(usex tcl 1 "")" TCLLIBDIR="${EPREFIX}/usr/$(get_libdir)/${P}" install
1047 -
1048 - if use tools && multilib_is_native_abi; then
1049 - install_tool() {
1050 - if [[ -f ".libs/${1}" ]]; then
1051 - newbin ".libs/${1}" "${2}"
1052 - else
1053 - newbin "${1}" "${2}"
1054 - fi
1055 - }
1056 -
1057 - install_tool rbu sqlite3-rbu
1058 - install_tool showdb sqlite3-show-db
1059 - install_tool showjournal sqlite3-show-journal
1060 - install_tool showstat4 sqlite3-show-stat4
1061 - install_tool showwal sqlite3-show-wal
1062 - install_tool sqldiff sqlite3-diff
1063 - install_tool sqlite3_analyzer sqlite3-analyzer
1064 -
1065 - unset -f install_tool
1066 - fi
1067 -}
1068 -
1069 -multilib_src_install_all() {
1070 - prune_libtool_files
1071 -
1072 - doman sqlite3.1
1073 -
1074 - if use doc; then
1075 - dohtml -A ico,odf,odg,pdf,svg -r "${WORKDIR}/${PN}-doc-${DOC_PV}/"
1076 - fi
1077 -}
1078
1079 diff --git a/dev-db/sqlite/sqlite-3.12.2.ebuild b/dev-db/sqlite/sqlite-3.12.2.ebuild
1080 deleted file mode 100644
1081 index 348a527d8fd..00000000000
1082 --- a/dev-db/sqlite/sqlite-3.12.2.ebuild
1083 +++ /dev/null
1084 @@ -1,237 +0,0 @@
1085 -# Copyright 1999-2017 Gentoo Foundation
1086 -# Distributed under the terms of the GNU General Public License v2
1087 -
1088 -EAPI="5"
1089 -
1090 -inherit autotools eutils flag-o-matic multilib multilib-minimal toolchain-funcs versionator
1091 -
1092 -SRC_PV="$(printf "%u%02u%02u%02u" $(get_version_components))"
1093 -DOC_PV="${SRC_PV}"
1094 -# DOC_PV="$(printf "%u%02u%02u00" $(get_version_components $(get_version_component_range 1-3)))"
1095 -
1096 -DESCRIPTION="A SQL Database Engine in a C Library"
1097 -HOMEPAGE="https://sqlite.org/"
1098 -SRC_URI="doc? ( https://sqlite.org/2016/${PN}-doc-${DOC_PV}.zip )
1099 - tcl? ( https://sqlite.org/2016/${PN}-src-${SRC_PV}.zip )
1100 - test? ( https://sqlite.org/2016/${PN}-src-${SRC_PV}.zip )
1101 - tools? ( https://sqlite.org/2016/${PN}-src-${SRC_PV}.zip )
1102 - !tcl? ( !test? ( !tools? ( https://sqlite.org/2016/${PN}-autoconf-${SRC_PV}.tar.gz ) ) )"
1103 -
1104 -LICENSE="public-domain"
1105 -SLOT="3"
1106 -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
1107 -IUSE="debug doc icu +readline secure-delete static-libs tcl test tools"
1108 -
1109 -RDEPEND="icu? ( dev-libs/icu:0=[${MULTILIB_USEDEP}] )
1110 - readline? ( sys-libs/readline:0=[${MULTILIB_USEDEP}] )
1111 - tcl? ( dev-lang/tcl:0=[${MULTILIB_USEDEP}] )
1112 - tools? ( dev-lang/tcl:0=[${MULTILIB_USEDEP}] )"
1113 -DEPEND="${RDEPEND}
1114 - doc? ( app-arch/unzip )
1115 - tcl? ( app-arch/unzip )
1116 - test? (
1117 - app-arch/unzip
1118 - dev-lang/tcl:0[${MULTILIB_USEDEP}]
1119 - )
1120 - tools? ( app-arch/unzip )"
1121 -
1122 -full_tarball() {
1123 - use tcl || use test || use tools
1124 -}
1125 -
1126 -pkg_setup() {
1127 - if full_tarball; then
1128 - S="${WORKDIR}/${PN}-src-${SRC_PV}"
1129 - else
1130 - S="${WORKDIR}/${PN}-autoconf-${SRC_PV}"
1131 - fi
1132 -}
1133 -
1134 -src_prepare() {
1135 - if full_tarball; then
1136 - epatch "${FILESDIR}/${PN}-3.11.0-full_tarball-build.patch"
1137 -
1138 - # Fix AC_CHECK_FUNCS.
1139 - # https://mailinglists.sqlite.org/cgi-bin/mailman/private/sqlite-dev/2016-March/002762.html
1140 - sed -e "s/AC_CHECK_FUNCS(.*)/AC_CHECK_FUNCS([fdatasync fullfsync gmtime_r isnan localtime_r localtime_s malloc_usable_size posix_fallocate pread pread64 pwrite pwrite64 strchrnul usleep utime])/" -i configure.ac
1141 - else
1142 - epatch "${FILESDIR}/${PN}-3.12.0-nonfull_tarball-build.patch"
1143 -
1144 - # Fix AC_CHECK_FUNCS.
1145 - # https://mailinglists.sqlite.org/cgi-bin/mailman/private/sqlite-dev/2016-March/002762.html
1146 - sed \
1147 - -e "s/AC_CHECK_FUNCS(\[fdatasync.*/AC_CHECK_FUNCS([fdatasync fullfsync gmtime_r isnan localtime_r localtime_s malloc_usable_size posix_fallocate pread pread64 pwrite pwrite64 strchrnul usleep utime])/" \
1148 - -e "/AC_CHECK_FUNCS(posix_fallocate)/d" \
1149 - -i configure.ac
1150 - fi
1151 -
1152 - eautoreconf
1153 -
1154 - multilib_copy_sources
1155 -}
1156 -
1157 -multilib_src_configure() {
1158 - local CPPFLAGS="${CPPFLAGS}" options=()
1159 -
1160 - options+=(
1161 - --enable-$(full_tarball && echo load-extension || echo dynamic-extensions)
1162 - --enable-threadsafe
1163 - )
1164 - if ! full_tarball; then
1165 - options+=(--disable-static-shell)
1166 - fi
1167 -
1168 - # Support detection of misuse of SQLite API.
1169 - # https://sqlite.org/compile.html#enable_api_armor
1170 - append-cppflags -DSQLITE_ENABLE_API_ARMOR
1171 -
1172 - # Support column metadata functions.
1173 - # https://sqlite.org/c3ref/column_database_name.html
1174 - append-cppflags -DSQLITE_ENABLE_COLUMN_METADATA
1175 -
1176 - # Support dbstat virtual table.
1177 - # https://sqlite.org/dbstat.html
1178 - append-cppflags -DSQLITE_ENABLE_DBSTAT_VTAB
1179 -
1180 - # Support comments in output of EXPLAIN.
1181 - # https://sqlite.org/compile.html#enable_explain_comments
1182 - append-cppflags -DSQLITE_ENABLE_EXPLAIN_COMMENTS
1183 -
1184 - # Support Full-Text Search versions 3, 4 and 5.
1185 - # https://sqlite.org/fts3.html
1186 - # https://sqlite.org/fts5.html
1187 - append-cppflags -DSQLITE_ENABLE_FTS3 -DSQLITE_ENABLE_FTS3_PARENTHESIS -DSQLITE_ENABLE_FTS4
1188 - options+=(--enable-fts5)
1189 -
1190 - # Support hidden columns.
1191 - append-cppflags -DSQLITE_ENABLE_HIDDEN_COLUMNS
1192 -
1193 - # Support JSON1 extension.
1194 - # https://sqlite.org/json1.html
1195 - append-cppflags -DSQLITE_ENABLE_JSON1
1196 -
1197 - # Support Resumable Bulk Update extension.
1198 - # https://sqlite.org/rbu.html
1199 - append-cppflags -DSQLITE_ENABLE_RBU
1200 -
1201 - # Support R*Trees.
1202 - # https://sqlite.org/rtree.html
1203 - append-cppflags -DSQLITE_ENABLE_RTREE
1204 -
1205 - # Support scan status functions.
1206 - # https://sqlite.org/c3ref/stmt_scanstatus.html
1207 - # https://sqlite.org/c3ref/stmt_scanstatus_reset.html
1208 - append-cppflags -DSQLITE_ENABLE_STMT_SCANSTATUS
1209 -
1210 - # Support unlock notification.
1211 - # https://sqlite.org/unlock_notify.html
1212 - append-cppflags -DSQLITE_ENABLE_UNLOCK_NOTIFY
1213 -
1214 - # Support soundex() function.
1215 - # https://sqlite.org/lang_corefunc.html#soundex
1216 - append-cppflags -DSQLITE_SOUNDEX
1217 -
1218 - # debug USE flag.
1219 - if full_tarball; then
1220 - options+=($(use_enable debug))
1221 - else
1222 - if use debug; then
1223 - append-cppflags -DSQLITE_DEBUG
1224 - else
1225 - append-cppflags -DNDEBUG
1226 - fi
1227 - fi
1228 -
1229 - # icu USE flag.
1230 - if use icu; then
1231 - # Support ICU extension.
1232 - # https://sqlite.org/compile.html#enable_icu
1233 - append-cppflags -DSQLITE_ENABLE_ICU
1234 - if full_tarball; then
1235 - sed -e "s/^TLIBS = @LIBS@/& -licui18n -licuuc/" -i Makefile.in || die "sed failed"
1236 - else
1237 - sed -e "s/^LIBS = @LIBS@/& -licui18n -licuuc/" -i Makefile.in || die "sed failed"
1238 - fi
1239 - fi
1240 -
1241 - # readline USE flag.
1242 - options+=(
1243 - --disable-editline
1244 - $(use_enable readline)
1245 - )
1246 - if full_tarball && use readline; then
1247 - options+=(--with-readline-inc="-I${EPREFIX}/usr/include/readline")
1248 - fi
1249 -
1250 - # secure-delete USE flag.
1251 - if use secure-delete; then
1252 - # Enable secure_delete pragma by default.
1253 - # https://sqlite.org/pragma.html#pragma_secure_delete
1254 - append-cppflags -DSQLITE_SECURE_DELETE
1255 - fi
1256 -
1257 - # static-libs USE flag.
1258 - options+=($(use_enable static-libs static))
1259 -
1260 - # tcl, test, tools USE flags.
1261 - if full_tarball; then
1262 - options+=(--enable-tcl)
1263 - fi
1264 -
1265 - if [[ "${CHOST}" == *-mint* ]]; then
1266 - append-cppflags -DSQLITE_OMIT_WAL
1267 - fi
1268 -
1269 - econf "${options[@]}"
1270 -}
1271 -
1272 -multilib_src_compile() {
1273 - emake HAVE_TCL="$(usex tcl 1 "")" TCLLIBDIR="${EPREFIX}/usr/$(get_libdir)/${P}"
1274 -
1275 - if use tools && multilib_is_native_abi; then
1276 - emake rbu showdb showjournal showstat4 showwal sqldiff sqlite3_analyzer
1277 - fi
1278 -}
1279 -
1280 -multilib_src_test() {
1281 - if [[ "${EUID}" -eq 0 ]]; then
1282 - ewarn "Skipping tests due to root permissions"
1283 - return
1284 - fi
1285 -
1286 - emake HAVE_TCL="$(usex tcl 1 "")" $(use debug && echo fulltest || echo test)
1287 -}
1288 -
1289 -multilib_src_install() {
1290 - emake DESTDIR="${D}" HAVE_TCL="$(usex tcl 1 "")" TCLLIBDIR="${EPREFIX}/usr/$(get_libdir)/${P}" install
1291 -
1292 - if use tools && multilib_is_native_abi; then
1293 - install_tool() {
1294 - if [[ -f ".libs/${1}" ]]; then
1295 - newbin ".libs/${1}" "${2}"
1296 - else
1297 - newbin "${1}" "${2}"
1298 - fi
1299 - }
1300 -
1301 - install_tool rbu sqlite3-rbu
1302 - install_tool showdb sqlite3-show-db
1303 - install_tool showjournal sqlite3-show-journal
1304 - install_tool showstat4 sqlite3-show-stat4
1305 - install_tool showwal sqlite3-show-wal
1306 - install_tool sqldiff sqlite3-diff
1307 - install_tool sqlite3_analyzer sqlite3-analyzer
1308 -
1309 - unset -f install_tool
1310 - fi
1311 -}
1312 -
1313 -multilib_src_install_all() {
1314 - prune_libtool_files
1315 -
1316 - doman sqlite3.1
1317 -
1318 - if use doc; then
1319 - dohtml -A ico,odf,odg,pdf,svg -r "${WORKDIR}/${PN}-doc-${DOC_PV}/"
1320 - fi
1321 -}
1322
1323 diff --git a/dev-db/sqlite/sqlite-3.13.0.ebuild b/dev-db/sqlite/sqlite-3.13.0.ebuild
1324 deleted file mode 100644
1325 index 7632300a217..00000000000
1326 --- a/dev-db/sqlite/sqlite-3.13.0.ebuild
1327 +++ /dev/null
1328 @@ -1,242 +0,0 @@
1329 -# Copyright 1999-2017 Gentoo Foundation
1330 -# Distributed under the terms of the GNU General Public License v2
1331 -
1332 -EAPI="5"
1333 -
1334 -inherit autotools eutils flag-o-matic multilib multilib-minimal toolchain-funcs versionator
1335 -
1336 -SRC_PV="$(printf "%u%02u%02u%02u" $(get_version_components))"
1337 -DOC_PV="${SRC_PV}"
1338 -# DOC_PV="$(printf "%u%02u%02u00" $(get_version_components $(get_version_component_range 1-3)))"
1339 -
1340 -DESCRIPTION="A SQL Database Engine in a C Library"
1341 -HOMEPAGE="https://sqlite.org/"
1342 -SRC_URI="doc? ( https://sqlite.org/2016/${PN}-doc-${DOC_PV}.zip )
1343 - tcl? ( https://sqlite.org/2016/${PN}-src-${SRC_PV}.zip )
1344 - test? ( https://sqlite.org/2016/${PN}-src-${SRC_PV}.zip )
1345 - tools? ( https://sqlite.org/2016/${PN}-src-${SRC_PV}.zip )
1346 - !tcl? ( !test? ( !tools? ( https://sqlite.org/2016/${PN}-autoconf-${SRC_PV}.tar.gz ) ) )"
1347 -
1348 -LICENSE="public-domain"
1349 -SLOT="3"
1350 -KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh sparc x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
1351 -IUSE="debug doc icu +readline secure-delete static-libs tcl test tools"
1352 -
1353 -RDEPEND="icu? ( dev-libs/icu:0=[${MULTILIB_USEDEP}] )
1354 - readline? ( sys-libs/readline:0=[${MULTILIB_USEDEP}] )
1355 - tcl? ( dev-lang/tcl:0=[${MULTILIB_USEDEP}] )
1356 - tools? ( dev-lang/tcl:0=[${MULTILIB_USEDEP}] )"
1357 -DEPEND="${RDEPEND}
1358 - doc? ( app-arch/unzip )
1359 - tcl? ( app-arch/unzip )
1360 - test? (
1361 - app-arch/unzip
1362 - dev-lang/tcl:0[${MULTILIB_USEDEP}]
1363 - )
1364 - tools? ( app-arch/unzip )"
1365 -
1366 -full_tarball() {
1367 - use tcl || use test || use tools
1368 -}
1369 -
1370 -pkg_setup() {
1371 - if full_tarball; then
1372 - S="${WORKDIR}/${PN}-src-${SRC_PV}"
1373 - else
1374 - S="${WORKDIR}/${PN}-autoconf-${SRC_PV}"
1375 - fi
1376 -}
1377 -
1378 -src_prepare() {
1379 - if full_tarball; then
1380 - epatch "${FILESDIR}/${PN}-3.13.0-full_tarball-build.patch"
1381 -
1382 - # Fix AC_CHECK_FUNCS.
1383 - # https://mailinglists.sqlite.org/cgi-bin/mailman/private/sqlite-dev/2016-March/002762.html
1384 - sed -e "s/AC_CHECK_FUNCS(.*)/AC_CHECK_FUNCS([fdatasync fullfsync gmtime_r isnan localtime_r localtime_s malloc_usable_size posix_fallocate pread pread64 pwrite pwrite64 strchrnul usleep utime])/" -i configure.ac
1385 - else
1386 - epatch "${FILESDIR}/${PN}-3.12.0-nonfull_tarball-build.patch"
1387 -
1388 - # Fix AC_CHECK_FUNCS.
1389 - # https://mailinglists.sqlite.org/cgi-bin/mailman/private/sqlite-dev/2016-March/002762.html
1390 - sed \
1391 - -e "s/AC_CHECK_FUNCS(\[fdatasync.*/AC_CHECK_FUNCS([fdatasync fullfsync gmtime_r isnan localtime_r localtime_s malloc_usable_size posix_fallocate pread pread64 pwrite pwrite64 strchrnul usleep utime])/" \
1392 - -e "/AC_CHECK_FUNCS(posix_fallocate)/d" \
1393 - -i configure.ac
1394 - fi
1395 -
1396 - eautoreconf
1397 -
1398 - multilib_copy_sources
1399 -}
1400 -
1401 -multilib_src_configure() {
1402 - local CPPFLAGS="${CPPFLAGS}" options=()
1403 -
1404 - options+=(
1405 - --enable-$(full_tarball && echo load-extension || echo dynamic-extensions)
1406 - --enable-threadsafe
1407 - )
1408 - if ! full_tarball; then
1409 - options+=(--disable-static-shell)
1410 - fi
1411 -
1412 - # Support detection of misuse of SQLite API.
1413 - # https://sqlite.org/compile.html#enable_api_armor
1414 - append-cppflags -DSQLITE_ENABLE_API_ARMOR
1415 -
1416 - # Support column metadata functions.
1417 - # https://sqlite.org/c3ref/column_database_name.html
1418 - append-cppflags -DSQLITE_ENABLE_COLUMN_METADATA
1419 -
1420 - # Support dbstat virtual table.
1421 - # https://sqlite.org/dbstat.html
1422 - append-cppflags -DSQLITE_ENABLE_DBSTAT_VTAB
1423 -
1424 - # Support comments in output of EXPLAIN.
1425 - # https://sqlite.org/compile.html#enable_explain_comments
1426 - append-cppflags -DSQLITE_ENABLE_EXPLAIN_COMMENTS
1427 -
1428 - # Support Full-Text Search versions 3, 4 and 5.
1429 - # https://sqlite.org/fts3.html
1430 - # https://sqlite.org/fts5.html
1431 - append-cppflags -DSQLITE_ENABLE_FTS3 -DSQLITE_ENABLE_FTS3_PARENTHESIS -DSQLITE_ENABLE_FTS4
1432 - options+=(--enable-fts5)
1433 -
1434 - # Support hidden columns.
1435 - append-cppflags -DSQLITE_ENABLE_HIDDEN_COLUMNS
1436 -
1437 - # Support JSON1 extension.
1438 - # https://sqlite.org/json1.html
1439 - append-cppflags -DSQLITE_ENABLE_JSON1
1440 -
1441 - # Support Resumable Bulk Update extension.
1442 - # https://sqlite.org/rbu.html
1443 - append-cppflags -DSQLITE_ENABLE_RBU
1444 -
1445 - # Support R*Trees.
1446 - # https://sqlite.org/rtree.html
1447 - append-cppflags -DSQLITE_ENABLE_RTREE
1448 -
1449 - # Support scan status functions.
1450 - # https://sqlite.org/c3ref/stmt_scanstatus.html
1451 - # https://sqlite.org/c3ref/stmt_scanstatus_reset.html
1452 - append-cppflags -DSQLITE_ENABLE_STMT_SCANSTATUS
1453 -
1454 - # Support Session extension.
1455 - # https://sqlite.org/sessionintro.html
1456 - options+=(--enable-session)
1457 -
1458 - # Support unlock notification.
1459 - # https://sqlite.org/unlock_notify.html
1460 - append-cppflags -DSQLITE_ENABLE_UNLOCK_NOTIFY
1461 -
1462 - # Support soundex() function.
1463 - # https://sqlite.org/lang_corefunc.html#soundex
1464 - append-cppflags -DSQLITE_SOUNDEX
1465 -
1466 - # debug USE flag.
1467 - if full_tarball; then
1468 - options+=($(use_enable debug))
1469 - else
1470 - if use debug; then
1471 - append-cppflags -DSQLITE_DEBUG
1472 - else
1473 - append-cppflags -DNDEBUG
1474 - fi
1475 - fi
1476 -
1477 - # icu USE flag.
1478 - if use icu; then
1479 - # Support ICU extension.
1480 - # https://sqlite.org/compile.html#enable_icu
1481 - append-cppflags -DSQLITE_ENABLE_ICU
1482 - if full_tarball; then
1483 - sed -e "s/^TLIBS = @LIBS@/& -licui18n -licuuc/" -i Makefile.in || die "sed failed"
1484 - else
1485 - sed -e "s/^LIBS = @LIBS@/& -licui18n -licuuc/" -i Makefile.in || die "sed failed"
1486 - fi
1487 - fi
1488 -
1489 - # readline USE flag.
1490 - options+=(
1491 - --disable-editline
1492 - $(use_enable readline)
1493 - )
1494 - if full_tarball && use readline; then
1495 - options+=(--with-readline-inc="-I${EPREFIX}/usr/include/readline")
1496 - fi
1497 -
1498 - # secure-delete USE flag.
1499 - if use secure-delete; then
1500 - # Enable secure_delete pragma by default.
1501 - # https://sqlite.org/pragma.html#pragma_secure_delete
1502 - append-cppflags -DSQLITE_SECURE_DELETE
1503 - fi
1504 -
1505 - # static-libs USE flag.
1506 - options+=($(use_enable static-libs static))
1507 -
1508 - # tcl, test, tools USE flags.
1509 - if full_tarball; then
1510 - options+=(--enable-tcl)
1511 - fi
1512 -
1513 - if [[ "${CHOST}" == *-mint* ]]; then
1514 - append-cppflags -DSQLITE_OMIT_WAL
1515 - fi
1516 -
1517 - econf "${options[@]}"
1518 -}
1519 -
1520 -multilib_src_compile() {
1521 - emake HAVE_TCL="$(usex tcl 1 "")" TCLLIBDIR="${EPREFIX}/usr/$(get_libdir)/${P}"
1522 -
1523 - if use tools && multilib_is_native_abi; then
1524 - emake changeset rbu showdb showjournal showstat4 showwal sqldiff sqlite3_analyzer
1525 - fi
1526 -}
1527 -
1528 -multilib_src_test() {
1529 - if [[ "${EUID}" -eq 0 ]]; then
1530 - ewarn "Skipping tests due to root permissions"
1531 - return
1532 - fi
1533 -
1534 - emake HAVE_TCL="$(usex tcl 1 "")" $(use debug && echo fulltest || echo test)
1535 -}
1536 -
1537 -multilib_src_install() {
1538 - emake DESTDIR="${D}" HAVE_TCL="$(usex tcl 1 "")" TCLLIBDIR="${EPREFIX}/usr/$(get_libdir)/${P}" install
1539 -
1540 - if use tools && multilib_is_native_abi; then
1541 - install_tool() {
1542 - if [[ -f ".libs/${1}" ]]; then
1543 - newbin ".libs/${1}" "${2}"
1544 - else
1545 - newbin "${1}" "${2}"
1546 - fi
1547 - }
1548 -
1549 - install_tool changeset sqlite3-changeset
1550 - install_tool rbu sqlite3-rbu
1551 - install_tool showdb sqlite3-show-db
1552 - install_tool showjournal sqlite3-show-journal
1553 - install_tool showstat4 sqlite3-show-stat4
1554 - install_tool showwal sqlite3-show-wal
1555 - install_tool sqldiff sqlite3-diff
1556 - install_tool sqlite3_analyzer sqlite3-analyzer
1557 -
1558 - unset -f install_tool
1559 - fi
1560 -}
1561 -
1562 -multilib_src_install_all() {
1563 - prune_libtool_files
1564 -
1565 - doman sqlite3.1
1566 -
1567 - if use doc; then
1568 - dohtml -A ico,odf,odg,pdf,svg -r "${WORKDIR}/${PN}-doc-${DOC_PV}/"
1569 - fi
1570 -}
1571
1572 diff --git a/dev-db/sqlite/sqlite-3.14.1.ebuild b/dev-db/sqlite/sqlite-3.14.1.ebuild
1573 deleted file mode 100644
1574 index 9730b9c2520..00000000000
1575 --- a/dev-db/sqlite/sqlite-3.14.1.ebuild
1576 +++ /dev/null
1577 @@ -1,260 +0,0 @@
1578 -# Copyright 1999-2017 Gentoo Foundation
1579 -# Distributed under the terms of the GNU General Public License v2
1580 -
1581 -EAPI="6"
1582 -
1583 -inherit autotools eutils flag-o-matic multilib multilib-minimal toolchain-funcs versionator
1584 -
1585 -SRC_PV="$(printf "%u%02u%02u%02u" $(get_version_components))"
1586 -DOC_PV="${SRC_PV}"
1587 -# DOC_PV="$(printf "%u%02u%02u00" $(get_version_components $(get_version_component_range 1-3)))"
1588 -
1589 -DESCRIPTION="A SQL Database Engine in a C Library"
1590 -HOMEPAGE="https://sqlite.org/"
1591 -SRC_URI="doc? ( https://sqlite.org/2016/${PN}-doc-${DOC_PV}.zip )
1592 - tcl? ( https://sqlite.org/2016/${PN}-src-${SRC_PV}.zip )
1593 - test? ( https://sqlite.org/2016/${PN}-src-${SRC_PV}.zip )
1594 - tools? ( https://sqlite.org/2016/${PN}-src-${SRC_PV}.zip )
1595 - !tcl? ( !test? ( !tools? ( https://sqlite.org/2016/${PN}-autoconf-${SRC_PV}.tar.gz ) ) )"
1596 -
1597 -LICENSE="public-domain"
1598 -SLOT="3"
1599 -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
1600 -IUSE="debug doc icu +readline secure-delete static-libs tcl test tools"
1601 -
1602 -RDEPEND="icu? ( dev-libs/icu:0=[${MULTILIB_USEDEP}] )
1603 - readline? ( sys-libs/readline:0=[${MULTILIB_USEDEP}] )
1604 - tcl? ( dev-lang/tcl:0=[${MULTILIB_USEDEP}] )
1605 - tools? ( dev-lang/tcl:0=[${MULTILIB_USEDEP}] )"
1606 -DEPEND="${RDEPEND}
1607 - doc? ( app-arch/unzip )
1608 - tcl? ( app-arch/unzip )
1609 - test? (
1610 - app-arch/unzip
1611 - dev-lang/tcl:0[${MULTILIB_USEDEP}]
1612 - )
1613 - tools? ( app-arch/unzip )"
1614 -
1615 -full_tarball() {
1616 - use tcl || use test || use tools
1617 -}
1618 -
1619 -pkg_setup() {
1620 - if full_tarball; then
1621 - S="${WORKDIR}/${PN}-src-${SRC_PV}"
1622 - else
1623 - S="${WORKDIR}/${PN}-autoconf-${SRC_PV}"
1624 - fi
1625 -}
1626 -
1627 -src_prepare() {
1628 - if full_tarball; then
1629 - eapply "${FILESDIR}/${PN}-3.14.0-full_tarball-build.patch"
1630 -
1631 - eapply_user
1632 -
1633 - # Fix AC_CHECK_FUNCS.
1634 - # https://mailinglists.sqlite.org/cgi-bin/mailman/private/sqlite-dev/2016-March/002762.html
1635 - sed -e "s/AC_CHECK_FUNCS(.*)/AC_CHECK_FUNCS([fdatasync fullfsync gmtime_r isnan localtime_r localtime_s malloc_usable_size posix_fallocate pread pread64 pwrite pwrite64 strchrnul usleep utime])/" -i configure.ac || die "sed failed"
1636 - else
1637 - eapply "${FILESDIR}/${PN}-3.12.0-nonfull_tarball-build.patch"
1638 -
1639 - eapply_user
1640 -
1641 - # Fix AC_CHECK_FUNCS.
1642 - # https://mailinglists.sqlite.org/cgi-bin/mailman/private/sqlite-dev/2016-March/002762.html
1643 - sed \
1644 - -e "s/AC_CHECK_FUNCS(\[fdatasync.*/AC_CHECK_FUNCS([fdatasync fullfsync gmtime_r isnan localtime_r localtime_s malloc_usable_size posix_fallocate pread pread64 pwrite pwrite64 strchrnul usleep utime])/" \
1645 - -e "/AC_CHECK_FUNCS(posix_fallocate)/d" \
1646 - -i configure.ac || die "sed failed"
1647 - fi
1648 -
1649 - eautoreconf
1650 -
1651 - multilib_copy_sources
1652 -}
1653 -
1654 -multilib_src_configure() {
1655 - local CPPFLAGS="${CPPFLAGS}" options=()
1656 -
1657 - options+=(
1658 - --enable-$(full_tarball && echo load-extension || echo dynamic-extensions)
1659 - --enable-threadsafe
1660 - )
1661 - if ! full_tarball; then
1662 - options+=(--disable-static-shell)
1663 - fi
1664 -
1665 - # Support detection of misuse of SQLite API.
1666 - # https://sqlite.org/compile.html#enable_api_armor
1667 - append-cppflags -DSQLITE_ENABLE_API_ARMOR
1668 -
1669 - # Support column metadata functions.
1670 - # https://sqlite.org/c3ref/column_database_name.html
1671 - append-cppflags -DSQLITE_ENABLE_COLUMN_METADATA
1672 -
1673 - # Support dbstat virtual table.
1674 - # https://sqlite.org/dbstat.html
1675 - append-cppflags -DSQLITE_ENABLE_DBSTAT_VTAB
1676 -
1677 - # Support comments in output of EXPLAIN.
1678 - # https://sqlite.org/compile.html#enable_explain_comments
1679 - append-cppflags -DSQLITE_ENABLE_EXPLAIN_COMMENTS
1680 -
1681 - # Support Full-Text Search versions 3, 4 and 5.
1682 - # https://sqlite.org/fts3.html
1683 - # https://sqlite.org/fts5.html
1684 - append-cppflags -DSQLITE_ENABLE_FTS3 -DSQLITE_ENABLE_FTS3_PARENTHESIS -DSQLITE_ENABLE_FTS4
1685 - options+=(--enable-fts5)
1686 -
1687 - # Support hidden columns.
1688 - append-cppflags -DSQLITE_ENABLE_HIDDEN_COLUMNS
1689 -
1690 - # Support JSON1 extension.
1691 - # https://sqlite.org/json1.html
1692 - append-cppflags -DSQLITE_ENABLE_JSON1
1693 -
1694 - # Support memsys5 memory allocator.
1695 - # https://sqlite.org/malloc.html#memsys5
1696 - append-cppflags -DSQLITE_ENABLE_MEMSYS5
1697 -
1698 - # Support Resumable Bulk Update extension.
1699 - # https://sqlite.org/rbu.html
1700 - append-cppflags -DSQLITE_ENABLE_RBU
1701 -
1702 - # Support R*Trees.
1703 - # https://sqlite.org/rtree.html
1704 - append-cppflags -DSQLITE_ENABLE_RTREE
1705 -
1706 - # Support scan status functions.
1707 - # https://sqlite.org/c3ref/stmt_scanstatus.html
1708 - # https://sqlite.org/c3ref/stmt_scanstatus_reset.html
1709 - append-cppflags -DSQLITE_ENABLE_STMT_SCANSTATUS
1710 -
1711 - # Support Session extension.
1712 - # https://sqlite.org/sessionintro.html
1713 - options+=(--enable-session)
1714 -
1715 - # Support unknown() function.
1716 - # https://sqlite.org/compile.html#enable_unknown_sql_function
1717 - append-cppflags -DSQLITE_ENABLE_UNKNOWN_SQL_FUNCTION
1718 -
1719 - # Support unlock notification.
1720 - # https://sqlite.org/unlock_notify.html
1721 - append-cppflags -DSQLITE_ENABLE_UNLOCK_NOTIFY
1722 -
1723 - # Support soundex() function.
1724 - # https://sqlite.org/lang_corefunc.html#soundex
1725 - append-cppflags -DSQLITE_SOUNDEX
1726 -
1727 - # debug USE flag.
1728 - if full_tarball; then
1729 - options+=($(use_enable debug))
1730 - else
1731 - if use debug; then
1732 - append-cppflags -DSQLITE_DEBUG
1733 - else
1734 - append-cppflags -DNDEBUG
1735 - fi
1736 - fi
1737 -
1738 - # icu USE flag.
1739 - if use icu; then
1740 - # Support ICU extension.
1741 - # https://sqlite.org/compile.html#enable_icu
1742 - append-cppflags -DSQLITE_ENABLE_ICU
1743 - if full_tarball; then
1744 - sed -e "s/^TLIBS = @LIBS@/& -licui18n -licuuc/" -i Makefile.in || die "sed failed"
1745 - else
1746 - sed -e "s/^LIBS = @LIBS@/& -licui18n -licuuc/" -i Makefile.in || die "sed failed"
1747 - fi
1748 - fi
1749 -
1750 - # readline USE flag.
1751 - options+=(
1752 - --disable-editline
1753 - $(use_enable readline)
1754 - )
1755 - if full_tarball && use readline; then
1756 - options+=(--with-readline-inc="-I${EPREFIX}/usr/include/readline")
1757 - fi
1758 -
1759 - # secure-delete USE flag.
1760 - if use secure-delete; then
1761 - # Enable secure_delete pragma by default.
1762 - # https://sqlite.org/pragma.html#pragma_secure_delete
1763 - append-cppflags -DSQLITE_SECURE_DELETE
1764 - fi
1765 -
1766 - # static-libs USE flag.
1767 - options+=($(use_enable static-libs static))
1768 -
1769 - # tcl, test, tools USE flags.
1770 - if full_tarball; then
1771 - options+=(--enable-tcl)
1772 - fi
1773 -
1774 - if [[ "${CHOST}" == *-mint* ]]; then
1775 - append-cppflags -DSQLITE_OMIT_WAL
1776 - fi
1777 -
1778 - econf "${options[@]}"
1779 -}
1780 -
1781 -multilib_src_compile() {
1782 - emake HAVE_TCL="$(usex tcl 1 "")" TCLLIBDIR="${EPREFIX}/usr/$(get_libdir)/${P}"
1783 -
1784 - if use tools && multilib_is_native_abi; then
1785 - emake changeset dbhash rbu scrub showdb showjournal showstat4 showwal sqldiff sqlite3_analyzer
1786 - fi
1787 -}
1788 -
1789 -multilib_src_test() {
1790 - if [[ "${EUID}" -eq 0 ]]; then
1791 - ewarn "Skipping tests due to root permissions"
1792 - return
1793 - fi
1794 -
1795 - emake HAVE_TCL="$(usex tcl 1 "")" $(use debug && echo fulltest || echo test)
1796 -}
1797 -
1798 -multilib_src_install() {
1799 - emake DESTDIR="${D}" HAVE_TCL="$(usex tcl 1 "")" TCLLIBDIR="${EPREFIX}/usr/$(get_libdir)/${P}" install
1800 -
1801 - if use tools && multilib_is_native_abi; then
1802 - install_tool() {
1803 - if [[ -f ".libs/${1}" ]]; then
1804 - newbin ".libs/${1}" "${2}"
1805 - else
1806 - newbin "${1}" "${2}"
1807 - fi
1808 - }
1809 -
1810 - install_tool changeset sqlite3-changeset
1811 - install_tool dbhash sqlite3-db-hash
1812 - install_tool rbu sqlite3-rbu
1813 - install_tool scrub sqlite3-scrub
1814 - install_tool showdb sqlite3-show-db
1815 - install_tool showjournal sqlite3-show-journal
1816 - install_tool showstat4 sqlite3-show-stat4
1817 - install_tool showwal sqlite3-show-wal
1818 - install_tool sqldiff sqlite3-diff
1819 - install_tool sqlite3_analyzer sqlite3-analyzer
1820 -
1821 - unset -f install_tool
1822 - fi
1823 -}
1824 -
1825 -multilib_src_install_all() {
1826 - prune_libtool_files
1827 -
1828 - doman sqlite3.1
1829 -
1830 - if use doc; then
1831 - rm "${WORKDIR}/${PN}-doc-${DOC_PV}/"*.{db,txt}
1832 - (
1833 - docinto html
1834 - dodoc -r "${WORKDIR}/${PN}-doc-${DOC_PV}/"*
1835 - )
1836 - fi
1837 -}
1838
1839 diff --git a/dev-db/sqlite/sqlite-3.14.2.ebuild b/dev-db/sqlite/sqlite-3.14.2.ebuild
1840 deleted file mode 100644
1841 index 9730b9c2520..00000000000
1842 --- a/dev-db/sqlite/sqlite-3.14.2.ebuild
1843 +++ /dev/null
1844 @@ -1,260 +0,0 @@
1845 -# Copyright 1999-2017 Gentoo Foundation
1846 -# Distributed under the terms of the GNU General Public License v2
1847 -
1848 -EAPI="6"
1849 -
1850 -inherit autotools eutils flag-o-matic multilib multilib-minimal toolchain-funcs versionator
1851 -
1852 -SRC_PV="$(printf "%u%02u%02u%02u" $(get_version_components))"
1853 -DOC_PV="${SRC_PV}"
1854 -# DOC_PV="$(printf "%u%02u%02u00" $(get_version_components $(get_version_component_range 1-3)))"
1855 -
1856 -DESCRIPTION="A SQL Database Engine in a C Library"
1857 -HOMEPAGE="https://sqlite.org/"
1858 -SRC_URI="doc? ( https://sqlite.org/2016/${PN}-doc-${DOC_PV}.zip )
1859 - tcl? ( https://sqlite.org/2016/${PN}-src-${SRC_PV}.zip )
1860 - test? ( https://sqlite.org/2016/${PN}-src-${SRC_PV}.zip )
1861 - tools? ( https://sqlite.org/2016/${PN}-src-${SRC_PV}.zip )
1862 - !tcl? ( !test? ( !tools? ( https://sqlite.org/2016/${PN}-autoconf-${SRC_PV}.tar.gz ) ) )"
1863 -
1864 -LICENSE="public-domain"
1865 -SLOT="3"
1866 -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
1867 -IUSE="debug doc icu +readline secure-delete static-libs tcl test tools"
1868 -
1869 -RDEPEND="icu? ( dev-libs/icu:0=[${MULTILIB_USEDEP}] )
1870 - readline? ( sys-libs/readline:0=[${MULTILIB_USEDEP}] )
1871 - tcl? ( dev-lang/tcl:0=[${MULTILIB_USEDEP}] )
1872 - tools? ( dev-lang/tcl:0=[${MULTILIB_USEDEP}] )"
1873 -DEPEND="${RDEPEND}
1874 - doc? ( app-arch/unzip )
1875 - tcl? ( app-arch/unzip )
1876 - test? (
1877 - app-arch/unzip
1878 - dev-lang/tcl:0[${MULTILIB_USEDEP}]
1879 - )
1880 - tools? ( app-arch/unzip )"
1881 -
1882 -full_tarball() {
1883 - use tcl || use test || use tools
1884 -}
1885 -
1886 -pkg_setup() {
1887 - if full_tarball; then
1888 - S="${WORKDIR}/${PN}-src-${SRC_PV}"
1889 - else
1890 - S="${WORKDIR}/${PN}-autoconf-${SRC_PV}"
1891 - fi
1892 -}
1893 -
1894 -src_prepare() {
1895 - if full_tarball; then
1896 - eapply "${FILESDIR}/${PN}-3.14.0-full_tarball-build.patch"
1897 -
1898 - eapply_user
1899 -
1900 - # Fix AC_CHECK_FUNCS.
1901 - # https://mailinglists.sqlite.org/cgi-bin/mailman/private/sqlite-dev/2016-March/002762.html
1902 - sed -e "s/AC_CHECK_FUNCS(.*)/AC_CHECK_FUNCS([fdatasync fullfsync gmtime_r isnan localtime_r localtime_s malloc_usable_size posix_fallocate pread pread64 pwrite pwrite64 strchrnul usleep utime])/" -i configure.ac || die "sed failed"
1903 - else
1904 - eapply "${FILESDIR}/${PN}-3.12.0-nonfull_tarball-build.patch"
1905 -
1906 - eapply_user
1907 -
1908 - # Fix AC_CHECK_FUNCS.
1909 - # https://mailinglists.sqlite.org/cgi-bin/mailman/private/sqlite-dev/2016-March/002762.html
1910 - sed \
1911 - -e "s/AC_CHECK_FUNCS(\[fdatasync.*/AC_CHECK_FUNCS([fdatasync fullfsync gmtime_r isnan localtime_r localtime_s malloc_usable_size posix_fallocate pread pread64 pwrite pwrite64 strchrnul usleep utime])/" \
1912 - -e "/AC_CHECK_FUNCS(posix_fallocate)/d" \
1913 - -i configure.ac || die "sed failed"
1914 - fi
1915 -
1916 - eautoreconf
1917 -
1918 - multilib_copy_sources
1919 -}
1920 -
1921 -multilib_src_configure() {
1922 - local CPPFLAGS="${CPPFLAGS}" options=()
1923 -
1924 - options+=(
1925 - --enable-$(full_tarball && echo load-extension || echo dynamic-extensions)
1926 - --enable-threadsafe
1927 - )
1928 - if ! full_tarball; then
1929 - options+=(--disable-static-shell)
1930 - fi
1931 -
1932 - # Support detection of misuse of SQLite API.
1933 - # https://sqlite.org/compile.html#enable_api_armor
1934 - append-cppflags -DSQLITE_ENABLE_API_ARMOR
1935 -
1936 - # Support column metadata functions.
1937 - # https://sqlite.org/c3ref/column_database_name.html
1938 - append-cppflags -DSQLITE_ENABLE_COLUMN_METADATA
1939 -
1940 - # Support dbstat virtual table.
1941 - # https://sqlite.org/dbstat.html
1942 - append-cppflags -DSQLITE_ENABLE_DBSTAT_VTAB
1943 -
1944 - # Support comments in output of EXPLAIN.
1945 - # https://sqlite.org/compile.html#enable_explain_comments
1946 - append-cppflags -DSQLITE_ENABLE_EXPLAIN_COMMENTS
1947 -
1948 - # Support Full-Text Search versions 3, 4 and 5.
1949 - # https://sqlite.org/fts3.html
1950 - # https://sqlite.org/fts5.html
1951 - append-cppflags -DSQLITE_ENABLE_FTS3 -DSQLITE_ENABLE_FTS3_PARENTHESIS -DSQLITE_ENABLE_FTS4
1952 - options+=(--enable-fts5)
1953 -
1954 - # Support hidden columns.
1955 - append-cppflags -DSQLITE_ENABLE_HIDDEN_COLUMNS
1956 -
1957 - # Support JSON1 extension.
1958 - # https://sqlite.org/json1.html
1959 - append-cppflags -DSQLITE_ENABLE_JSON1
1960 -
1961 - # Support memsys5 memory allocator.
1962 - # https://sqlite.org/malloc.html#memsys5
1963 - append-cppflags -DSQLITE_ENABLE_MEMSYS5
1964 -
1965 - # Support Resumable Bulk Update extension.
1966 - # https://sqlite.org/rbu.html
1967 - append-cppflags -DSQLITE_ENABLE_RBU
1968 -
1969 - # Support R*Trees.
1970 - # https://sqlite.org/rtree.html
1971 - append-cppflags -DSQLITE_ENABLE_RTREE
1972 -
1973 - # Support scan status functions.
1974 - # https://sqlite.org/c3ref/stmt_scanstatus.html
1975 - # https://sqlite.org/c3ref/stmt_scanstatus_reset.html
1976 - append-cppflags -DSQLITE_ENABLE_STMT_SCANSTATUS
1977 -
1978 - # Support Session extension.
1979 - # https://sqlite.org/sessionintro.html
1980 - options+=(--enable-session)
1981 -
1982 - # Support unknown() function.
1983 - # https://sqlite.org/compile.html#enable_unknown_sql_function
1984 - append-cppflags -DSQLITE_ENABLE_UNKNOWN_SQL_FUNCTION
1985 -
1986 - # Support unlock notification.
1987 - # https://sqlite.org/unlock_notify.html
1988 - append-cppflags -DSQLITE_ENABLE_UNLOCK_NOTIFY
1989 -
1990 - # Support soundex() function.
1991 - # https://sqlite.org/lang_corefunc.html#soundex
1992 - append-cppflags -DSQLITE_SOUNDEX
1993 -
1994 - # debug USE flag.
1995 - if full_tarball; then
1996 - options+=($(use_enable debug))
1997 - else
1998 - if use debug; then
1999 - append-cppflags -DSQLITE_DEBUG
2000 - else
2001 - append-cppflags -DNDEBUG
2002 - fi
2003 - fi
2004 -
2005 - # icu USE flag.
2006 - if use icu; then
2007 - # Support ICU extension.
2008 - # https://sqlite.org/compile.html#enable_icu
2009 - append-cppflags -DSQLITE_ENABLE_ICU
2010 - if full_tarball; then
2011 - sed -e "s/^TLIBS = @LIBS@/& -licui18n -licuuc/" -i Makefile.in || die "sed failed"
2012 - else
2013 - sed -e "s/^LIBS = @LIBS@/& -licui18n -licuuc/" -i Makefile.in || die "sed failed"
2014 - fi
2015 - fi
2016 -
2017 - # readline USE flag.
2018 - options+=(
2019 - --disable-editline
2020 - $(use_enable readline)
2021 - )
2022 - if full_tarball && use readline; then
2023 - options+=(--with-readline-inc="-I${EPREFIX}/usr/include/readline")
2024 - fi
2025 -
2026 - # secure-delete USE flag.
2027 - if use secure-delete; then
2028 - # Enable secure_delete pragma by default.
2029 - # https://sqlite.org/pragma.html#pragma_secure_delete
2030 - append-cppflags -DSQLITE_SECURE_DELETE
2031 - fi
2032 -
2033 - # static-libs USE flag.
2034 - options+=($(use_enable static-libs static))
2035 -
2036 - # tcl, test, tools USE flags.
2037 - if full_tarball; then
2038 - options+=(--enable-tcl)
2039 - fi
2040 -
2041 - if [[ "${CHOST}" == *-mint* ]]; then
2042 - append-cppflags -DSQLITE_OMIT_WAL
2043 - fi
2044 -
2045 - econf "${options[@]}"
2046 -}
2047 -
2048 -multilib_src_compile() {
2049 - emake HAVE_TCL="$(usex tcl 1 "")" TCLLIBDIR="${EPREFIX}/usr/$(get_libdir)/${P}"
2050 -
2051 - if use tools && multilib_is_native_abi; then
2052 - emake changeset dbhash rbu scrub showdb showjournal showstat4 showwal sqldiff sqlite3_analyzer
2053 - fi
2054 -}
2055 -
2056 -multilib_src_test() {
2057 - if [[ "${EUID}" -eq 0 ]]; then
2058 - ewarn "Skipping tests due to root permissions"
2059 - return
2060 - fi
2061 -
2062 - emake HAVE_TCL="$(usex tcl 1 "")" $(use debug && echo fulltest || echo test)
2063 -}
2064 -
2065 -multilib_src_install() {
2066 - emake DESTDIR="${D}" HAVE_TCL="$(usex tcl 1 "")" TCLLIBDIR="${EPREFIX}/usr/$(get_libdir)/${P}" install
2067 -
2068 - if use tools && multilib_is_native_abi; then
2069 - install_tool() {
2070 - if [[ -f ".libs/${1}" ]]; then
2071 - newbin ".libs/${1}" "${2}"
2072 - else
2073 - newbin "${1}" "${2}"
2074 - fi
2075 - }
2076 -
2077 - install_tool changeset sqlite3-changeset
2078 - install_tool dbhash sqlite3-db-hash
2079 - install_tool rbu sqlite3-rbu
2080 - install_tool scrub sqlite3-scrub
2081 - install_tool showdb sqlite3-show-db
2082 - install_tool showjournal sqlite3-show-journal
2083 - install_tool showstat4 sqlite3-show-stat4
2084 - install_tool showwal sqlite3-show-wal
2085 - install_tool sqldiff sqlite3-diff
2086 - install_tool sqlite3_analyzer sqlite3-analyzer
2087 -
2088 - unset -f install_tool
2089 - fi
2090 -}
2091 -
2092 -multilib_src_install_all() {
2093 - prune_libtool_files
2094 -
2095 - doman sqlite3.1
2096 -
2097 - if use doc; then
2098 - rm "${WORKDIR}/${PN}-doc-${DOC_PV}/"*.{db,txt}
2099 - (
2100 - docinto html
2101 - dodoc -r "${WORKDIR}/${PN}-doc-${DOC_PV}/"*
2102 - )
2103 - fi
2104 -}
2105
2106 diff --git a/dev-db/sqlite/sqlite-3.15.1.ebuild b/dev-db/sqlite/sqlite-3.15.1.ebuild
2107 deleted file mode 100644
2108 index f35dea15507..00000000000
2109 --- a/dev-db/sqlite/sqlite-3.15.1.ebuild
2110 +++ /dev/null
2111 @@ -1,261 +0,0 @@
2112 -# Copyright 1999-2017 Gentoo Foundation
2113 -# Distributed under the terms of the GNU General Public License v2
2114 -
2115 -EAPI="6"
2116 -
2117 -inherit autotools eutils flag-o-matic multilib multilib-minimal toolchain-funcs versionator
2118 -
2119 -SRC_PV="$(printf "%u%02u%02u%02u" $(get_version_components))"
2120 -DOC_PV="${SRC_PV}"
2121 -# DOC_PV="$(printf "%u%02u%02u00" $(get_version_components $(get_version_component_range 1-3)))"
2122 -
2123 -DESCRIPTION="A SQL Database Engine in a C Library"
2124 -HOMEPAGE="https://sqlite.org/"
2125 -SRC_URI="doc? ( https://sqlite.org/2016/${PN}-doc-${DOC_PV}.zip )
2126 - tcl? ( https://sqlite.org/2016/${PN}-src-${SRC_PV}.zip )
2127 - test? ( https://sqlite.org/2016/${PN}-src-${SRC_PV}.zip )
2128 - tools? ( https://sqlite.org/2016/${PN}-src-${SRC_PV}.zip )
2129 - !tcl? ( !test? ( !tools? ( https://sqlite.org/2016/${PN}-autoconf-${SRC_PV}.tar.gz ) ) )"
2130 -
2131 -LICENSE="public-domain"
2132 -SLOT="3"
2133 -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
2134 -IUSE="debug doc icu +readline secure-delete static-libs tcl test tools"
2135 -
2136 -RDEPEND="icu? ( dev-libs/icu:0=[${MULTILIB_USEDEP}] )
2137 - readline? ( sys-libs/readline:0=[${MULTILIB_USEDEP}] )
2138 - tcl? ( dev-lang/tcl:0=[${MULTILIB_USEDEP}] )
2139 - tools? ( dev-lang/tcl:0=[${MULTILIB_USEDEP}] )"
2140 -DEPEND="${RDEPEND}
2141 - doc? ( app-arch/unzip )
2142 - tcl? ( app-arch/unzip )
2143 - test? (
2144 - app-arch/unzip
2145 - dev-lang/tcl:0[${MULTILIB_USEDEP}]
2146 - )
2147 - tools? ( app-arch/unzip )"
2148 -
2149 -full_tarball() {
2150 - use tcl || use test || use tools
2151 -}
2152 -
2153 -pkg_setup() {
2154 - if full_tarball; then
2155 - S="${WORKDIR}/${PN}-src-${SRC_PV}"
2156 - else
2157 - S="${WORKDIR}/${PN}-autoconf-${SRC_PV}"
2158 - fi
2159 -}
2160 -
2161 -src_prepare() {
2162 - if full_tarball; then
2163 - eapply "${FILESDIR}/${PN}-3.14.0-full_tarball-build.patch"
2164 - eapply "${FILESDIR}/${PN}-3.15.0-full_tarball-tests-icu.patch"
2165 -
2166 - eapply_user
2167 -
2168 - # Fix AC_CHECK_FUNCS.
2169 - # https://mailinglists.sqlite.org/cgi-bin/mailman/private/sqlite-dev/2016-March/002762.html
2170 - sed -e "s/AC_CHECK_FUNCS(.*)/AC_CHECK_FUNCS([fdatasync fullfsync gmtime_r isnan localtime_r localtime_s malloc_usable_size posix_fallocate pread pread64 pwrite pwrite64 strchrnul usleep utime])/" -i configure.ac || die "sed failed"
2171 - else
2172 - eapply "${FILESDIR}/${PN}-3.12.0-nonfull_tarball-build.patch"
2173 -
2174 - eapply_user
2175 -
2176 - # Fix AC_CHECK_FUNCS.
2177 - # https://mailinglists.sqlite.org/cgi-bin/mailman/private/sqlite-dev/2016-March/002762.html
2178 - sed \
2179 - -e "s/AC_CHECK_FUNCS(\[fdatasync.*/AC_CHECK_FUNCS([fdatasync fullfsync gmtime_r isnan localtime_r localtime_s malloc_usable_size posix_fallocate pread pread64 pwrite pwrite64 strchrnul usleep utime])/" \
2180 - -e "/AC_CHECK_FUNCS(posix_fallocate)/d" \
2181 - -i configure.ac || die "sed failed"
2182 - fi
2183 -
2184 - eautoreconf
2185 -
2186 - multilib_copy_sources
2187 -}
2188 -
2189 -multilib_src_configure() {
2190 - local CPPFLAGS="${CPPFLAGS}" options=()
2191 -
2192 - options+=(
2193 - --enable-$(full_tarball && echo load-extension || echo dynamic-extensions)
2194 - --enable-threadsafe
2195 - )
2196 - if ! full_tarball; then
2197 - options+=(--disable-static-shell)
2198 - fi
2199 -
2200 - # Support detection of misuse of SQLite API.
2201 - # https://sqlite.org/compile.html#enable_api_armor
2202 - append-cppflags -DSQLITE_ENABLE_API_ARMOR
2203 -
2204 - # Support column metadata functions.
2205 - # https://sqlite.org/c3ref/column_database_name.html
2206 - append-cppflags -DSQLITE_ENABLE_COLUMN_METADATA
2207 -
2208 - # Support dbstat virtual table.
2209 - # https://sqlite.org/dbstat.html
2210 - append-cppflags -DSQLITE_ENABLE_DBSTAT_VTAB
2211 -
2212 - # Support comments in output of EXPLAIN.
2213 - # https://sqlite.org/compile.html#enable_explain_comments
2214 - append-cppflags -DSQLITE_ENABLE_EXPLAIN_COMMENTS
2215 -
2216 - # Support Full-Text Search versions 3, 4 and 5.
2217 - # https://sqlite.org/fts3.html
2218 - # https://sqlite.org/fts5.html
2219 - append-cppflags -DSQLITE_ENABLE_FTS3 -DSQLITE_ENABLE_FTS3_PARENTHESIS -DSQLITE_ENABLE_FTS4
2220 - options+=(--enable-fts5)
2221 -
2222 - # Support hidden columns.
2223 - append-cppflags -DSQLITE_ENABLE_HIDDEN_COLUMNS
2224 -
2225 - # Support JSON1 extension.
2226 - # https://sqlite.org/json1.html
2227 - append-cppflags -DSQLITE_ENABLE_JSON1
2228 -
2229 - # Support memsys5 memory allocator.
2230 - # https://sqlite.org/malloc.html#memsys5
2231 - append-cppflags -DSQLITE_ENABLE_MEMSYS5
2232 -
2233 - # Support Resumable Bulk Update extension.
2234 - # https://sqlite.org/rbu.html
2235 - append-cppflags -DSQLITE_ENABLE_RBU
2236 -
2237 - # Support R*Trees.
2238 - # https://sqlite.org/rtree.html
2239 - append-cppflags -DSQLITE_ENABLE_RTREE
2240 -
2241 - # Support scan status functions.
2242 - # https://sqlite.org/c3ref/stmt_scanstatus.html
2243 - # https://sqlite.org/c3ref/stmt_scanstatus_reset.html
2244 - append-cppflags -DSQLITE_ENABLE_STMT_SCANSTATUS
2245 -
2246 - # Support Session extension.
2247 - # https://sqlite.org/sessionintro.html
2248 - options+=(--enable-session)
2249 -
2250 - # Support unknown() function.
2251 - # https://sqlite.org/compile.html#enable_unknown_sql_function
2252 - append-cppflags -DSQLITE_ENABLE_UNKNOWN_SQL_FUNCTION
2253 -
2254 - # Support unlock notification.
2255 - # https://sqlite.org/unlock_notify.html
2256 - append-cppflags -DSQLITE_ENABLE_UNLOCK_NOTIFY
2257 -
2258 - # Support soundex() function.
2259 - # https://sqlite.org/lang_corefunc.html#soundex
2260 - append-cppflags -DSQLITE_SOUNDEX
2261 -
2262 - # debug USE flag.
2263 - if full_tarball; then
2264 - options+=($(use_enable debug))
2265 - else
2266 - if use debug; then
2267 - append-cppflags -DSQLITE_DEBUG
2268 - else
2269 - append-cppflags -DNDEBUG
2270 - fi
2271 - fi
2272 -
2273 - # icu USE flag.
2274 - if use icu; then
2275 - # Support ICU extension.
2276 - # https://sqlite.org/compile.html#enable_icu
2277 - append-cppflags -DSQLITE_ENABLE_ICU
2278 - if full_tarball; then
2279 - sed -e "s/^TLIBS = @LIBS@/& -licui18n -licuuc/" -i Makefile.in || die "sed failed"
2280 - else
2281 - sed -e "s/^LIBS = @LIBS@/& -licui18n -licuuc/" -i Makefile.in || die "sed failed"
2282 - fi
2283 - fi
2284 -
2285 - # readline USE flag.
2286 - options+=(
2287 - --disable-editline
2288 - $(use_enable readline)
2289 - )
2290 - if full_tarball && use readline; then
2291 - options+=(--with-readline-inc="-I${EPREFIX}/usr/include/readline")
2292 - fi
2293 -
2294 - # secure-delete USE flag.
2295 - if use secure-delete; then
2296 - # Enable secure_delete pragma by default.
2297 - # https://sqlite.org/pragma.html#pragma_secure_delete
2298 - append-cppflags -DSQLITE_SECURE_DELETE
2299 - fi
2300 -
2301 - # static-libs USE flag.
2302 - options+=($(use_enable static-libs static))
2303 -
2304 - # tcl, test, tools USE flags.
2305 - if full_tarball; then
2306 - options+=(--enable-tcl)
2307 - fi
2308 -
2309 - if [[ "${CHOST}" == *-mint* ]]; then
2310 - append-cppflags -DSQLITE_OMIT_WAL
2311 - fi
2312 -
2313 - econf "${options[@]}"
2314 -}
2315 -
2316 -multilib_src_compile() {
2317 - emake HAVE_TCL="$(usex tcl 1 "")" TCLLIBDIR="${EPREFIX}/usr/$(get_libdir)/${P}"
2318 -
2319 - if use tools && multilib_is_native_abi; then
2320 - emake changeset dbhash rbu scrub showdb showjournal showstat4 showwal sqldiff sqlite3_analyzer
2321 - fi
2322 -}
2323 -
2324 -multilib_src_test() {
2325 - if [[ "${EUID}" -eq 0 ]]; then
2326 - ewarn "Skipping tests due to root permissions"
2327 - return
2328 - fi
2329 -
2330 - emake HAVE_TCL="$(usex tcl 1 "")" $(use debug && echo fulltest || echo test)
2331 -}
2332 -
2333 -multilib_src_install() {
2334 - emake DESTDIR="${D}" HAVE_TCL="$(usex tcl 1 "")" TCLLIBDIR="${EPREFIX}/usr/$(get_libdir)/${P}" install
2335 -
2336 - if use tools && multilib_is_native_abi; then
2337 - install_tool() {
2338 - if [[ -f ".libs/${1}" ]]; then
2339 - newbin ".libs/${1}" "${2}"
2340 - else
2341 - newbin "${1}" "${2}"
2342 - fi
2343 - }
2344 -
2345 - install_tool changeset sqlite3-changeset
2346 - install_tool dbhash sqlite3-db-hash
2347 - install_tool rbu sqlite3-rbu
2348 - install_tool scrub sqlite3-scrub
2349 - install_tool showdb sqlite3-show-db
2350 - install_tool showjournal sqlite3-show-journal
2351 - install_tool showstat4 sqlite3-show-stat4
2352 - install_tool showwal sqlite3-show-wal
2353 - install_tool sqldiff sqlite3-diff
2354 - install_tool sqlite3_analyzer sqlite3-analyzer
2355 -
2356 - unset -f install_tool
2357 - fi
2358 -}
2359 -
2360 -multilib_src_install_all() {
2361 - prune_libtool_files
2362 -
2363 - doman sqlite3.1
2364 -
2365 - if use doc; then
2366 - rm "${WORKDIR}/${PN}-doc-${DOC_PV}/"*.{db,txt}
2367 - (
2368 - docinto html
2369 - dodoc -r "${WORKDIR}/${PN}-doc-${DOC_PV}/"*
2370 - )
2371 - fi
2372 -}
2373
2374 diff --git a/dev-db/sqlite/sqlite-3.15.2.ebuild b/dev-db/sqlite/sqlite-3.15.2.ebuild
2375 deleted file mode 100644
2376 index 9730b9c2520..00000000000
2377 --- a/dev-db/sqlite/sqlite-3.15.2.ebuild
2378 +++ /dev/null
2379 @@ -1,260 +0,0 @@
2380 -# Copyright 1999-2017 Gentoo Foundation
2381 -# Distributed under the terms of the GNU General Public License v2
2382 -
2383 -EAPI="6"
2384 -
2385 -inherit autotools eutils flag-o-matic multilib multilib-minimal toolchain-funcs versionator
2386 -
2387 -SRC_PV="$(printf "%u%02u%02u%02u" $(get_version_components))"
2388 -DOC_PV="${SRC_PV}"
2389 -# DOC_PV="$(printf "%u%02u%02u00" $(get_version_components $(get_version_component_range 1-3)))"
2390 -
2391 -DESCRIPTION="A SQL Database Engine in a C Library"
2392 -HOMEPAGE="https://sqlite.org/"
2393 -SRC_URI="doc? ( https://sqlite.org/2016/${PN}-doc-${DOC_PV}.zip )
2394 - tcl? ( https://sqlite.org/2016/${PN}-src-${SRC_PV}.zip )
2395 - test? ( https://sqlite.org/2016/${PN}-src-${SRC_PV}.zip )
2396 - tools? ( https://sqlite.org/2016/${PN}-src-${SRC_PV}.zip )
2397 - !tcl? ( !test? ( !tools? ( https://sqlite.org/2016/${PN}-autoconf-${SRC_PV}.tar.gz ) ) )"
2398 -
2399 -LICENSE="public-domain"
2400 -SLOT="3"
2401 -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
2402 -IUSE="debug doc icu +readline secure-delete static-libs tcl test tools"
2403 -
2404 -RDEPEND="icu? ( dev-libs/icu:0=[${MULTILIB_USEDEP}] )
2405 - readline? ( sys-libs/readline:0=[${MULTILIB_USEDEP}] )
2406 - tcl? ( dev-lang/tcl:0=[${MULTILIB_USEDEP}] )
2407 - tools? ( dev-lang/tcl:0=[${MULTILIB_USEDEP}] )"
2408 -DEPEND="${RDEPEND}
2409 - doc? ( app-arch/unzip )
2410 - tcl? ( app-arch/unzip )
2411 - test? (
2412 - app-arch/unzip
2413 - dev-lang/tcl:0[${MULTILIB_USEDEP}]
2414 - )
2415 - tools? ( app-arch/unzip )"
2416 -
2417 -full_tarball() {
2418 - use tcl || use test || use tools
2419 -}
2420 -
2421 -pkg_setup() {
2422 - if full_tarball; then
2423 - S="${WORKDIR}/${PN}-src-${SRC_PV}"
2424 - else
2425 - S="${WORKDIR}/${PN}-autoconf-${SRC_PV}"
2426 - fi
2427 -}
2428 -
2429 -src_prepare() {
2430 - if full_tarball; then
2431 - eapply "${FILESDIR}/${PN}-3.14.0-full_tarball-build.patch"
2432 -
2433 - eapply_user
2434 -
2435 - # Fix AC_CHECK_FUNCS.
2436 - # https://mailinglists.sqlite.org/cgi-bin/mailman/private/sqlite-dev/2016-March/002762.html
2437 - sed -e "s/AC_CHECK_FUNCS(.*)/AC_CHECK_FUNCS([fdatasync fullfsync gmtime_r isnan localtime_r localtime_s malloc_usable_size posix_fallocate pread pread64 pwrite pwrite64 strchrnul usleep utime])/" -i configure.ac || die "sed failed"
2438 - else
2439 - eapply "${FILESDIR}/${PN}-3.12.0-nonfull_tarball-build.patch"
2440 -
2441 - eapply_user
2442 -
2443 - # Fix AC_CHECK_FUNCS.
2444 - # https://mailinglists.sqlite.org/cgi-bin/mailman/private/sqlite-dev/2016-March/002762.html
2445 - sed \
2446 - -e "s/AC_CHECK_FUNCS(\[fdatasync.*/AC_CHECK_FUNCS([fdatasync fullfsync gmtime_r isnan localtime_r localtime_s malloc_usable_size posix_fallocate pread pread64 pwrite pwrite64 strchrnul usleep utime])/" \
2447 - -e "/AC_CHECK_FUNCS(posix_fallocate)/d" \
2448 - -i configure.ac || die "sed failed"
2449 - fi
2450 -
2451 - eautoreconf
2452 -
2453 - multilib_copy_sources
2454 -}
2455 -
2456 -multilib_src_configure() {
2457 - local CPPFLAGS="${CPPFLAGS}" options=()
2458 -
2459 - options+=(
2460 - --enable-$(full_tarball && echo load-extension || echo dynamic-extensions)
2461 - --enable-threadsafe
2462 - )
2463 - if ! full_tarball; then
2464 - options+=(--disable-static-shell)
2465 - fi
2466 -
2467 - # Support detection of misuse of SQLite API.
2468 - # https://sqlite.org/compile.html#enable_api_armor
2469 - append-cppflags -DSQLITE_ENABLE_API_ARMOR
2470 -
2471 - # Support column metadata functions.
2472 - # https://sqlite.org/c3ref/column_database_name.html
2473 - append-cppflags -DSQLITE_ENABLE_COLUMN_METADATA
2474 -
2475 - # Support dbstat virtual table.
2476 - # https://sqlite.org/dbstat.html
2477 - append-cppflags -DSQLITE_ENABLE_DBSTAT_VTAB
2478 -
2479 - # Support comments in output of EXPLAIN.
2480 - # https://sqlite.org/compile.html#enable_explain_comments
2481 - append-cppflags -DSQLITE_ENABLE_EXPLAIN_COMMENTS
2482 -
2483 - # Support Full-Text Search versions 3, 4 and 5.
2484 - # https://sqlite.org/fts3.html
2485 - # https://sqlite.org/fts5.html
2486 - append-cppflags -DSQLITE_ENABLE_FTS3 -DSQLITE_ENABLE_FTS3_PARENTHESIS -DSQLITE_ENABLE_FTS4
2487 - options+=(--enable-fts5)
2488 -
2489 - # Support hidden columns.
2490 - append-cppflags -DSQLITE_ENABLE_HIDDEN_COLUMNS
2491 -
2492 - # Support JSON1 extension.
2493 - # https://sqlite.org/json1.html
2494 - append-cppflags -DSQLITE_ENABLE_JSON1
2495 -
2496 - # Support memsys5 memory allocator.
2497 - # https://sqlite.org/malloc.html#memsys5
2498 - append-cppflags -DSQLITE_ENABLE_MEMSYS5
2499 -
2500 - # Support Resumable Bulk Update extension.
2501 - # https://sqlite.org/rbu.html
2502 - append-cppflags -DSQLITE_ENABLE_RBU
2503 -
2504 - # Support R*Trees.
2505 - # https://sqlite.org/rtree.html
2506 - append-cppflags -DSQLITE_ENABLE_RTREE
2507 -
2508 - # Support scan status functions.
2509 - # https://sqlite.org/c3ref/stmt_scanstatus.html
2510 - # https://sqlite.org/c3ref/stmt_scanstatus_reset.html
2511 - append-cppflags -DSQLITE_ENABLE_STMT_SCANSTATUS
2512 -
2513 - # Support Session extension.
2514 - # https://sqlite.org/sessionintro.html
2515 - options+=(--enable-session)
2516 -
2517 - # Support unknown() function.
2518 - # https://sqlite.org/compile.html#enable_unknown_sql_function
2519 - append-cppflags -DSQLITE_ENABLE_UNKNOWN_SQL_FUNCTION
2520 -
2521 - # Support unlock notification.
2522 - # https://sqlite.org/unlock_notify.html
2523 - append-cppflags -DSQLITE_ENABLE_UNLOCK_NOTIFY
2524 -
2525 - # Support soundex() function.
2526 - # https://sqlite.org/lang_corefunc.html#soundex
2527 - append-cppflags -DSQLITE_SOUNDEX
2528 -
2529 - # debug USE flag.
2530 - if full_tarball; then
2531 - options+=($(use_enable debug))
2532 - else
2533 - if use debug; then
2534 - append-cppflags -DSQLITE_DEBUG
2535 - else
2536 - append-cppflags -DNDEBUG
2537 - fi
2538 - fi
2539 -
2540 - # icu USE flag.
2541 - if use icu; then
2542 - # Support ICU extension.
2543 - # https://sqlite.org/compile.html#enable_icu
2544 - append-cppflags -DSQLITE_ENABLE_ICU
2545 - if full_tarball; then
2546 - sed -e "s/^TLIBS = @LIBS@/& -licui18n -licuuc/" -i Makefile.in || die "sed failed"
2547 - else
2548 - sed -e "s/^LIBS = @LIBS@/& -licui18n -licuuc/" -i Makefile.in || die "sed failed"
2549 - fi
2550 - fi
2551 -
2552 - # readline USE flag.
2553 - options+=(
2554 - --disable-editline
2555 - $(use_enable readline)
2556 - )
2557 - if full_tarball && use readline; then
2558 - options+=(--with-readline-inc="-I${EPREFIX}/usr/include/readline")
2559 - fi
2560 -
2561 - # secure-delete USE flag.
2562 - if use secure-delete; then
2563 - # Enable secure_delete pragma by default.
2564 - # https://sqlite.org/pragma.html#pragma_secure_delete
2565 - append-cppflags -DSQLITE_SECURE_DELETE
2566 - fi
2567 -
2568 - # static-libs USE flag.
2569 - options+=($(use_enable static-libs static))
2570 -
2571 - # tcl, test, tools USE flags.
2572 - if full_tarball; then
2573 - options+=(--enable-tcl)
2574 - fi
2575 -
2576 - if [[ "${CHOST}" == *-mint* ]]; then
2577 - append-cppflags -DSQLITE_OMIT_WAL
2578 - fi
2579 -
2580 - econf "${options[@]}"
2581 -}
2582 -
2583 -multilib_src_compile() {
2584 - emake HAVE_TCL="$(usex tcl 1 "")" TCLLIBDIR="${EPREFIX}/usr/$(get_libdir)/${P}"
2585 -
2586 - if use tools && multilib_is_native_abi; then
2587 - emake changeset dbhash rbu scrub showdb showjournal showstat4 showwal sqldiff sqlite3_analyzer
2588 - fi
2589 -}
2590 -
2591 -multilib_src_test() {
2592 - if [[ "${EUID}" -eq 0 ]]; then
2593 - ewarn "Skipping tests due to root permissions"
2594 - return
2595 - fi
2596 -
2597 - emake HAVE_TCL="$(usex tcl 1 "")" $(use debug && echo fulltest || echo test)
2598 -}
2599 -
2600 -multilib_src_install() {
2601 - emake DESTDIR="${D}" HAVE_TCL="$(usex tcl 1 "")" TCLLIBDIR="${EPREFIX}/usr/$(get_libdir)/${P}" install
2602 -
2603 - if use tools && multilib_is_native_abi; then
2604 - install_tool() {
2605 - if [[ -f ".libs/${1}" ]]; then
2606 - newbin ".libs/${1}" "${2}"
2607 - else
2608 - newbin "${1}" "${2}"
2609 - fi
2610 - }
2611 -
2612 - install_tool changeset sqlite3-changeset
2613 - install_tool dbhash sqlite3-db-hash
2614 - install_tool rbu sqlite3-rbu
2615 - install_tool scrub sqlite3-scrub
2616 - install_tool showdb sqlite3-show-db
2617 - install_tool showjournal sqlite3-show-journal
2618 - install_tool showstat4 sqlite3-show-stat4
2619 - install_tool showwal sqlite3-show-wal
2620 - install_tool sqldiff sqlite3-diff
2621 - install_tool sqlite3_analyzer sqlite3-analyzer
2622 -
2623 - unset -f install_tool
2624 - fi
2625 -}
2626 -
2627 -multilib_src_install_all() {
2628 - prune_libtool_files
2629 -
2630 - doman sqlite3.1
2631 -
2632 - if use doc; then
2633 - rm "${WORKDIR}/${PN}-doc-${DOC_PV}/"*.{db,txt}
2634 - (
2635 - docinto html
2636 - dodoc -r "${WORKDIR}/${PN}-doc-${DOC_PV}/"*
2637 - )
2638 - fi
2639 -}