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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.12 - (show annotations) (download)
Sat Nov 10 12:12:20 2007 UTC (11 years, 6 months ago) by nixnut
Branch: MAIN
Changes since 1.11: +2 -2 lines
Stable on ppc wrt bug 197799
(Portage version: 2.1.3.19)

1 # Copyright 1999-2007 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/gnome-extra/libgda/libgda-1.2.4.ebuild,v 1.11 2007/11/08 21:58:09 dang Exp $
4
5 WANT_AUTOMAKE="1.9"
6 WANT_AUTOCONF="2.5"
7
8 inherit autotools db-use eutils flag-o-matic gnome2
9
10 DESCRIPTION="Gnome Database Access Library"
11 HOMEPAGE="http://www.gnome-db.org/"
12 LICENSE="GPL-2 LGPL-2"
13
14 IUSE="berkdb doc freetds ldap mdb mysql oci8 odbc postgres sqlite3 xbase"
15 SLOT="1"
16 KEYWORDS="alpha amd64 hppa ia64 ppc ppc64 sparc x86 ~x86-fbsd"
17
18 RDEPEND=">=dev-libs/glib-2
19 >=dev-libs/libxml2-2
20 >=dev-libs/libxslt-1.0.9
21 sys-libs/readline
22 sys-libs/ncurses
23 dev-libs/popt
24 berkdb? ( sys-libs/db )
25 odbc? ( >=dev-db/unixODBC-2.0.6 )
26 mysql? ( virtual/mysql )
27 postgres? ( >=dev-db/libpq-7.2.1 )
28 freetds? ( >=dev-db/freetds-0.62 )
29 xbase? ( dev-db/xbase )
30 sqlite3? ( >=dev-db/sqlite-3 )
31 mdb? ( >=app-office/mdbtools-0.5 )
32 ldap? ( >=net-nds/openldap-2.0.25 )"
33
34 DEPEND="${RDEPEND}
35 >=dev-util/pkgconfig-0.9
36 >=dev-util/intltool-0.30
37 app-text/scrollkeeper
38 doc? ( >=dev-util/gtk-doc-1 )"
39
40 DOCS="AUTHORS ChangeLog NEWS README"
41
42 # problems with parallel builds
43 MAKEOPTS="${MAKEOPTS} -j1"
44
45 pkg_setup() {
46 G2CONF="$(use_with berkdb bdb /usr) \
47 $(use_with freetds tds /usr) \
48 $(use_with ldap ldap /usr) \
49 $(use_with mdb mdb /usr) \
50 $(use_with mysql mysql /usr) \
51 $(use_with odbc odbc /usr) \
52 $(use_with postgres postgres /usr) \
53 $(use_with sqlite3 sqlite /usr) \
54 $(use_with xbase xbase /usr)"
55
56 use berkdb && append-cppflags "-I$(db_includedir)"
57 use oci8 || G2CONF="${G2CONF} --without-oracle"
58
59 # not in portage
60 G2CONF="${G2CONF} --without-msql --without-sybase --without-ibmdb2"
61 # Broken with firebird in portage; fixed in 3.x versions bug #183465
62 G2CONF="${G2CONF} --without-firebird"
63 }
64
65 src_unpack() {
66 gnome2_src_unpack
67
68 # Fix freetds API problems
69 epatch "${FILESDIR}"/${P}-freetds_api_fixes.patch
70 # Fix compilation of the mdb provider
71 epatch "${FILESDIR}"/${PN}-1.2.3-mdb_api.patch
72 # Fix tests
73 echo "libsql/parser.c" >> po/POTFILES.in
74
75 sed -n -e '/GTK_DOC_CHECK/,/IT_PROG_INTLTOOL/p' aclocal.m4 > gtk-doc.m4
76 intltoolize --automake -c -f || die "intltoolize failed"
77 AT_M4DIR="." eautoreconf
78 }

  ViewVC Help
Powered by ViewVC 1.1.20