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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.10 - (show annotations) (download)
Wed Apr 20 16:54:11 2011 UTC (7 years, 5 months ago) by pacho
Branch: MAIN
CVS Tags: HEAD
Changes since 1.9: +1 -1 lines
FILE REMOVED
Version bump, remove old.

(Portage version: 2.1.9.46/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-4.1.4-r1.ebuild,v 1.9 2011/03/08 05:21:17 nirbheek 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 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:2
24 >=dev-libs/libxml2-2:2
25 dev-libs/libxslt
26 dev-libs/libunique:1
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:2
35 canvas? ( x11-libs/goocanvas:0 )
36 sourceview? ( x11-libs/gtksourceview:2.0 )
37 graphviz? ( media-gfx/graphviz )
38 )
39 ldap? ( >=net-nds/openldap-2.0.25 )
40 mysql? ( virtual/mysql )
41 odbc? ( >=dev-db/unixODBC-2.0.6 )
42 postgres? ( dev-db/postgresql-base )
43 xbase? ( dev-db/xbase )
44 >=dev-db/sqlite-3.6.22:3"
45 # json? ( dev-libs/json-glib )
46 # mdb? ( >app-office/mdbtools-0.5 )
47
48 DEPEND="${RDEPEND}
49 >=dev-util/pkgconfig-0.18
50 >=dev-util/intltool-0.35.5
51 doc? ( >=dev-util/gtk-doc-1 )"
52
53 DOCS="AUTHORS ChangeLog NEWS README"
54
55 # Tests are not really good
56 RESTRICT="test"
57
58 pkg_setup() {
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 --with-unique
74 --with-libsoup
75 --disable-introspection
76 --disable-static
77 --enable-system-sqlite
78 $(use_with gtk ui)
79 $(use_with berkdb bdb /usr)
80 $(use_with odbc odbc /usr)
81 $(use_with mysql mysql /usr)
82 $(use_with postgres postgres /usr)
83 $(use_with freetds tds /usr)
84 $(use_with xbase xbase /usr)
85 $(use_with ldap ldap /usr)
86 $(use_with java java $JAVA_HOME)
87 --without-mdb"
88 # $(use_with mdb mdb /usr)
89
90 if use bindist; then
91 # firebird license is not GPL compatible
92 G2CONF="${G2CONF} --without-firebird"
93 else
94 G2CONF="${G2CONF} $(use_with firebird firebird /usr)"
95 fi
96
97 use berkdb && append-cppflags "-I$(db_includedir)"
98 use oci8 || G2CONF="${G2CONF} --without-oracle"
99
100 # Not in portage
101 G2CONF="${G2CONF}
102 --without-msql
103 --without-sybase
104 --without-ibmdb2
105 --disable-default-binary"
106 }
107
108 src_prepare() {
109 gnome2_src_prepare
110
111 # Fix missing header installation, bug #308793
112 epatch "${FILESDIR}/${PN}-4.1.4-install-header.patch"
113 }
114
115 src_test() {
116 emake check HOME=$(unset HOME; echo "~") || die "tests failed"
117 }

  ViewVC Help
Powered by ViewVC 1.1.20