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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.11 - (hide annotations) (download)
Sat Apr 26 20:04:01 2014 UTC (4 years, 11 months ago) by pacho
Branch: MAIN
CVS Tags: HEAD
Changes since 1.10: +1 -1 lines
FILE REMOVED
drop old

(Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key A188FBD4)

1 pacho 1.1 # Copyright 1999-2012 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 pacho 1.11 # $Header: /var/cvsroot/gentoo-x86/gnome-extra/libgda/libgda-5.0.3-r1.ebuild,v 1.10 2012/12/17 08:01:41 tetromino Exp $
4 pacho 1.1
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 tetromino 1.10 DESCRIPTION="GNOME database access library"
13 pacho 1.1 HOMEPAGE="http://www.gnome-db.org/"
14 tetromino 1.9 LICENSE="GPL-2+ LGPL-2+"
15 pacho 1.1
16 tetromino 1.9 IUSE="berkdb bindist canvas firebird gnome-keyring gtk graphviz http +introspection json ldap mdb mysql oci8 postgres sourceview ssl" # vala
17 pacho 1.1 SLOT="5"
18 armin76 1.8 KEYWORDS="alpha amd64 ia64 ppc ppc64 sparc x86 ~x86-fbsd"
19 pacho 1.1
20     RDEPEND="
21     app-text/iso-codes
22 tetromino 1.9 >=dev-libs/glib-2.28:2
23 pacho 1.1 >=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 tetromino 1.9 >=app-text/gnome-doc-utils-0.9
48     dev-util/gtk-doc-am
49     >=dev-util/intltool-0.35.5
50 jdhore 1.6 virtual/pkgconfig
51 pacho 1.2 java? ( virtual/jdk:1.6 )"
52 pacho 1.1 # vala? ( >=dev-lang/vala-0.14:0.14[vapigen] )
53    
54     pkg_setup() {
55     java-pkg-opt-2_pkg_setup
56    
57     DOCS="AUTHORS ChangeLog NEWS README"
58    
59     if use canvas || use graphviz || use sourceview; then
60     if ! use gtk; then
61     ewarn "You must enable USE=gtk to make use of canvas, graphivz or sourceview USE flag."
62     ewarn "Disabling for now."
63     G2CONF="${G2CONF} --without-goocanvas --without-graphivz --without-gtksourceview"
64     else
65     G2CONF="${G2CONF}
66     $(use_with canvas goocanvas)
67     $(use_with graphviz)
68     $(use_with sourceview gtksourceview)"
69     fi
70     fi
71    
72     G2CONF="${G2CONF}
73     --disable-scrollkeeper
74     --disable-static
75     --enable-system-sqlite
76     $(use_with berkdb bdb /usr)
77     $(use_with gnome-keyring)
78     $(use_with gtk ui)
79     $(use_with http libsoup)
80     $(use_enable introspection)
81     $(use_with java java $JAVA_HOME)
82     $(use_enable json)
83     $(use_with ldap)
84     $(use_with mdb mdb /usr)
85     $(use_with mysql mysql /usr)
86     $(use_with postgres postgres /usr)
87     $(use_enable ssl crypto)
88     --disable-vala
89     VAPIGEN=$(type -P vapigen-0.14)"
90     # $(use_enable vala)
91     # Disable vala due to https://bugzilla.gnome.org/show_bug.cgi?id=668701
92    
93     if use bindist; then
94     # firebird license is not GPL compatible
95     G2CONF="${G2CONF} --without-firebird"
96     else
97     G2CONF="${G2CONF} $(use_with firebird firebird /usr)"
98     fi
99    
100     use berkdb && append-cppflags "-I$(db_includedir)"
101     use oci8 || G2CONF="${G2CONF} --without-oracle"
102    
103     # Not in portage
104     G2CONF="${G2CONF}
105     --disable-default-binary"
106    
107     python_set_active_version 2
108     python_pkg_setup
109     }
110    
111     src_prepare() {
112     # Disable broken tests so we can check the others, upstream bug #????
113     # epatch "${FILESDIR}/${PN}-4.99.4-disable-broken-tests.patch"
114    
115     # Prevent file collisions with libgda:4
116     epatch "${FILESDIR}/${PN}-4.99.1-gda-browser-help-collision.patch"
117     epatch "${FILESDIR}/${PN}-4.99.1-gda-browser-doc-collision.patch"
118     epatch "${FILESDIR}/${PN}-4.99.1-control-center-icon-collision.patch"
119    
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     # Missing from tarball
139     cp "${FILESDIR}/libgda-${PV}-custom.vala" libgda/libgda-5.0-custom.vala || die
140    
141     intltoolize --force --copy --automake || die "intltoolize failed"
142     eautoreconf
143     gnome2_src_prepare
144     java-pkg-opt-2_src_prepare
145     }
146    
147     pkg_postinst() {
148     gnome2_pkg_postinst
149     local d
150     for d in /usr/share/libgda-5.0/gda_trml2{html,pdf} ; do
151     python_mod_optimize ${d}
152     done
153     }
154    
155     pkg_postrm() {
156     gnome2_pkg_postrm
157     local d
158     for d in /usr/share/libgda-5.0/gda_trml2{html,pdf} ; do
159     python_mod_cleanup ${d}
160     done
161     }

  ViewVC Help
Powered by ViewVC 1.1.20