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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (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.2: +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-2012 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.3.ebuild,v 1.2 2012/01/26 01:06:31 tetromino 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 --disable-vala
86 VAPIGEN=$(type -P vapigen-0.14)"
87 # $(use_enable vala)
88 # Disable vala due to https://bugzilla.gnome.org/show_bug.cgi?id=668701
89
90 if use bindist; then
91 # firebird license is not GPL compatible
92 G2CONF="${G2CONF} --without-firebird"
93 else
94 G2CONF="${G2CONF} $(use_with firebird firebird /usr)"
95 fi
96
97 use berkdb && append-cppflags "-I$(db_includedir)"
98 use oci8 || G2CONF="${G2CONF} --without-oracle"
99
100 # Not in portage
101 G2CONF="${G2CONF}
102 --disable-default-binary"
103
104 python_set_active_version 2
105 python_pkg_setup
106 }
107
108 src_prepare() {
109 # Disable broken tests so we can check the others, upstream bug #????
110 # epatch "${FILESDIR}/${PN}-4.99.4-disable-broken-tests.patch"
111
112 # Prevent file collisions with libgda:4
113 epatch "${FILESDIR}/${PN}-4.99.1-gda-browser-help-collision.patch"
114 epatch "${FILESDIR}/${PN}-4.99.1-gda-browser-doc-collision.patch"
115 epatch "${FILESDIR}/${PN}-4.99.1-control-center-icon-collision.patch"
116
117 # Move files with mv (since epatch can't handle rename diffs) and
118 # update pre-generated gtk-doc files
119 local f
120 for f in tools/browser/doc/gda-browser* ; do
121 mv ${f} ${f/gda-browser/gda-browser-5.0} || die "mv ${f} failed"
122 done
123 for f in tools/browser/doc/html/gda-browser.devhelp* ; do
124 sed -e 's:name="gda-browser":name="gda-browser-5.0":' \
125 -i ${f} || die "sed ${f} failed"
126 mv ${f} ${f/gda-browser/gda-browser-5.0} || die "mv ${f} failed"
127 done
128 for f in control-center/data/*_gda-control-center.png ; do
129 mv ${f} ${f/_gda-control-center.png/_gda-control-center-5.0.png} ||
130 die "mv ${f} failed"
131 done
132
133 python_convert_shebangs -r 2 libgda-report/RML/trml2{html,pdf}
134
135 # Missing from tarball
136 cp "${FILESDIR}/libgda-${PV}-custom.vala" libgda/libgda-5.0-custom.vala || die
137
138 intltoolize --force --copy --automake || die "intltoolize failed"
139 eautoreconf
140 gnome2_src_prepare
141 }
142
143 pkg_postinst() {
144 gnome2_pkg_postinst
145 local d
146 for d in /usr/share/libgda-5.0/gda_trml2{html,pdf} ; do
147 python_mod_optimize ${d}
148 done
149 }
150
151 pkg_postrm() {
152 gnome2_pkg_postrm
153 local d
154 for d in /usr/share/libgda-5.0/gda_trml2{html,pdf} ; do
155 python_mod_cleanup ${d}
156 done
157 }

  ViewVC Help
Powered by ViewVC 1.1.20