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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Sat Dec 31 19:18:28 2011 UTC (6 years, 7 months ago) by pacho
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Version bump, remove old.

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

  ViewVC Help
Powered by ViewVC 1.1.20