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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (hide annotations) (download)
Sat Jan 14 17:10:24 2012 UTC (2 years, 7 months ago) by maekke
Branch: MAIN
Changes since 1.2: +3 -3 lines
x86 stable, bug #393007

(Portage version: 2.1.10.44/cvs/Linux x86_64)

1 maekke 1.3 # Copyright 1999-2012 Gentoo Foundation
2 tetromino 1.1 # Distributed under the terms of the GNU General Public License v2
3 maekke 1.3 # $Header: /var/cvsroot/gentoo-x86/gnome-extra/libgda/libgda-4.2.11.ebuild,v 1.2 2011/12/29 17:48:08 pacho Exp $
4 tetromino 1.1
5     EAPI="4"
6     GCONF_DEBUG="yes"
7     GNOME2_LA_PUNT="yes"
8    
9     inherit db-use eutils flag-o-matic gnome2 java-pkg-opt-2
10    
11     DESCRIPTION="Gnome Database Access Library"
12     HOMEPAGE="http://www.gnome-db.org/"
13     LICENSE="GPL-2 LGPL-2"
14    
15     IUSE="berkdb bindist canvas doc firebird gnome-keyring gtk graphviz http +introspection json ldap mdb mysql oci8 postgres sourceview ssl"
16    
17     SLOT="4"
18 maekke 1.3 KEYWORDS="~alpha amd64 ~ia64 ~ppc ~ppc64 ~sparc x86 ~x86-fbsd"
19 tetromino 1.1
20     RDEPEND="
21     app-text/iso-codes
22     >=dev-libs/glib-2.16:2
23     >=dev-libs/libxml2-2:2
24     dev-libs/libxslt
25     dev-libs/libunique:1
26     sys-libs/readline
27     sys-libs/ncurses
28     >=dev-db/sqlite-3.6.22:3
29     berkdb? ( sys-libs/db )
30     !bindist? ( firebird? ( dev-db/firebird ) )
31     gtk? (
32     || ( >=x11-libs/gtk+-2.12:2 x11-libs/gdk-pixbuf:2 )
33     canvas? ( x11-libs/goocanvas:0 )
34     sourceview? ( x11-libs/gtksourceview:2.0 )
35     graphviz? ( media-gfx/graphviz )
36     )
37     gnome-keyring? ( gnome-base/libgnome-keyring )
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    
47     DEPEND="${RDEPEND}
48     >=dev-util/pkgconfig-0.18
49     >=dev-util/intltool-0.35.5
50     >=app-text/gnome-doc-utils-0.9
51     >=dev-util/gtk-doc-am-1
52     doc? ( >=dev-util/gtk-doc-1 )"
53    
54     # Tests are not really good
55     RESTRICT="test"
56    
57     pkg_setup() {
58     DOCS="AUTHORS ChangeLog NEWS README"
59    
60     if use canvas || use graphviz || use sourceview; then
61     if ! use gtk; then
62     ewarn "You must enable USE=gtk to make use of canvas, graphivz or sourceview USE flag."
63     ewarn "Disabling for now."
64     G2CONF="${G2CONF} --without-goocanvas --without-graphivz --without-gtksourceview"
65     else
66     G2CONF="${G2CONF}
67     $(use_with canvas goocanvas)
68     $(use_with graphviz)
69     $(use_with sourceview gtksourceview)"
70     fi
71     fi
72    
73     # Disable vala bindings, they collide with dev-lang/vala's libgda-4.0.vapi
74     G2CONF="${G2CONF}
75     --with-unique
76     --disable-scrollkeeper
77     --disable-static
78     --enable-system-sqlite
79     --disable-vala
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_enable json)
89     $(use_with ldap)
90     $(use_with mdb mdb /usr)
91     $(use_with mysql mysql /usr)
92     $(use_with postgres postgres /usr)
93     $(use_enable ssl crypto)"
94    
95     if use bindist; then
96     # firebird license is not GPL compatible
97     G2CONF="${G2CONF} --without-firebird"
98     else
99     G2CONF="${G2CONF} $(use_with firebird firebird /usr)"
100     fi
101    
102     use berkdb && append-cppflags "-I$(db_includedir)"
103     use oci8 || G2CONF="${G2CONF} --without-oracle"
104    
105     # Not in portage
106     G2CONF="${G2CONF}
107     --disable-default-binary"
108    
109     export XDG_DATA_HOME="${T}/.local"
110     }
111    
112     src_prepare() {
113     gnome2_src_prepare
114    
115     # Fix compilation failure of keyword_hash.c, upstream #630959
116     epatch "${FILESDIR}/${PN}-4.2.0-missing-include-in-keyword_hash-generator.patch"
117     }

  ViewVC Help
Powered by ViewVC 1.1.20