Gentoo Archives: gentoo-commits

From: "Mike Gilbert (floppym)" <floppym@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-db/sqlite: sqlite-3.8.5.ebuild ChangeLog
Date: Fri, 06 Jun 2014 15:31:15
Message-Id: 20140606153109.B7C8C2004E@flycatcher.gentoo.org
1 floppym 14/06/06 15:31:09
2
3 Modified: ChangeLog
4 Added: sqlite-3.8.5.ebuild
5 Log:
6 Version bump by Arfrever.
7
8 (Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key 0BBEEA1FEA4843A4)
9
10 Revision Changes Path
11 1.518 dev-db/sqlite/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/sqlite/ChangeLog?rev=1.518&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/sqlite/ChangeLog?rev=1.518&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/sqlite/ChangeLog?r1=1.517&r2=1.518
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-db/sqlite/ChangeLog,v
20 retrieving revision 1.517
21 retrieving revision 1.518
22 diff -u -r1.517 -r1.518
23 --- ChangeLog 6 Jun 2014 13:26:00 -0000 1.517
24 +++ ChangeLog 6 Jun 2014 15:31:09 -0000 1.518
25 @@ -1,6 +1,11 @@
26 # ChangeLog for dev-db/sqlite
27 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-db/sqlite/ChangeLog,v 1.517 2014/06/06 13:26:00 jer Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-db/sqlite/ChangeLog,v 1.518 2014/06/06 15:31:09 floppym Exp $
30 +
31 +*sqlite-3.8.5 (06 Jun 2014)
32 +
33 + 06 Jun 2014; Mike Gilbert <floppym@g.o> +sqlite-3.8.5.ebuild:
34 + Version bump by Arfrever.
35
36 06 Jun 2014; Jeroen Roovers <jer@g.o> sqlite-3.8.4.3.ebuild:
37 Stable for HPPA (bug #512452).
38
39
40
41 1.1 dev-db/sqlite/sqlite-3.8.5.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/sqlite/sqlite-3.8.5.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/sqlite/sqlite-3.8.5.ebuild?rev=1.1&content-type=text/plain
45
46 Index: sqlite-3.8.5.ebuild
47 ===================================================================
48 # Copyright 1999-2014 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/dev-db/sqlite/sqlite-3.8.5.ebuild,v 1.1 2014/06/06 15:31:09 floppym Exp $
51
52 EAPI="5"
53
54 inherit autotools eutils flag-o-matic multilib multilib-minimal versionator
55
56 SRC_PV="$(printf "%u%02u%02u%02u" $(get_version_components))"
57 DOC_PV="${SRC_PV}"
58 # DOC_PV="$(printf "%u%02u%02u00" $(get_version_components $(get_version_component_range 1-3)))"
59
60 DESCRIPTION="A SQL Database Engine in a C Library"
61 HOMEPAGE="http://sqlite.org/"
62 SRC_URI="doc? ( http://sqlite.org/2014/${PN}-doc-${DOC_PV}.zip )
63 tcl? ( http://sqlite.org/2014/${PN}-src-${SRC_PV}.zip )
64 !tcl? (
65 test? ( http://sqlite.org/2014/${PN}-src-${SRC_PV}.zip )
66 !test? ( http://sqlite.org/2014/${PN}-autoconf-${SRC_PV}.tar.gz )
67 )"
68
69 LICENSE="public-domain"
70 SLOT="3"
71 KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
72 IUSE="debug doc icu +readline secure-delete static-libs tcl test"
73
74 RDEPEND="icu? ( dev-libs/icu:=[${MULTILIB_USEDEP}] )
75 readline? ( sys-libs/readline[${MULTILIB_USEDEP}] )
76 tcl? ( dev-lang/tcl:=[${MULTILIB_USEDEP}] )
77 abi_x86_32? (
78 !<=app-emulation/emul-linux-x86-baselibs-20131008-r14
79 !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
80 )"
81 DEPEND="${RDEPEND}
82 doc? ( app-arch/unzip )
83 tcl? ( app-arch/unzip )
84 test? (
85 app-arch/unzip
86 dev-lang/tcl[${MULTILIB_USEDEP}]
87 )"
88
89 amalgamation() {
90 use !tcl && use !test
91 }
92
93 pkg_setup() {
94 if amalgamation; then
95 S="${WORKDIR}/${PN}-autoconf-${SRC_PV}"
96 else
97 S="${WORKDIR}/${PN}-src-${SRC_PV}"
98 fi
99 }
100
101 src_prepare() {
102 if amalgamation; then
103 epatch "${FILESDIR}/${PN}-3.8.1-autoconf-dlopen_check.patch"
104 else
105 epatch "${FILESDIR}/${PN}-3.8.1-src-dlopen_check.patch"
106 epatch "${FILESDIR}/${PN}-3.8.1-tests-icu-52.patch"
107 fi
108
109 eautoreconf
110
111 # At least ppc-aix, x86-interix and *-solaris need newer libtool.
112 # use prefix && eautoreconf
113
114 multilib_copy_sources
115 }
116
117 multilib_src_configure() {
118 # `configure` from amalgamation tarball does not add -DSQLITE_DEBUG or -DNDEBUG flag.
119 if amalgamation; then
120 if use debug; then
121 append-cppflags -DSQLITE_DEBUG
122 else
123 append-cppflags -DNDEBUG
124 fi
125 fi
126
127 # Support column metadata functions.
128 # http://sqlite.org/c3ref/column_database_name.html
129 # http://sqlite.org/c3ref/table_column_metadata.html
130 append-cppflags -DSQLITE_ENABLE_COLUMN_METADATA
131
132 # Support Full-Text Search versions 3 and 4.
133 # http://sqlite.org/fts3.html
134 append-cppflags -DSQLITE_ENABLE_FTS3 -DSQLITE_ENABLE_FTS3_PARENTHESIS -DSQLITE_ENABLE_FTS4 -DSQLITE_ENABLE_FTS4_UNICODE61
135
136 # Support R*Trees.
137 # http://sqlite.org/rtree.html
138 append-cppflags -DSQLITE_ENABLE_RTREE
139
140 # Support soundex() function.
141 # http://sqlite.org/lang_corefunc.html#soundex
142 append-cppflags -DSQLITE_SOUNDEX
143
144 # Support unlock notification.
145 # http://sqlite.org/unlock_notify.html
146 append-cppflags -DSQLITE_ENABLE_UNLOCK_NOTIFY
147
148 if use icu; then
149 append-cppflags -DSQLITE_ENABLE_ICU
150 if amalgamation; then
151 sed -e "s/LIBS = @LIBS@/& -licui18n -licuuc/" -i Makefile.in || die "sed failed"
152 else
153 sed -e "s/TLIBS = @LIBS@/& -licui18n -licuuc/" -i Makefile.in || die "sed failed"
154 fi
155 fi
156
157 # Enable secure_delete pragma.
158 # http://sqlite.org/pragma.html#pragma_secure_delete
159 if use secure-delete; then
160 append-cppflags -DSQLITE_SECURE_DELETE -DSQLITE_CHECK_PAGES -DSQLITE_CORE
161 fi
162
163 # Starting from 3.6.23, SQLite has locking strategies that are specific to
164 # OSX. By default they are enabled, and use semantics that only make sense
165 # on OSX. However, they require gethostuuid() function for that, which is
166 # only available on OSX starting from 10.6 (Snow Leopard). For earlier
167 # versions of OSX we have to disable all this nifty locking options, as
168 # suggested by upstream.
169 if [[ "${CHOST}" == *-darwin[56789] ]]; then
170 append-cppflags -DSQLITE_ENABLE_LOCKING_STYLE="0"
171 fi
172
173 if [[ "${CHOST}" == *-mint* ]]; then
174 append-cppflags -DSQLITE_OMIT_WAL
175 fi
176
177 # `configure` from amalgamation tarball does not support
178 # --with-readline-inc and --(enable|disable)-tcl options.
179 econf \
180 --enable-$(amalgamation && echo dynamic-extensions || echo load-extension) \
181 --enable-threadsafe \
182 $(use_enable readline) \
183 $(use_enable static-libs static) \
184 $(amalgamation || echo --with-readline-inc="-I${EPREFIX}/usr/include/readline") \
185 $(amalgamation || use_enable debug) \
186 $(amalgamation || echo --enable-tcl)
187 }
188
189 multilib_src_compile() {
190 emake TCLLIBDIR="${EPREFIX}/usr/$(get_libdir)/${P}"
191 }
192
193 multilib_src_test() {
194 if [[ "${EUID}" -eq 0 ]]; then
195 ewarn "Skipping tests due to root permissions"
196 return
197 fi
198
199 emake $(use debug && echo fulltest || echo test)
200 }
201
202 multilib_src_install() {
203 emake DESTDIR="${D}" HAVE_TCL="$(usex tcl 1 "")" TCLLIBDIR="${EPREFIX}/usr/$(get_libdir)/${P}" install
204 }
205
206 multilib_src_install_all() {
207 prune_libtool_files
208
209 doman sqlite3.1
210
211 if use doc; then
212 dohtml -A ico,odg,pdf,svg -r "${WORKDIR}/${PN}-doc-${DOC_PV}/"
213 fi
214 }