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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.10 - (show annotations) (download)
Mon Nov 1 12:18:13 2010 UTC (7 years, 9 months ago) by eva
Branch: MAIN
CVS Tags: HEAD
Changes since 1.9: +1 -1 lines
FILE REMOVED
Remove old revision. Fix http use flag handling, bug #343613.

(Portage version: 2.2.0_alpha3/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.0.ebuild,v 1.9 2010/07/20 15:37:29 jer Exp $
4
5 EAPI="2"
6
7 inherit autotools db-use 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 IUSE="berkdb bindist doc firebird freetds ldap mysql oci8 odbc postgres xbase"
15 SLOT="4"
16 KEYWORDS="alpha amd64 ia64 ppc ppc64 sparc x86 ~x86-fbsd"
17
18 # FIXME: sqlite is automagic, but maybe it is a hard-dep
19 # FIXME: autoconf is a hell of inconsistencies
20 RDEPEND=">=dev-libs/glib-2.16
21 >=dev-libs/libxml2-2
22 dev-libs/libxslt
23 sys-libs/readline
24 sys-libs/ncurses
25 >=net-libs/libsoup-2.24
26 berkdb? ( sys-libs/db )
27 odbc? ( >=dev-db/unixODBC-2.0.6 )
28 mysql? ( virtual/mysql )
29 postgres? ( dev-db/postgresql-base )
30 freetds? ( >=dev-db/freetds-0.62 )
31 !bindist? ( firebird? ( dev-db/firebird ) )
32 xbase? ( dev-db/xbase )
33 ldap? ( >=net-nds/openldap-2.0.25 )
34 >=dev-db/sqlite-3.6.11:3"
35 # json? ( dev-libs/json-glib )
36 # mdb? ( >app-office/mdbtools-0.5 )
37
38 DEPEND="${RDEPEND}
39 >=dev-util/pkgconfig-0.18
40 >=dev-util/intltool-0.35.5
41 dev-util/gtk-doc-am
42 doc? ( >=dev-util/gtk-doc-1 )"
43
44 DOCS="AUTHORS ChangeLog NEWS README"
45
46 # Tests are not really good
47 RESTRICT="test"
48
49 pkg_setup() {
50 G2CONF="${G2CONF}
51 --with-libsoup
52 --enable-system-sqlite
53 $(use_with berkdb bdb /usr)
54 $(use_with odbc odbc /usr)
55 $(use_with mysql mysql /usr)
56 $(use_with postgres postgres /usr)
57 $(use_with freetds tds /usr)
58 $(use_with xbase xbase /usr)
59 $(use_with ldap ldap /usr)
60 $(use_with java java $JAVA_HOME)
61 --without-mdb"
62 # $(use_with mdb mdb /usr)
63
64 if use bindist; then
65 # firebird license is not GPL compatible
66 G2CONF="${G2CONF} --without-firebird"
67 else
68 G2CONF="${G2CONF} $(use_with firebird firebird /usr)"
69 fi
70
71 use berkdb && append-cppflags "-I$(db_includedir)"
72 use oci8 || G2CONF="${G2CONF} --without-oracle"
73
74 # Not in portage
75 G2CONF="${G2CONF}
76 --without-msql
77 --without-sybase
78 --without-ibmdb2
79 --disable-default-binary"
80 }
81
82 src_prepare() {
83 gnome2_src_prepare
84
85 # Fix sandbox violations, upstream bug #579458
86 epatch "${FILESDIR}/${PN}-4.0.2-sandbox.patch"
87
88 # Fix automagic libsoup support, upstream bug #584398
89 epatch "${FILESDIR}/${PN}-4.0.2-libsoup-magic.patch"
90
91 intltoolize --force --copy --automake || die "intltoolize failed"
92 eautoreconf
93 }
94
95 src_test() {
96 emake check HOME=$(unset HOME; echo "~") || die "tests failed"
97 }

  ViewVC Help
Powered by ViewVC 1.1.20