/[gentoo-x86]/gnome-extra/libgda/libgda-4.99.4.ebuild
Gentoo

Contents of /gnome-extra/libgda/libgda-4.99.4.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Tue Nov 1 11:29:34 2011 UTC (7 years ago) by pacho
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
Version bump, drop fix-build-order patch as it seems to be no longer needed and breaks things (bug #341365 by Mark Purtill and Robert Bradbury). Drop old.

(Portage version: 2.1.10.32/cvs/Linux x86_64)

1 # Copyright 1999-2011 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/gnome-extra/libgda/libgda-4.99.4.ebuild,v 1.2 2011/10/16 00:05:35 pacho Exp $
4
5 EAPI="4"
6 GNOME2_LA_PUNT="yes"
7 GCONF_DEBUG="yes"
8 PYTHON_DEPEND="2"
9
10 inherit autotools db-use eutils flag-o-matic gnome2 java-pkg-opt-2 python
11
12 DESCRIPTION="Gnome Database Access Library"
13 HOMEPAGE="http://www.gnome-db.org/"
14 LICENSE="GPL-2 LGPL-2"
15
16 IUSE="berkdb bindist canvas doc firebird gnome-keyring gtk graphviz http +introspection json ldap mdb mysql oci8 postgres sourceview ssl"
17 SLOT="5"
18 KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
19
20 # FIXME: sqlite is automagic, but maybe it is a hard-dep
21 # FIXME: autoconf is a hell of inconsistencies
22 RDEPEND="
23 app-text/iso-codes
24 >=dev-libs/glib-2.16:2
25 >=dev-libs/libxml2-2
26 dev-libs/libxslt
27 dev-libs/libunique:3
28 sys-libs/readline
29 sys-libs/ncurses
30 berkdb? ( sys-libs/db )
31 !bindist? ( firebird? ( dev-db/firebird ) )
32 gtk? (
33 >=x11-libs/gtk+-3.0.0:3
34 canvas? ( x11-libs/goocanvas:2.0 )
35 sourceview? ( x11-libs/gtksourceview:3.0 )
36 graphviz? ( media-gfx/graphviz )
37 )
38 gnome-keyring? ( || ( gnome-base/libgnome-keyring <gnome-base/gnome-keyring-2.29.4 ) )
39 http? ( >=net-libs/libsoup-2.24:2.4 )
40 introspection? ( >=dev-libs/gobject-introspection-0.6.5 )
41 json? ( dev-libs/json-glib )
42 ldap? ( net-nds/openldap )
43 mdb? ( >app-office/mdbtools-0.5 )
44 mysql? ( virtual/mysql )
45 postgres? ( dev-db/postgresql-base )
46 ssl? ( dev-libs/openssl )
47 >=dev-db/sqlite-3.6.22:3"
48
49 DEPEND="${RDEPEND}
50 >=dev-util/pkgconfig-0.18
51 >=dev-util/intltool-0.35.5
52 >=app-text/gnome-doc-utils-0.9
53 doc? ( >=dev-util/gtk-doc-1 )"
54
55 # XXX: some tests fail when run from portage (but pass when building by hand)
56 RESTRICT="test"
57
58 pkg_setup() {
59 DOCS="AUTHORS ChangeLog NEWS README"
60
61 if use canvas || use graphviz || use sourceview; then
62 if ! use gtk; then
63 ewarn "You must enable USE=gtk to make use of canvas, graphivz or sourceview USE flag."
64 ewarn "Disabling for now."
65 G2CONF="${G2CONF} --without-goocanvas --without-graphivz --without-gtksourceview"
66 else
67 G2CONF="${G2CONF}
68 $(use_with canvas goocanvas)
69 $(use_with graphviz)
70 $(use_with sourceview gtksourceview)"
71 fi
72 fi
73
74 G2CONF="${G2CONF}
75 --with-unique
76 --disable-scrollkeeper
77 --disable-static
78 --enable-system-sqlite
79 $(use_with berkdb bdb /usr)
80 $(use_with gnome-keyring)
81 $(use_with gtk ui)
82 $(use_with http libsoup)
83 $(use_enable introspection)
84 $(use_with java java $JAVA_HOME)
85 $(use_enable json)
86 $(use_with ldap)
87 $(use_with mdb mdb /usr)
88 $(use_with mysql mysql /usr)
89 $(use_with postgres postgres /usr)
90 $(use_enable ssl crypto)"
91
92 if use bindist; then
93 # firebird license is not GPL compatible
94 G2CONF="${G2CONF} --without-firebird"
95 else
96 G2CONF="${G2CONF} $(use_with firebird firebird /usr)"
97 fi
98
99 use berkdb && append-cppflags "-I$(db_includedir)"
100 use oci8 || G2CONF="${G2CONF} --without-oracle"
101
102 # Not in portage
103 G2CONF="${G2CONF}
104 --disable-default-binary"
105
106 export XDG_DATA_HOME="${T}/.local"
107
108 python_set_active_version 2
109 python_pkg_setup
110 }
111
112 src_prepare() {
113 # Fix build order for generated content, upstream #630958
114 #epatch "${FILESDIR}/${PN}-9999-fix-build-order.patch"
115
116 # Fix compilation failure of keyword_hash.c, upstream #630959
117 #epatch "${FILESDIR}/${PN}-4.2.0-missing-include-in-keyword_hash-generator.patch"
118
119 # Upstream patch to fix a serious statement rewriting bug, in next release
120 epatch "${FILESDIR}/${PN}-4.99.4-statement-rewriting-fix.patch"
121
122 # Disable broken tests so we can check the others
123 epatch "${FILESDIR}/${PN}-4.99.4-disable-broken-tests.patch"
124
125 # Prevent file collisions with libgda:4
126 epatch "${FILESDIR}/${PN}-4.99.1-gda-browser-help-collision.patch"
127 epatch "${FILESDIR}/${PN}-4.99.1-gda-browser-doc-collision.patch"
128 epatch "${FILESDIR}/${PN}-4.99.1-control-center-icon-collision.patch"
129 # Move files with mv (since epatch can't handle rename diffs) and
130 # update pre-generated gtk-doc files
131 local f
132 for f in tools/browser/doc/gda-browser* ; do
133 mv ${f} ${f/gda-browser/gda-browser-5.0} || die "mv ${f} failed"
134 done
135 for f in tools/browser/doc/html/gda-browser.devhelp* ; do
136 sed -e 's:name="gda-browser":name="gda-browser-5.0":' \
137 -i ${f} || die "sed ${f} failed"
138 mv ${f} ${f/gda-browser/gda-browser-5.0} || die "mv ${f} failed"
139 done
140 for f in control-center/data/*_gda-control-center.png ; do
141 mv ${f} ${f/_gda-control-center.png/_gda-control-center-5.0.png} ||
142 die "mv ${f} failed"
143 done
144
145 python_convert_shebangs -r 2 libgda-report/RML/trml2{html,pdf}
146
147 eautoreconf
148 gnome2_src_prepare
149 }
150
151 src_test() {
152 emake check XDG_DATA_HOME="${T}/.local" || die "tests failed"
153 }
154
155 pkg_postinst() {
156 gnome2_pkg_postinst
157 local d
158 for d in /usr/share/libgda-5.0/gda_trml2{html,pdf} ; do
159 python_mod_optimize ${d}
160 done
161 }
162
163 pkg_postrm() {
164 gnome2_pkg_postrm
165 local d
166 for d in /usr/share/libgda-5.0/gda_trml2{html,pdf} ; do
167 python_mod_cleanup ${d}
168 done
169 }

  ViewVC Help
Powered by ViewVC 1.1.20