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