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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (hide annotations) (download)
Tue Nov 1 11:29:34 2011 UTC (7 years, 5 months ago) by pacho
Branch: MAIN
CVS Tags: HEAD
Changes since 1.6: +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 pacho 1.1 # Copyright 1999-2011 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 pacho 1.7 # $Header: /var/cvsroot/gentoo-x86/gnome-extra/libgda/libgda-4.2.7.ebuild,v 1.6 2011/10/05 17:39:16 xarthisius Exp $
4 pacho 1.1
5     EAPI="4"
6     GCONF_DEBUG="yes"
7     GNOME2_LA_PUNT="yes"
8 pacho 1.2 GNOME_TARBALL_SUFFIX="bz2"
9 pacho 1.1
10     inherit autotools db-use eutils flag-o-matic gnome2 java-pkg-opt-2
11    
12     DESCRIPTION="Gnome Database Access Library"
13     HOMEPAGE="http://www.gnome-db.org/"
14     LICENSE="GPL-2 LGPL-2"
15    
16     # MDB support currently works with CVS only, so disable it in the meantime
17     IUSE="berkdb bindist canvas doc firebird gnome-keyring gtk graphviz http +introspection json mysql oci8 postgres sourceview ssl"
18     SLOT="4"
19 xarthisius 1.6 KEYWORDS="alpha amd64 ia64 ppc ppc64 sparc x86 ~x86-fbsd"
20 pacho 1.1
21     # FIXME: sqlite is automagic, but maybe it is a hard-dep
22     # FIXME: autoconf is a hell of inconsistencies
23     RDEPEND="
24     app-text/iso-codes
25     >=dev-libs/glib-2.16:2
26     >=dev-libs/libxml2-2:2
27     dev-libs/libxslt
28     dev-libs/libunique:1
29     sys-libs/readline
30     sys-libs/ncurses
31     berkdb? ( sys-libs/db )
32     !bindist? ( firebird? ( dev-db/firebird ) )
33     gtk? (
34     || ( >=x11-libs/gtk+-2.12:2 x11-libs/gdk-pixbuf:2 )
35     canvas? ( x11-libs/goocanvas:0 )
36     sourceview? ( x11-libs/gtksourceview:2.0 )
37     graphviz? ( media-gfx/graphviz )
38     )
39     gnome-keyring? ( || ( gnome-base/libgnome-keyring <gnome-base/gnome-keyring-2.29.4 ) )
40     http? ( >=net-libs/libsoup-2.24:2.4 )
41     introspection? ( >=dev-libs/gobject-introspection-0.6.5 )
42     json? ( dev-libs/json-glib )
43     mysql? ( virtual/mysql )
44     postgres? ( dev-db/postgresql-base )
45     ssl? ( dev-libs/openssl )
46     >=dev-db/sqlite-3.6.22:3"
47     # mdb? ( >app-office/mdbtools-0.5 )
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     >=dev-util/gtk-doc-am-1
54     doc? ( >=dev-util/gtk-doc-1 )"
55    
56     # Tests are not really good
57     RESTRICT="test"
58    
59     pkg_setup() {
60     DOCS="AUTHORS ChangeLog NEWS README"
61    
62     if use canvas || use graphviz || use sourceview; then
63     if ! use gtk; then
64     ewarn "You must enable USE=gtk to make use of canvas, graphivz or sourceview USE flag."
65     ewarn "Disabling for now."
66     G2CONF="${G2CONF} --without-goocanvas --without-graphivz --without-gtksourceview"
67     else
68     G2CONF="${G2CONF}
69     $(use_with canvas goocanvas)
70     $(use_with graphviz)
71     $(use_with sourceview gtksourceview)"
72     fi
73     fi
74    
75     G2CONF="${G2CONF}
76     --with-unique
77     --disable-scrollkeeper
78     --disable-static
79     --enable-system-sqlite
80     $(use_with berkdb bdb /usr)
81     $(use_with gnome-keyring)
82     $(use_with gtk ui)
83     $(use_with http libsoup)
84     $(use_enable introspection)
85     $(use_enable introspection gda-gi)
86     $(use_enable introspection gdaui-gi)
87     $(use_with java java $JAVA_HOME)
88     $(use_with mysql mysql /usr)
89     $(use_with postgres postgres /usr)
90     $(use_enable ssl crypto)
91     --without-mdb"
92     # $(use_with mdb mdb /usr)
93    
94     if use bindist; then
95     # firebird license is not GPL compatible
96     G2CONF="${G2CONF} --without-firebird"
97     else
98     G2CONF="${G2CONF} $(use_with firebird firebird /usr)"
99     fi
100    
101     use berkdb && append-cppflags "-I$(db_includedir)"
102     # --disable-json doesn't work, upstream bug #636439
103     use json && G2CONF="${G2CONF} --enable-json"
104     use oci8 || G2CONF="${G2CONF} --without-oracle"
105    
106     # Not in portage
107     G2CONF="${G2CONF}
108     --disable-default-binary"
109     }
110    
111     src_prepare() {
112     gnome2_src_prepare
113    
114     # Fix build order for generated content, upstream #630958
115     epatch "${FILESDIR}/${PN}-4.2.2-fix-build-order.patch"
116    
117     # Fix compilation failure of keyword_hash.c, upstream #630959
118     epatch "${FILESDIR}/${PN}-4.2.0-missing-include-in-keyword_hash-generator.patch"
119    
120     intltoolize --force --copy --automake || die
121     eautoreconf
122     }
123    
124     src_test() {
125     emake check XDG_DATA_HOME="${T}/.local" || die "tests failed"
126     }

  ViewVC Help
Powered by ViewVC 1.1.20