1 |
commit: b347b5f48b46ba8f2fbb7697dada2086d51bd26f |
2 |
Author: Arfrever Frehtes Taifersar Arahesis <Arfrever <AT> Apache <DOT> Org> |
3 |
AuthorDate: Sat Jun 3 17:29:43 2017 +0000 |
4 |
Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Jun 3 19:26:40 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b347b5f4 |
7 |
|
8 |
dev-db/sqlite: Version bump (3.19.2). |
9 |
|
10 |
dev-db/sqlite/Manifest | 3 + |
11 |
dev-db/sqlite/sqlite-3.19.2.ebuild | 265 +++++++++++++++++++++++++++++++++++++ |
12 |
2 files changed, 268 insertions(+) |
13 |
|
14 |
diff --git a/dev-db/sqlite/Manifest b/dev-db/sqlite/Manifest |
15 |
index 1dd06bb5ced..172662cc631 100644 |
16 |
--- a/dev-db/sqlite/Manifest |
17 |
+++ b/dev-db/sqlite/Manifest |
18 |
@@ -1,9 +1,12 @@ |
19 |
DIST sqlite-autoconf-3160200.tar.gz 2508179 SHA256 65cc0c3e9366f50c0679c5ccd31432cea894bc4a3e8947dabab88c8693263615 SHA512 83bdd588504f265bbe93fb98a33a292aff5618c14f94d521c8557efbb5f777e82dfbb2d186cbfd4c628ee9522b1fcb73857e24ca2318fa34af3a3f9540e72b9a WHIRLPOOL 850a5051739f65eade0ee5740641a0503870f88d1ebdb40cab36b68d956896270ed59e387d57db74eede5ecd7fc9b3c14bc5841ff02e17eb50abc4701eba18fc |
20 |
DIST sqlite-autoconf-3170000.tar.gz 2515143 SHA256 a4e485ad3a16e054765baf6371826b5000beed07e626510896069c0bf013874c SHA512 bebf2693ade1c99b6a178bbe663f64911bf7751932a2524506994cbbb19ab254e7febe3693a76084e55853c1ea85db9e4ece87192422583555fbe569915a2ca8 WHIRLPOOL c3ddeb9691470dfd10950ef36bca8f05f06faa171e3ee87da66d431ba364b7dd903b1350b8ab1aae445a2696ea56dd3f0c50e07d25bc83a09d673a9b92c84e3f |
21 |
DIST sqlite-autoconf-3180000.tar.gz 2533004 SHA256 3757612463976e7d08c5e9f0af3021613fc24bbcfe1c51197d6776b9ece9ac5c SHA512 4c2efda1d63d1849f7a351cc57c02cc1820efe3c19f88460a131a1d6ae4f7411e4b7672a5581055e581093df29f65cebd9ff5b24125c18802523b17477dce1ef WHIRLPOOL 5424d028af1649cedeb9192d86939753000bb94676b0578d5bdd33591ddd064f2e9ca60a1abc6e185a8fbbfd13c04361e7bfd82945b3b7c01073b8e79e985031 |
22 |
+DIST sqlite-autoconf-3190200.tar.gz 2542613 SHA256 ca5361fb01cc3ad63d6fd4eb2cb0b6398e629595896d3558f7e121d37dac2ffc SHA512 fc9fbb76a741a22d620902868d5db6c8954db8a2692c8e91080ab96f41b4e18a4d27aa8f549c8fac62aaf5ad20c908abd01ecc0fdf7204310bf0cb6d1a2e5e14 WHIRLPOOL 003b4600a4689d94b690f9122e749401371deb39e0a04ffcdf161fc72b8d89349a7e9cf9883d54064c23ea08a72cac190d1d14fb586349c528a033d72b139a84 |
23 |
DIST sqlite-doc-3160200.zip 5521023 SHA256 c13ffbb6019f3849b251c22358f31ccb862a842c0a2379f552f2935600157dcb SHA512 b79d21074d1ab154e3b324fb2943f24321ad5cdbc6e2030f1d21940ae46538462af049e0e0cd7c6cf96dec2c59708eaf70aa4cb3c84ba1a0e87238ffcf31fca2 WHIRLPOOL 4d07279b8f186c4a015324021d60f3e76840594a35a2466cc023cd3ef32b5b01572d8a83db5d96f7281c617a8384485bdef60d390e1c12c4ecbc7e0223e1a194 |
24 |
DIST sqlite-doc-3170000.zip 5533032 SHA256 3102d9eab879074776216357e4c9e272f63d0cda975a0819ec5baba5e0922ff6 SHA512 6a7813be301416dc59401b7732733f44efad60b458ded0f4ed8d845aab0843a1123dd20d1e6f209dd32184a87bcd7e68e213e3676c43d1d05d2df5acc2c64b74 WHIRLPOOL dc1c9b6802985be34ac7819e08883c456a0a76fb1822eff46b26613760063b72888d34323cf15f0f48be69555c0b07b99424a85f29ac580c4ad8fa46b990b723 |
25 |
DIST sqlite-doc-3180000.zip 5552381 SHA256 6f763eba9f51cb1096d1d40fbdd7ff974203060ddb892fc735adb2d7d42f1dad SHA512 7b65130cb2174d823842cddc912432d206044a8b276fdc2eef437854de7d0b05b8eb5d7aec0ead5c3f88bb7788ae5f1c42ffb1e43ab00774a68f6f7fea72d517 WHIRLPOOL be95f25105aea7f553145b371d64d1192057a2931551758bea418dd41b2ead6e9c07368347320bb041a59051c89ca2c84e3cd4e1f95806cad30dca3adec6042b |
26 |
+DIST sqlite-doc-3190200.zip 5577171 SHA256 0d136abeea8d045ab7acef64ce84028dacb418584fa5a259e7ab4233ef21ff46 SHA512 f81b8719a54cd5e7f993f3dbd76821fc39651ef20b12cfd19c6d58fcb948e7fa00aa97e2f25cab421ba85d27d10b12822a87d1ae49e33c004c83b8f68cbc781c WHIRLPOOL fd8d25184a1e291ea597d42ce76ce5959db8a974e90934e637851806021d054fdda0a37d33db159478158331d52024b8ad5de11410dad5eb595b590ddda1c657 |
27 |
DIST sqlite-src-3160200.zip 10081950 SHA256 ee77c2cc5cc4a7b0a746a1d4496f7aee0d71c558a3bbfcf8e9e0b35416910337 SHA512 db49551c09830cf4d8997f0a623deeed9f85db5f27e6ca9d8aa5812a23c1466bbcdf8bb56cf009511f72cafec8f09a305127123f54d90437b28770dac34a0897 WHIRLPOOL b8cc52d5111bde34dae02391be8d83f9e703672b2101b36f5409e9acc23743c00561b02bd14b098e29972077fa1866a506d6343b58e4897ca07dac0bb60f4367 |
28 |
DIST sqlite-src-3170000.zip 10120844 SHA256 86754bee6bcaf1f2a6bf4a02676eb3a43d22d4e5d8339e217424cb2be6b748c3 SHA512 e60381de33fbf566507454e4f1dfb7d3ada554e5c919f05f0dd2f96a6f266adaa62681437f21fdea1c24de57fb6141b798f97854918faa189b507f12f11e0d36 WHIRLPOOL 535c598f7bb9ddbecdd1ca841c0ecf398831c494c99c38542d1cbb756d8333260d6891aa36167aeba75df83fbaf402465dc65c9b3a7fb6685fa54420cb1a1342 |
29 |
DIST sqlite-src-3180000.zip 10166686 SHA256 eab4d137abd5aa1164244a5d558c9a02122071daf36984b236f8441d749b9ba6 SHA512 b82c5388066f2e905c067d75e890bf2ff03a522733b8c8e0ebdfffe1804d7ecb39b72f6d808fce59133ac8c645f8b6e163e3dff7bbb0d66bbe8748e069ca7a84 WHIRLPOOL b92890b587761dfd550b39fbd64c4fddaf58e495c0f2b7526a624c3415147494648add3fa6968a09411e73c9b0653ec541a49a34daeb7ad2ae4840e829528380 |
30 |
+DIST sqlite-src-3190200.zip 10193843 SHA256 899c370b162a3b1febc644be5363433789a629bd07f5f80231defb5603d1abc1 SHA512 026b97bfc73b6ecf4c48b344a13adfb1c484d76a4fe78fd06bc4d175bb516c324483c6a647eaffc989469b3134c1874a1869b2d6a7d4112e685d75317992deb1 WHIRLPOOL 8af9215bfb2e2c2b418ff19f5e6a31d9ce68c47a3ec5d31fa2747e6de1936a32844fa6d500d876f77038a50dd332d73740594a2a7a9141eff32bc5bf523c5966 |
31 |
|
32 |
diff --git a/dev-db/sqlite/sqlite-3.19.2.ebuild b/dev-db/sqlite/sqlite-3.19.2.ebuild |
33 |
new file mode 100644 |
34 |
index 00000000000..cb6dc5fdf17 |
35 |
--- /dev/null |
36 |
+++ b/dev-db/sqlite/sqlite-3.19.2.ebuild |
37 |
@@ -0,0 +1,265 @@ |
38 |
+# Copyright 1999-2017 Gentoo Foundation |
39 |
+# Distributed under the terms of the GNU General Public License v2 |
40 |
+ |
41 |
+EAPI="6" |
42 |
+ |
43 |
+inherit autotools eutils flag-o-matic multilib multilib-minimal toolchain-funcs versionator |
44 |
+ |
45 |
+SRC_PV="$(printf "%u%02u%02u%02u" $(get_version_components))" |
46 |
+DOC_PV="${SRC_PV}" |
47 |
+# DOC_PV="$(printf "%u%02u%02u00" $(get_version_components $(get_version_component_range 1-3)))" |
48 |
+ |
49 |
+DESCRIPTION="A SQL Database Engine in a C Library" |
50 |
+HOMEPAGE="https://sqlite.org/" |
51 |
+SRC_URI="doc? ( https://sqlite.org/2017/${PN}-doc-${DOC_PV}.zip ) |
52 |
+ tcl? ( https://sqlite.org/2017/${PN}-src-${SRC_PV}.zip ) |
53 |
+ test? ( https://sqlite.org/2017/${PN}-src-${SRC_PV}.zip ) |
54 |
+ tools? ( https://sqlite.org/2017/${PN}-src-${SRC_PV}.zip ) |
55 |
+ !tcl? ( !test? ( !tools? ( https://sqlite.org/2017/${PN}-autoconf-${SRC_PV}.tar.gz ) ) )" |
56 |
+ |
57 |
+LICENSE="public-domain" |
58 |
+SLOT="3" |
59 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~x64-cygwin ~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" |
60 |
+IUSE="debug doc icu +readline secure-delete static-libs tcl test tools" |
61 |
+ |
62 |
+RDEPEND="icu? ( dev-libs/icu:0=[${MULTILIB_USEDEP}] ) |
63 |
+ readline? ( sys-libs/readline:0=[${MULTILIB_USEDEP}] ) |
64 |
+ tcl? ( dev-lang/tcl:0=[${MULTILIB_USEDEP}] ) |
65 |
+ tools? ( dev-lang/tcl:0=[${MULTILIB_USEDEP}] )" |
66 |
+DEPEND="${RDEPEND} |
67 |
+ doc? ( app-arch/unzip ) |
68 |
+ tcl? ( app-arch/unzip ) |
69 |
+ test? ( |
70 |
+ app-arch/unzip |
71 |
+ dev-lang/tcl:0[${MULTILIB_USEDEP}] |
72 |
+ ) |
73 |
+ tools? ( app-arch/unzip )" |
74 |
+ |
75 |
+full_tarball() { |
76 |
+ use tcl || use test || use tools |
77 |
+} |
78 |
+ |
79 |
+pkg_setup() { |
80 |
+ if full_tarball; then |
81 |
+ S="${WORKDIR}/${PN}-src-${SRC_PV}" |
82 |
+ else |
83 |
+ S="${WORKDIR}/${PN}-autoconf-${SRC_PV}" |
84 |
+ fi |
85 |
+} |
86 |
+ |
87 |
+src_prepare() { |
88 |
+ if full_tarball; then |
89 |
+ eapply -p0 "${FILESDIR}/${PN}-3.18.0-full_tarball-build.patch" |
90 |
+ |
91 |
+ eapply_user |
92 |
+ |
93 |
+ # Fix AC_CHECK_FUNCS. |
94 |
+ # https://mailinglists.sqlite.org/cgi-bin/mailman/private/sqlite-dev/2016-March/002762.html |
95 |
+ 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" |
96 |
+ |
97 |
+ # Fix references to $(OPT_FEATURE_FLAGS). |
98 |
+ # https://sqlite.org/src/info/43ce3bd3a4b41ea7 |
99 |
+ sed -e "s/OPT_FEATURE_FLAGS=\"\$(OPT_FEATURE_FLAGS)/OPT_FEATURE_FLAGS=\"\${OPT_FEATURE_FLAGS}/" -i configure.ac || die "sed failed" |
100 |
+ else |
101 |
+ eapply -p0 "${FILESDIR}/${PN}-3.16.0-nonfull_tarball-build.patch" |
102 |
+ |
103 |
+ eapply_user |
104 |
+ |
105 |
+ # Fix AC_CHECK_FUNCS. |
106 |
+ # https://mailinglists.sqlite.org/cgi-bin/mailman/private/sqlite-dev/2016-March/002762.html |
107 |
+ sed \ |
108 |
+ -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])/" \ |
109 |
+ -e "/AC_CHECK_FUNCS(posix_fallocate)/d" \ |
110 |
+ -i configure.ac || die "sed failed" |
111 |
+ fi |
112 |
+ |
113 |
+ eautoreconf |
114 |
+ |
115 |
+ multilib_copy_sources |
116 |
+} |
117 |
+ |
118 |
+multilib_src_configure() { |
119 |
+ local CPPFLAGS="${CPPFLAGS}" options=() |
120 |
+ |
121 |
+ options+=( |
122 |
+ --enable-$(full_tarball && echo load-extension || echo dynamic-extensions) |
123 |
+ --enable-threadsafe |
124 |
+ ) |
125 |
+ if ! full_tarball; then |
126 |
+ options+=(--disable-static-shell) |
127 |
+ fi |
128 |
+ |
129 |
+ # Support detection of misuse of SQLite API. |
130 |
+ # https://sqlite.org/compile.html#enable_api_armor |
131 |
+ append-cppflags -DSQLITE_ENABLE_API_ARMOR |
132 |
+ |
133 |
+ # Support column metadata functions. |
134 |
+ # https://sqlite.org/c3ref/column_database_name.html |
135 |
+ append-cppflags -DSQLITE_ENABLE_COLUMN_METADATA |
136 |
+ |
137 |
+ # Support dbstat virtual table. |
138 |
+ # https://sqlite.org/dbstat.html |
139 |
+ append-cppflags -DSQLITE_ENABLE_DBSTAT_VTAB |
140 |
+ |
141 |
+ # Support comments in output of EXPLAIN. |
142 |
+ # https://sqlite.org/compile.html#enable_explain_comments |
143 |
+ append-cppflags -DSQLITE_ENABLE_EXPLAIN_COMMENTS |
144 |
+ |
145 |
+ # Support Full-Text Search versions 3, 4 and 5. |
146 |
+ # https://sqlite.org/fts3.html |
147 |
+ # https://sqlite.org/fts5.html |
148 |
+ append-cppflags -DSQLITE_ENABLE_FTS3 -DSQLITE_ENABLE_FTS3_PARENTHESIS -DSQLITE_ENABLE_FTS4 |
149 |
+ options+=(--enable-fts5) |
150 |
+ |
151 |
+ # Support hidden columns. |
152 |
+ append-cppflags -DSQLITE_ENABLE_HIDDEN_COLUMNS |
153 |
+ |
154 |
+ # Support JSON1 extension. |
155 |
+ # https://sqlite.org/json1.html |
156 |
+ append-cppflags -DSQLITE_ENABLE_JSON1 |
157 |
+ |
158 |
+ # Support memsys5 memory allocator. |
159 |
+ # https://sqlite.org/malloc.html#memsys5 |
160 |
+ append-cppflags -DSQLITE_ENABLE_MEMSYS5 |
161 |
+ |
162 |
+ # Support Resumable Bulk Update extension. |
163 |
+ # https://sqlite.org/rbu.html |
164 |
+ append-cppflags -DSQLITE_ENABLE_RBU |
165 |
+ |
166 |
+ # Support R*Trees. |
167 |
+ # https://sqlite.org/rtree.html |
168 |
+ append-cppflags -DSQLITE_ENABLE_RTREE |
169 |
+ |
170 |
+ # Support scan status functions. |
171 |
+ # https://sqlite.org/c3ref/stmt_scanstatus.html |
172 |
+ # https://sqlite.org/c3ref/stmt_scanstatus_reset.html |
173 |
+ append-cppflags -DSQLITE_ENABLE_STMT_SCANSTATUS |
174 |
+ |
175 |
+ # Support Session extension. |
176 |
+ # https://sqlite.org/sessionintro.html |
177 |
+ options+=(--enable-session) |
178 |
+ |
179 |
+ # Support unknown() function. |
180 |
+ # https://sqlite.org/compile.html#enable_unknown_sql_function |
181 |
+ append-cppflags -DSQLITE_ENABLE_UNKNOWN_SQL_FUNCTION |
182 |
+ |
183 |
+ # Support unlock notification. |
184 |
+ # https://sqlite.org/unlock_notify.html |
185 |
+ append-cppflags -DSQLITE_ENABLE_UNLOCK_NOTIFY |
186 |
+ |
187 |
+ # Support soundex() function. |
188 |
+ # https://sqlite.org/lang_corefunc.html#soundex |
189 |
+ append-cppflags -DSQLITE_SOUNDEX |
190 |
+ |
191 |
+ # debug USE flag. |
192 |
+ if full_tarball; then |
193 |
+ options+=($(use_enable debug)) |
194 |
+ else |
195 |
+ if use debug; then |
196 |
+ append-cppflags -DSQLITE_DEBUG |
197 |
+ else |
198 |
+ append-cppflags -DNDEBUG |
199 |
+ fi |
200 |
+ fi |
201 |
+ |
202 |
+ # icu USE flag. |
203 |
+ if use icu; then |
204 |
+ # Support ICU extension. |
205 |
+ # https://sqlite.org/compile.html#enable_icu |
206 |
+ append-cppflags -DSQLITE_ENABLE_ICU |
207 |
+ if full_tarball; then |
208 |
+ sed -e "s/^TLIBS = @LIBS@/& -licui18n -licuuc/" -i Makefile.in || die "sed failed" |
209 |
+ else |
210 |
+ sed -e "s/^LIBS = @LIBS@/& -licui18n -licuuc/" -i Makefile.in || die "sed failed" |
211 |
+ fi |
212 |
+ fi |
213 |
+ |
214 |
+ # readline USE flag. |
215 |
+ options+=( |
216 |
+ --disable-editline |
217 |
+ $(use_enable readline) |
218 |
+ ) |
219 |
+ if full_tarball && use readline; then |
220 |
+ options+=(--with-readline-inc="-I${EPREFIX}/usr/include/readline") |
221 |
+ fi |
222 |
+ |
223 |
+ # secure-delete USE flag. |
224 |
+ if use secure-delete; then |
225 |
+ # Enable secure_delete pragma by default. |
226 |
+ # https://sqlite.org/pragma.html#pragma_secure_delete |
227 |
+ append-cppflags -DSQLITE_SECURE_DELETE |
228 |
+ fi |
229 |
+ |
230 |
+ # static-libs USE flag. |
231 |
+ options+=($(use_enable static-libs static)) |
232 |
+ |
233 |
+ # tcl, test, tools USE flags. |
234 |
+ if full_tarball; then |
235 |
+ options+=(--enable-tcl) |
236 |
+ fi |
237 |
+ |
238 |
+ if [[ "${CHOST}" == *-mint* ]]; then |
239 |
+ append-cppflags -DSQLITE_OMIT_WAL |
240 |
+ fi |
241 |
+ |
242 |
+ econf "${options[@]}" |
243 |
+} |
244 |
+ |
245 |
+multilib_src_compile() { |
246 |
+ emake HAVE_TCL="$(usex tcl 1 "")" TCLLIBDIR="${EPREFIX}/usr/$(get_libdir)/${P}" |
247 |
+ |
248 |
+ if use tools && multilib_is_native_abi; then |
249 |
+ emake changeset dbdump dbhash rbu scrub showdb showjournal showstat4 showwal sqldiff sqlite3_analyzer |
250 |
+ fi |
251 |
+} |
252 |
+ |
253 |
+multilib_src_test() { |
254 |
+ if [[ "${EUID}" -eq 0 ]]; then |
255 |
+ ewarn "Skipping tests due to root permissions" |
256 |
+ return |
257 |
+ fi |
258 |
+ |
259 |
+ emake HAVE_TCL="$(usex tcl 1 "")" $(use debug && echo fulltest || echo test) |
260 |
+} |
261 |
+ |
262 |
+multilib_src_install() { |
263 |
+ emake DESTDIR="${D}" HAVE_TCL="$(usex tcl 1 "")" TCLLIBDIR="${EPREFIX}/usr/$(get_libdir)/${P}" install |
264 |
+ |
265 |
+ if use tools && multilib_is_native_abi; then |
266 |
+ install_tool() { |
267 |
+ if [[ -f ".libs/${1}" ]]; then |
268 |
+ newbin ".libs/${1}" "${2}" |
269 |
+ else |
270 |
+ newbin "${1}" "${2}" |
271 |
+ fi |
272 |
+ } |
273 |
+ |
274 |
+ install_tool changeset sqlite3-changeset |
275 |
+ install_tool dbdump sqlite3-db-dump |
276 |
+ install_tool dbhash sqlite3-db-hash |
277 |
+ install_tool rbu sqlite3-rbu |
278 |
+ install_tool scrub sqlite3-scrub |
279 |
+ install_tool showdb sqlite3-show-db |
280 |
+ install_tool showjournal sqlite3-show-journal |
281 |
+ install_tool showstat4 sqlite3-show-stat4 |
282 |
+ install_tool showwal sqlite3-show-wal |
283 |
+ install_tool sqldiff sqlite3-diff |
284 |
+ install_tool sqlite3_analyzer sqlite3-analyzer |
285 |
+ |
286 |
+ unset -f install_tool |
287 |
+ fi |
288 |
+} |
289 |
+ |
290 |
+multilib_src_install_all() { |
291 |
+ prune_libtool_files |
292 |
+ |
293 |
+ doman sqlite3.1 |
294 |
+ |
295 |
+ if use doc; then |
296 |
+ rm "${WORKDIR}/${PN}-doc-${DOC_PV}/"*.{db,txt} |
297 |
+ ( |
298 |
+ docinto html |
299 |
+ dodoc -r "${WORKDIR}/${PN}-doc-${DOC_PV}/"* |
300 |
+ ) |
301 |
+ fi |
302 |
+} |