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.0.1.ebuild ChangeLog
Date: Sun, 01 Sep 2013 06:10:30
Message-Id: 20130901061018.E25A32004C@flycatcher.gentoo.org
1 floppym 13/09/01 06:10:18
2
3 Modified: ChangeLog
4 Added: sqlite-3.8.0.1.ebuild
5 Log:
6 Version bump. Ebuild by Arfrever.
7
8 (Portage version: 2.2.1/cvs/Linux x86_64, signed Manifest commit with key 0BBEEA1FEA4843A4)
9
10 Revision Changes Path
11 1.491 dev-db/sqlite/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/sqlite/ChangeLog?rev=1.491&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/sqlite/ChangeLog?rev=1.491&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/sqlite/ChangeLog?r1=1.490&r2=1.491
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-db/sqlite/ChangeLog,v
20 retrieving revision 1.490
21 retrieving revision 1.491
22 diff -u -r1.490 -r1.491
23 --- ChangeLog 29 Aug 2013 10:55:35 -0000 1.490
24 +++ ChangeLog 1 Sep 2013 06:10:18 -0000 1.491
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.490 2013/08/29 10:55:35 kensington Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-db/sqlite/ChangeLog,v 1.491 2013/09/01 06:10:18 floppym Exp $
30 +
31 +*sqlite-3.8.0.1 (01 Sep 2013)
32 +
33 + 01 Sep 2013; Mike Gilbert <floppym@g.o> +sqlite-3.8.0.1.ebuild:
34 + Version bump. Ebuild by Arfrever.
35
36 29 Aug 2013; Michael Palimaka <kensington@g.o> sqlite-3.8.0.ebuild:
37 Remove unnecessary epunt_cxx wrt bug #482902.
38
39
40
41 1.1 dev-db/sqlite/sqlite-3.8.0.1.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/sqlite/sqlite-3.8.0.1.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/sqlite/sqlite-3.8.0.1.ebuild?rev=1.1&content-type=text/plain
45
46 Index: sqlite-3.8.0.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.8.0.1.ebuild,v 1.1 2013/09/01 06:10:18 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 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
102 src_configure() {
103 # `configure` from amalgamation tarball does not add -DSQLITE_DEBUG or -DNDEBUG flag.
104 if amalgamation; then
105 if use debug; then
106 append-cppflags -DSQLITE_DEBUG
107 else
108 append-cppflags -DNDEBUG
109 fi
110 fi
111
112 # Support column metadata functions.
113 # http://sqlite.org/c3ref/column_database_name.html
114 # http://sqlite.org/c3ref/table_column_metadata.html
115 append-cppflags -DSQLITE_ENABLE_COLUMN_METADATA
116
117 # Support Full-Text Search versions 3 and 4.
118 # http://sqlite.org/fts3.html
119 append-cppflags -DSQLITE_ENABLE_FTS3 -DSQLITE_ENABLE_FTS3_PARENTHESIS -DSQLITE_ENABLE_FTS4 -DSQLITE_ENABLE_FTS4_UNICODE61
120
121 # Support R*Trees.
122 # http://sqlite.org/rtree.html
123 append-cppflags -DSQLITE_ENABLE_RTREE
124
125 # Support soundex() function.
126 # http://sqlite.org/lang_corefunc.html#soundex
127 append-cppflags -DSQLITE_SOUNDEX
128
129 # Support unlock notification.
130 # http://sqlite.org/unlock_notify.html
131 append-cppflags -DSQLITE_ENABLE_UNLOCK_NOTIFY
132
133 if use icu; then
134 append-cppflags -DSQLITE_ENABLE_ICU
135 if amalgamation; then
136 sed -e "s/LIBS = @LIBS@/& -licui18n -licuuc/" -i Makefile.in || die "sed failed"
137 else
138 sed -e "s/TLIBS = @LIBS@/& -licui18n -licuuc/" -i Makefile.in || die "sed failed"
139 fi
140 fi
141
142 # Enable secure_delete pragma.
143 # http://sqlite.org/pragma.html#pragma_secure_delete
144 if use secure-delete; then
145 append-cppflags -DSQLITE_SECURE_DELETE -DSQLITE_CHECK_PAGES -DSQLITE_CORE
146 fi
147
148 # Starting from 3.6.23, SQLite has locking strategies that are specific to
149 # OSX. By default they are enabled, and use semantics that only make sense
150 # on OSX. However, they require gethostuuid() function for that, which is
151 # only available on OSX starting from 10.6 (Snow Leopard). For earlier
152 # versions of OSX we have to disable all this nifty locking options, as
153 # suggested by upstream.
154 if [[ "${CHOST}" == *-darwin[56789] ]]; then
155 append-cppflags -DSQLITE_ENABLE_LOCKING_STYLE="0"
156 fi
157
158 if [[ "${CHOST}" == *-mint* ]]; then
159 append-cppflags -DSQLITE_OMIT_WAL
160 fi
161
162 # `configure` from amalgamation tarball does not support
163 # --with-readline-inc and --(enable|disable)-tcl options.
164 econf \
165 --enable-$(amalgamation && echo dynamic-extensions || echo load-extension) \
166 --enable-threadsafe \
167 $(use_enable readline) \
168 $(use_enable static-libs static) \
169 $(amalgamation || echo --with-readline-inc="-I${EPREFIX}/usr/include/readline") \
170 $(amalgamation || use_enable debug) \
171 $(amalgamation || echo --enable-tcl)
172 }
173
174 src_compile() {
175 emake TCLLIBDIR="${EPREFIX}/usr/$(get_libdir)/${P}"
176 }
177
178 src_test() {
179 if [[ "${EUID}" -eq 0 ]]; then
180 ewarn "Skipping tests due to root permissions"
181 return
182 fi
183
184 emake $(use debug && echo fulltest || echo test)
185 }
186
187 src_install() {
188 emake DESTDIR="${D}" HAVE_TCL="$(usex tcl 1 "")" TCLLIBDIR="${EPREFIX}/usr/$(get_libdir)/${P}" install
189 prune_libtool_files
190
191 doman sqlite3.1
192
193 if use doc; then
194 find "${WORKDIR}/${PN}-doc-${DOC_PV}" -name ".[_~]*" -delete
195 dohtml -A ico,odg,pdf,svg -r "${WORKDIR}/${PN}-doc-${DOC_PV}/"
196 fi
197 }