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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Sun Apr 1 18:20:25 2012 UTC (6 years, 3 months ago) by pacho
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
java-pkg-opt-2 default phases were being skipped by accident causing java detection problems like bug #401219 by Maciej Piechotka. Remove old.

(Portage version: 2.1.10.52/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-5.0.2.ebuild,v 1.1 2011/11/21 11:57:46 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 vala"
17 SLOT="5"
18 KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
19
20 RDEPEND="
21 app-text/iso-codes
22 >=dev-libs/glib-2.16:2
23 >=dev-libs/libxml2-2
24 dev-libs/libxslt
25 sys-libs/readline
26 sys-libs/ncurses
27 berkdb? ( sys-libs/db )
28 !bindist? ( firebird? ( dev-db/firebird ) )
29 gtk? (
30 >=x11-libs/gtk+-3.0.0:3
31 canvas? ( x11-libs/goocanvas:2.0 )
32 sourceview? ( x11-libs/gtksourceview:3.0 )
33 graphviz? ( media-gfx/graphviz )
34 )
35 gnome-keyring? ( || ( gnome-base/libgnome-keyring <gnome-base/gnome-keyring-2.29.4 ) )
36 http? ( >=net-libs/libsoup-2.24:2.4 )
37 introspection? ( >=dev-libs/gobject-introspection-0.6.5 )
38 json? ( dev-libs/json-glib )
39 ldap? ( net-nds/openldap )
40 mdb? ( >app-office/mdbtools-0.5 )
41 mysql? ( virtual/mysql )
42 postgres? ( dev-db/postgresql-base )
43 ssl? ( dev-libs/openssl )
44 >=dev-db/sqlite-3.6.22:3"
45
46 DEPEND="${RDEPEND}
47 >=dev-util/pkgconfig-0.18
48 >=dev-util/intltool-0.35.5
49 >=app-text/gnome-doc-utils-0.9
50 doc? ( >=dev-util/gtk-doc-1 )
51 vala? ( >=dev-lang/vala-0.14:0.14[vapigen] )"
52
53 pkg_setup() {
54 DOCS="AUTHORS ChangeLog NEWS README"
55
56 if use canvas || use graphviz || use sourceview; then
57 if ! use gtk; then
58 ewarn "You must enable USE=gtk to make use of canvas, graphivz or sourceview USE flag."
59 ewarn "Disabling for now."
60 G2CONF="${G2CONF} --without-goocanvas --without-graphivz --without-gtksourceview"
61 else
62 G2CONF="${G2CONF}
63 $(use_with canvas goocanvas)
64 $(use_with graphviz)
65 $(use_with sourceview gtksourceview)"
66 fi
67 fi
68
69 G2CONF="${G2CONF}
70 --disable-scrollkeeper
71 --disable-static
72 --enable-system-sqlite
73 $(use_with berkdb bdb /usr)
74 $(use_with gnome-keyring)
75 $(use_with gtk ui)
76 $(use_with http libsoup)
77 $(use_enable introspection)
78 $(use_with java java $JAVA_HOME)
79 $(use_enable json)
80 $(use_with ldap)
81 $(use_with mdb mdb /usr)
82 $(use_with mysql mysql /usr)
83 $(use_with postgres postgres /usr)
84 $(use_enable ssl crypto)
85 $(use_enable vala)"
86
87 if use bindist; then
88 # firebird license is not GPL compatible
89 G2CONF="${G2CONF} --without-firebird"
90 else
91 G2CONF="${G2CONF} $(use_with firebird firebird /usr)"
92 fi
93
94 use berkdb && append-cppflags "-I$(db_includedir)"
95 use oci8 || G2CONF="${G2CONF} --without-oracle"
96
97 # Not in portage
98 G2CONF="${G2CONF}
99 --disable-default-binary"
100
101 python_set_active_version 2
102 python_pkg_setup
103 }
104
105 src_prepare() {
106 # Disable broken tests so we can check the others, upstream bug #????
107 epatch "${FILESDIR}/${PN}-4.99.4-disable-broken-tests.patch"
108
109 # Prevent file collisions with libgda:4
110 epatch "${FILESDIR}/${PN}-4.99.1-gda-browser-help-collision.patch"
111 epatch "${FILESDIR}/${PN}-4.99.1-gda-browser-doc-collision.patch"
112 epatch "${FILESDIR}/${PN}-4.99.1-control-center-icon-collision.patch"
113
114 # Move files with mv (since epatch can't handle rename diffs) and
115 # update pre-generated gtk-doc files
116 local f
117 for f in tools/browser/doc/gda-browser* ; do
118 mv ${f} ${f/gda-browser/gda-browser-5.0} || die "mv ${f} failed"
119 done
120 for f in tools/browser/doc/html/gda-browser.devhelp* ; do
121 sed -e 's:name="gda-browser":name="gda-browser-5.0":' \
122 -i ${f} || die "sed ${f} failed"
123 mv ${f} ${f/gda-browser/gda-browser-5.0} || die "mv ${f} failed"
124 done
125 for f in control-center/data/*_gda-control-center.png ; do
126 mv ${f} ${f/_gda-control-center.png/_gda-control-center-5.0.png} ||
127 die "mv ${f} failed"
128 done
129
130 python_convert_shebangs -r 2 libgda-report/RML/trml2{html,pdf}
131
132 # Fix valac version, upstream bug #664462
133 sed -e 's:"$VALA_BINDIR/valac":"$VALA_BINDIR/valac-0.14":' \
134 -i configure.ac || die "sed failed"
135
136 eautoreconf
137 gnome2_src_prepare
138 }
139
140 pkg_postinst() {
141 gnome2_pkg_postinst
142 local d
143 for d in /usr/share/libgda-5.0/gda_trml2{html,pdf} ; do
144 python_mod_optimize ${d}
145 done
146 }
147
148 pkg_postrm() {
149 gnome2_pkg_postrm
150 local d
151 for d in /usr/share/libgda-5.0/gda_trml2{html,pdf} ; do
152 python_mod_cleanup ${d}
153 done
154 }

  ViewVC Help
Powered by ViewVC 1.1.20