Gentoo Archives: gentoo-commits

From: "Mike Frysinger (vapier)" <vapier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-db/sqlite: ChangeLog sqlite-3.6.12.ebuild
Date: Wed, 01 Apr 2009 00:02:00
Message-Id: E1Lonu1-0001fL-SL@stork.gentoo.org
1 vapier 09/04/01 00:01:57
2
3 Modified: ChangeLog
4 Added: sqlite-3.6.12.ebuild
5 Log:
6 Version bump.
7 (Portage version: 2.2_rc28/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.225 dev-db/sqlite/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/sqlite/ChangeLog?rev=1.225&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/sqlite/ChangeLog?rev=1.225&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/sqlite/ChangeLog?r1=1.224&r2=1.225
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/dev-db/sqlite/ChangeLog,v
19 retrieving revision 1.224
20 retrieving revision 1.225
21 diff -u -r1.224 -r1.225
22 --- ChangeLog 31 Mar 2009 23:53:11 -0000 1.224
23 +++ ChangeLog 1 Apr 2009 00:01:57 -0000 1.225
24 @@ -1,6 +1,11 @@
25 # ChangeLog for dev-db/sqlite
26 # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/dev-db/sqlite/ChangeLog,v 1.224 2009/03/31 23:53:11 vapier Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/dev-db/sqlite/ChangeLog,v 1.225 2009/04/01 00:01:57 vapier Exp $
29 +
30 +*sqlite-3.6.12 (01 Apr 2009)
31 +
32 + 01 Apr 2009; Mike Frysinger <vapier@g.o> +sqlite-3.6.12.ebuild:
33 + Version bump.
34
35 31 Mar 2009; Mike Frysinger <vapier@g.o> sqlite-3.6.11.ebuild:
36 Cleanup ebuild a bit and avoid running autotools.
37
38
39
40 1.1 dev-db/sqlite/sqlite-3.6.12.ebuild
41
42 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/sqlite/sqlite-3.6.12.ebuild?rev=1.1&view=markup
43 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/sqlite/sqlite-3.6.12.ebuild?rev=1.1&content-type=text/plain
44
45 Index: sqlite-3.6.12.ebuild
46 ===================================================================
47 # Copyright 1999-2009 Gentoo Foundation
48 # Distributed under the terms of the GNU General Public License v2
49 # $Header: /var/cvsroot/gentoo-x86/dev-db/sqlite/sqlite-3.6.12.ebuild,v 1.1 2009/04/01 00:01:57 vapier Exp $
50
51 EAPI="1"
52
53 inherit eutils flag-o-matic multilib versionator
54
55 DESCRIPTION="an SQL Database Engine in a C Library"
56 HOMEPAGE="http://www.sqlite.org/"
57 DOC_BASE="$(get_version_component_range 1-3)"
58 DOC_PV="$(replace_all_version_separators _ ${DOC_BASE})"
59 SRC_URI="http://www.sqlite.org/${P}.tar.gz
60 doc? ( http://www.sqlite.org/${PN}_docs_${DOC_PV}.zip )"
61
62 LICENSE="as-is"
63 SLOT="3"
64 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd"
65 IUSE="debug doc soundex tcl +threadsafe"
66 RESTRICT="!tcl? ( test )"
67
68 RDEPEND="tcl? ( dev-lang/tcl )"
69 DEPEND="${RDEPEND}
70 doc? ( app-arch/unzip )"
71
72 pkg_setup() {
73 if has test ${FEATURES} ; then
74 if ! has userpriv ${FEATURES} ; then
75 ewarn "The userpriv feature must be enabled to run tests."
76 eerror "Testsuite will not be run."
77 fi
78 if ! use tcl ; then
79 ewarn "You must enable the tcl use flag if you want to run the testsuite."
80 eerror "Testsuite will not be run."
81 fi
82 fi
83 }
84
85 src_unpack() {
86 unpack ${A}
87 cd "${S}"
88
89 # note: this sandbox fix is no longer needed with sandbox-1.3+
90 epatch "${FILESDIR}"/sandbox-fix2.patch
91
92 # avoid having to run autotools
93 sed -i 's:3\.6\.11:3.6.12:g' configure
94 epunt_cxx
95 }
96
97 src_compile() {
98 # not available via configure and requested in bug #143794
99 use soundex && append-cppflags -DSQLITE_SOUNDEX=1
100
101 econf \
102 $(use_enable debug) \
103 $(use_enable threadsafe) \
104 $(use_enable threadsafe cross-thread-connections) \
105 $(use_enable tcl)
106 emake TCLLIBDIR="/usr/$(get_libdir)/${P}" || die "emake failed"
107 }
108
109 src_test() {
110 if has userpriv ${FEATURES} ; then
111 local test=test
112 use debug && tets=fulltest
113 emake ${test} || die "some test(s) failed"
114 fi
115 }
116
117 src_install() {
118 emake \
119 DESTDIR="${D}" \
120 TCLLIBDIR="/usr/$(get_libdir)/${P}" \
121 install \
122 || die "emake install failed"
123
124 doman sqlite3.1 || die
125
126 if use doc ; then
127 # Naming scheme changes randomly between - and _ in releases
128 # http://www.sqlite.org/cvstrac/tktview?tn=3523
129 dohtml -r "${WORKDIR}"/${PN}-${DOC_PV}-docs/* || die
130 fi
131 }
132
133 pkg_postinst() {
134 elog "sqlite-3.6.X is not totally backwards compatible, see"
135 elog "http://www.sqlite.org/releaselog/3_6_0.html for full details."
136 }