Gentoo Archives: gentoo-commits

From: "Alexandre Rostovtsev (tetromino)" <tetromino@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in gnome-extra/libgda: ChangeLog libgda-5.0.0.ebuild
Date: Sun, 30 Oct 2011 05:58:56
Message-Id: 20111030055842.86E5A2004B@flycatcher.gentoo.org
1 tetromino 11/10/30 05:58:42
2
3 Modified: ChangeLog
4 Added: libgda-5.0.0.ebuild
5 Log:
6 Bump. Notable changes: introspection improvements, lots of bugfixes. This version theoretically adds vala bindings, but getting them to build is problematic. Remove bogus libunique dependency.
7
8 (Portage version: 2.2.0_alpha71/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.183 gnome-extra/libgda/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/gnome-extra/libgda/ChangeLog?rev=1.183&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/gnome-extra/libgda/ChangeLog?rev=1.183&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/gnome-extra/libgda/ChangeLog?r1=1.182&r2=1.183
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/gnome-extra/libgda/ChangeLog,v
20 retrieving revision 1.182
21 retrieving revision 1.183
22 diff -u -r1.182 -r1.183
23 --- ChangeLog 21 Oct 2011 14:25:14 -0000 1.182
24 +++ ChangeLog 30 Oct 2011 05:58:42 -0000 1.183
25 @@ -1,6 +1,14 @@
26 # ChangeLog for gnome-extra/libgda
27 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/gnome-extra/libgda/ChangeLog,v 1.182 2011/10/21 14:25:14 phajdan.jr Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/gnome-extra/libgda/ChangeLog,v 1.183 2011/10/30 05:58:42 tetromino Exp $
30 +
31 +*libgda-5.0.0 (30 Oct 2011)
32 +
33 + 30 Oct 2011; Alexandre Rostovtsev <tetromino@g.o>
34 + +libgda-5.0.0.ebuild:
35 + Bump. Notable changes: introspection improvements, lots of bugfixes. This
36 + version theoretically adds vala bindings, but getting them to build is
37 + problematic. Remove bogus libunique dependency.
38
39 21 Oct 2011; Pawel Hajdan jr <phajdan.jr@g.o> libgda-4.2.9.ebuild:
40 x86 stable wrt bug #385699
41
42
43
44 1.1 gnome-extra/libgda/libgda-5.0.0.ebuild
45
46 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/gnome-extra/libgda/libgda-5.0.0.ebuild?rev=1.1&view=markup
47 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/gnome-extra/libgda/libgda-5.0.0.ebuild?rev=1.1&content-type=text/plain
48
49 Index: libgda-5.0.0.ebuild
50 ===================================================================
51 # Copyright 1999-2011 Gentoo Foundation
52 # Distributed under the terms of the GNU General Public License v2
53 # $Header: /var/cvsroot/gentoo-x86/gnome-extra/libgda/libgda-5.0.0.ebuild,v 1.1 2011/10/30 05:58:42 tetromino Exp $
54
55 EAPI="4"
56 GNOME2_LA_PUNT="yes"
57 GCONF_DEBUG="yes"
58 PYTHON_DEPEND="2"
59
60 inherit autotools db-use eutils flag-o-matic gnome2 java-pkg-opt-2 python
61
62 DESCRIPTION="Gnome Database Access Library"
63 HOMEPAGE="http://www.gnome-db.org/"
64 LICENSE="GPL-2 LGPL-2"
65
66 IUSE="berkdb bindist canvas doc firebird gnome-keyring gtk graphviz http +introspection json ldap mdb mysql oci8 postgres sourceview ssl"
67 SLOT="5"
68 KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
69
70 # FIXME: sqlite is automagic, but maybe it is a hard-dep
71 # FIXME: autoconf is a hell of inconsistencies
72 RDEPEND="
73 app-text/iso-codes
74 >=dev-libs/glib-2.16:2
75 >=dev-libs/libxml2-2
76 dev-libs/libxslt
77 sys-libs/readline
78 sys-libs/ncurses
79 berkdb? ( sys-libs/db )
80 !bindist? ( firebird? ( dev-db/firebird ) )
81 gtk? (
82 >=x11-libs/gtk+-3.0.0:3
83 canvas? ( x11-libs/goocanvas:2.0 )
84 sourceview? ( x11-libs/gtksourceview:3.0 )
85 graphviz? ( media-gfx/graphviz )
86 )
87 gnome-keyring? ( || ( gnome-base/libgnome-keyring <gnome-base/gnome-keyring-2.29.4 ) )
88 http? ( >=net-libs/libsoup-2.24:2.4 )
89 introspection? ( >=dev-libs/gobject-introspection-0.6.5 )
90 json? ( dev-libs/json-glib )
91 ldap? ( net-nds/openldap )
92 mdb? ( >app-office/mdbtools-0.5 )
93 mysql? ( virtual/mysql )
94 postgres? ( dev-db/postgresql-base )
95 ssl? ( dev-libs/openssl )
96 >=dev-db/sqlite-3.6.22:3"
97
98 DEPEND="${RDEPEND}
99 >=dev-util/pkgconfig-0.18
100 >=dev-util/intltool-0.35.5
101 >=app-text/gnome-doc-utils-0.9
102 doc? ( >=dev-util/gtk-doc-1 )"
103
104 # XXX: some tests fail when run from portage (but pass when building by hand)
105 RESTRICT="test"
106
107 pkg_setup() {
108 DOCS="AUTHORS ChangeLog NEWS README"
109
110 if use canvas || use graphviz || use sourceview; then
111 if ! use gtk; then
112 ewarn "You must enable USE=gtk to make use of canvas, graphivz or sourceview USE flag."
113 ewarn "Disabling for now."
114 G2CONF="${G2CONF} --without-goocanvas --without-graphivz --without-gtksourceview"
115 else
116 G2CONF="${G2CONF}
117 $(use_with canvas goocanvas)
118 $(use_with graphviz)
119 $(use_with sourceview gtksourceview)"
120 fi
121 fi
122
123 # XXX: vala bindings have build problems: https://bugzilla.gnome.org/show_bug.cgi?id=663009
124 G2CONF="${G2CONF}
125 --disable-scrollkeeper
126 --disable-static
127 --enable-system-sqlite
128 --disable-vala
129 $(use_with berkdb bdb /usr)
130 $(use_with gnome-keyring)
131 $(use_with gtk ui)
132 $(use_with http libsoup)
133 $(use_enable introspection)
134 $(use_with java java $JAVA_HOME)
135 $(use_enable json)
136 $(use_with ldap)
137 $(use_with mdb mdb /usr)
138 $(use_with mysql mysql /usr)
139 $(use_with postgres postgres /usr)
140 $(use_enable ssl crypto)"
141
142 if use bindist; then
143 # firebird license is not GPL compatible
144 G2CONF="${G2CONF} --without-firebird"
145 else
146 G2CONF="${G2CONF} $(use_with firebird firebird /usr)"
147 fi
148
149 use berkdb && append-cppflags "-I$(db_includedir)"
150 use oci8 || G2CONF="${G2CONF} --without-oracle"
151
152 # Not in portage
153 G2CONF="${G2CONF}
154 --disable-default-binary"
155
156 export XDG_DATA_HOME="${T}/.local"
157
158 python_set_active_version 2
159 python_pkg_setup
160 }
161
162 src_prepare() {
163 # Fix build order for generated content, upstream #630958
164 #epatch "${FILESDIR}/${PN}-9999-fix-build-order.patch"
165
166 # Fix compilation failure of keyword_hash.c, upstream #630959
167 #epatch "${FILESDIR}/${PN}-4.2.0-missing-include-in-keyword_hash-generator.patch"
168
169 # Disable broken tests so we can check the others
170 epatch "${FILESDIR}/${PN}-4.99.4-disable-broken-tests.patch"
171
172 # Prevent file collisions with libgda:4
173 epatch "${FILESDIR}/${PN}-4.99.1-gda-browser-help-collision.patch"
174 epatch "${FILESDIR}/${PN}-4.99.1-gda-browser-doc-collision.patch"
175 epatch "${FILESDIR}/${PN}-4.99.1-control-center-icon-collision.patch"
176 # Move files with mv (since epatch can't handle rename diffs) and
177 # update pre-generated gtk-doc files
178 local f
179 for f in tools/browser/doc/gda-browser* ; do
180 mv ${f} ${f/gda-browser/gda-browser-5.0} || die "mv ${f} failed"
181 done
182 for f in tools/browser/doc/html/gda-browser.devhelp* ; do
183 sed -e 's:name="gda-browser":name="gda-browser-5.0":' \
184 -i ${f} || die "sed ${f} failed"
185 mv ${f} ${f/gda-browser/gda-browser-5.0} || die "mv ${f} failed"
186 done
187 for f in control-center/data/*_gda-control-center.png ; do
188 mv ${f} ${f/_gda-control-center.png/_gda-control-center-5.0.png} ||
189 die "mv ${f} failed"
190 done
191
192 python_convert_shebangs -r 2 libgda-report/RML/trml2{html,pdf}
193
194 eautoreconf
195 gnome2_src_prepare
196 }
197
198 src_test() {
199 emake check XDG_DATA_HOME="${T}/.local" || die "tests failed"
200 }
201
202 pkg_postinst() {
203 gnome2_pkg_postinst
204 local d
205 for d in /usr/share/libgda-5.0/gda_trml2{html,pdf} ; do
206 python_mod_optimize ${d}
207 done
208 }
209
210 pkg_postrm() {
211 gnome2_pkg_postrm
212 local d
213 for d in /usr/share/libgda-5.0/gda_trml2{html,pdf} ; do
214 python_mod_cleanup ${d}
215 done
216 }