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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Wed Feb 23 22:14:48 2011 UTC (8 years, 2 months ago) by pacho
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
Version bump, remove old.

(Portage version: 2.1.9.41/cvs/Linux x86_64)

1 # Copyright 1999-2010 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/gnome-extra/libgda/libgda-4.1.10.ebuild,v 1.2 2010/09/13 20:59:26 eva Exp $
4
5 EAPI="2"
6
7 inherit db-use eutils flag-o-matic gnome2 java-pkg-opt-2
8
9 DESCRIPTION="Gnome Database Access Library"
10 HOMEPAGE="http://www.gnome-db.org/"
11 LICENSE="GPL-2 LGPL-2"
12
13 # MDB support currently works with CVS only, so disable it in the meantime
14 # experimental IUSE: introspection
15 IUSE="berkdb bindist canvas doc firebird freetds gnome-keyring gtk graphviz ldap mysql oci8 odbc postgres sourceview xbase"
16 SLOT="4"
17 KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
18
19 # FIXME: sqlite is automagic, but maybe it is a hard-dep
20 # FIXME: autoconf is a hell of inconsistencies
21 RDEPEND="
22 app-text/iso-codes
23 >=dev-libs/glib-2.16
24 >=dev-libs/libxml2-2
25 dev-libs/libxslt
26 dev-libs/libunique
27 sys-libs/readline
28 sys-libs/ncurses
29 >=net-libs/libsoup-2.24:2.4
30 berkdb? ( sys-libs/db )
31 freetds? ( >=dev-db/freetds-0.62 )
32 !bindist? ( firebird? ( dev-db/firebird ) )
33 gtk? (
34 >=x11-libs/gtk+-2.12
35 canvas? ( x11-libs/goocanvas )
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 ldap? ( >=net-nds/openldap-2.0.25 )
41 mysql? ( virtual/mysql )
42 odbc? ( >=dev-db/unixODBC-2.0.6 )
43 postgres? ( dev-db/postgresql-base )
44 xbase? ( dev-db/xbase )
45 >=dev-db/sqlite-3.6.22:3"
46 # json? ( dev-libs/json-glib )
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 doc? ( >=dev-util/gtk-doc-1 )"
54
55 DOCS="AUTHORS ChangeLog NEWS README"
56
57 # Tests are not really good
58 RESTRICT="test"
59
60 pkg_setup() {
61 if use canvas || use graphviz || use sourceview; then
62 if ! use gtk; then
63 ewarn "You must enable USE=gtk to make use of canvas, graphivz or sourceview USE flag."
64 ewarn "Disabling for now."
65 G2CONF="${G2CONF} --without-goocanvas --without-graphivz --without-gtksourceview"
66 else
67 G2CONF="${G2CONF}
68 $(use_with canvas goocanvas)
69 $(use_with graphviz)
70 $(use_with sourceview gtksourceview)"
71 fi
72 fi
73
74 G2CONF="${G2CONF}
75 --with-unique
76 --with-libsoup
77 --disable-scrollkeeper
78 --disable-introspection
79 --disable-static
80 --enable-system-sqlite
81 $(use_with gnome-keyring)
82 $(use_with gtk ui)
83 $(use_with berkdb bdb /usr)
84 $(use_with odbc odbc /usr)
85 $(use_with mysql mysql /usr)
86 $(use_with postgres postgres /usr)
87 $(use_with freetds tds /usr)
88 $(use_with xbase xbase /usr)
89 $(use_with ldap ldap /usr)
90 $(use_with java java $JAVA_HOME)
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 use oci8 || G2CONF="${G2CONF} --without-oracle"
103
104 # Not in portage
105 G2CONF="${G2CONF}
106 --without-msql
107 --without-sybase
108 --without-ibmdb2
109 --disable-default-binary"
110 }
111
112 src_test() {
113 emake check HOME=$(unset HOME; echo "~") || die "tests failed"
114 }

  ViewVC Help
Powered by ViewVC 1.1.20