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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Wed Feb 23 22:14:48 2011 UTC (7 years, 4 months ago) by pacho
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +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.2.0.ebuild,v 1.3 2010/11/01 12:18:13 eva Exp $
4
5 EAPI="3"
6
7 inherit autotools 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 IUSE="berkdb bindist canvas doc firebird freetds gnome-keyring gtk graphviz http +introspection json ldap mysql oci8 odbc postgres sourceview ssl 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="
21 app-text/iso-codes
22 >=dev-libs/glib-2.16
23 >=dev-libs/libxml2-2
24 dev-libs/libxslt
25 dev-libs/libunique
26 sys-libs/readline
27 sys-libs/ncurses
28 berkdb? ( sys-libs/db )
29 freetds? ( >=dev-db/freetds-0.62 )
30 !bindist? ( firebird? ( dev-db/firebird ) )
31 gtk? (
32 >=x11-libs/gtk+-2.12
33 canvas? ( x11-libs/goocanvas )
34 sourceview? ( x11-libs/gtksourceview:2.0 )
35 graphviz? ( media-gfx/graphviz )
36 )
37 gnome-keyring? ( || ( gnome-base/libgnome-keyring <gnome-base/gnome-keyring-2.29.4 ) )
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-2.0.25 )
42 mysql? ( virtual/mysql )
43 odbc? ( >=dev-db/unixODBC-2.0.6 )
44 postgres? ( dev-db/postgresql-base )
45 ssl? ( dev-libs/openssl )
46 xbase? ( dev-db/xbase )
47 >=dev-db/sqlite-3.6.22:3"
48 # mdb? ( >app-office/mdbtools-0.5 )
49
50 DEPEND="${RDEPEND}
51 >=dev-util/pkgconfig-0.18
52 >=dev-util/intltool-0.35.5
53 >=app-text/gnome-doc-utils-0.9
54 >=dev-util/gtk-doc-am-1
55 doc? ( >=dev-util/gtk-doc-1 )"
56
57 DOCS="AUTHORS ChangeLog NEWS README"
58
59 # Tests are not really good
60 RESTRICT="test"
61
62 pkg_setup() {
63 if use canvas || use graphviz || use sourceview; then
64 if ! use gtk; then
65 ewarn "You must enable USE=gtk to make use of canvas, graphivz or sourceview USE flag."
66 ewarn "Disabling for now."
67 G2CONF="${G2CONF} --without-goocanvas --without-graphivz --without-gtksourceview"
68 else
69 G2CONF="${G2CONF}
70 $(use_with canvas goocanvas)
71 $(use_with graphviz)
72 $(use_with sourceview gtksourceview)"
73 fi
74 fi
75
76 G2CONF="${G2CONF}
77 --with-unique
78 --disable-scrollkeeper
79 --disable-static
80 --enable-system-sqlite
81 $(use_with berkdb bdb /usr)
82 $(use_with freetds tds /usr)
83 $(use_with gnome-keyring)
84 $(use_with gtk ui)
85 $(use_with http libsoup)
86 $(use_enable introspection)
87 $(use_with java java $JAVA_HOME)
88 $(use_enable json)
89 $(use_with ldap ldap /usr)
90 $(use_with mysql mysql /usr)
91 $(use_with odbc odbc /usr)
92 $(use_with postgres postgres /usr)
93 $(use_enable ssl crypto)
94 $(use_with xbase xbase /usr)
95 --without-mdb"
96 # $(use_with mdb mdb /usr)
97
98 if use bindist; then
99 # firebird license is not GPL compatible
100 G2CONF="${G2CONF} --without-firebird"
101 else
102 G2CONF="${G2CONF} $(use_with firebird firebird /usr)"
103 fi
104
105 use berkdb && append-cppflags "-I$(db_includedir)"
106 use oci8 || G2CONF="${G2CONF} --without-oracle"
107
108 # Not in portage
109 G2CONF="${G2CONF}
110 --without-msql
111 --without-sybase
112 --without-ibmdb2
113 --disable-default-binary"
114 }
115
116 src_prepare() {
117 gnome2_src_prepare
118
119 # Fix automagic json-glib and libcrypto, upstream #630953
120 epatch "${FILESDIR}/${P}-json-libcrypto-automagic.patch"
121
122 # Fix undefined MDB, upstream #630955
123 epatch "${FILESDIR}/${P}-fix-undefined-mdb.patch"
124
125 # Fix build order for generated content, upstream #630958
126 epatch "${FILESDIR}/${P}-fix-build-order.patch"
127
128 # Fix compilation failure of keyword_hash.c, upstream #630959
129 epatch "${FILESDIR}/${P}-missing-include-in-keyword_hash-generator.patch"
130
131 intltoolize --force --copy --automake || die
132 eautoreconf
133 }
134
135 src_test() {
136 emake check HOME=$(unset HOME; echo "~") || die "tests failed"
137 }

  ViewVC Help
Powered by ViewVC 1.1.20