Gentoo Archives: gentoo-commits

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