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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Fri Aug 6 00:29:48 2004 UTC (14 years, 8 months ago) by arj
Branch: MAIN
Changes since 1.1: +4 -4 lines
new sqlite ebuild slot

1 # Copyright 1999-2004 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.0.4.ebuild,v 1.1 2004/08/05 13:36:10 liquidx Exp $
4
5 inherit gnome2 eutils
6
7 DESCRIPTION="Gnome Database Access Library"
8 HOMEPAGE="http://www.gnome-db.org/"
9 LICENSE="GPL-2 LGPL-2"
10
11 IUSE="odbc postgres mysql ldap firebird freetds sqlite mdb oci8 doc"
12 SLOT="1"
13 KEYWORDS="~x86 ~ppc ~sparc ~alpha ~ia64 ~amd64"
14
15 RDEPEND=">=dev-libs/glib-2.0
16 >=dev-libs/libxml2-2.0
17 >=dev-libs/libxslt-1.0.9
18 >=gnome-base/gnome-vfs-2.0
19 dev-libs/popt
20 sys-libs/ncurses
21 mysql? ( >=dev-db/mysql-3.23.51 )
22 postgres? ( >=dev-db/postgresql-7.2.1 )
23 odbc? ( >=dev-db/unixODBC-2.0.6 )
24 ldap? ( >=net-nds/openldap-2.0.25 )
25 !ppc? ( !sparc? ( !alpha? ( !ia64? ( !amd64? ( firebird? ( dev-db/firebird ) ) ) ) ) )
26 freetds? ( >=dev-db/freetds-0.5 )
27 sqlite? ( =dev-db/sqlite-2* )
28 !ia64? ( mdb? ( >=app-office/mdbtools-0.5 ) )"
29
30 DEPEND=">=dev-util/pkgconfig-0.8
31 >=dev-util/intltool-0.22
32 >=sys-devel/gettext-0.11
33 app-text/scrollkeeper
34 doc? ( dev-util/gtk-doc )
35 ${RDEPEND}"
36
37 DOCS="AUTHORS COPYING* ChangeLog INSTALL NEWS README"
38
39 # problems with parallel builds
40 MAKEOPTS="${MAKEOPTS} -j1"
41
42 src_unpack() {
43 unpack ${A}
44 gnome2_omf_fix ${S}/doc/Makefile.in
45 cd ${S}
46 # Fix libgda's manual source. See bug #46337.
47 epatch ${FILESDIR}/${PN}-1.0.3-gtkdoc_fixes.patch
48 # Fix gcc 3.4 compilation. See bug #49234
49 epatch ${FILESDIR}/${PN}-1.0.3-gcc3.4.patch
50 # freetds patch (#48611)
51 epatch ${FILESDIR}/${PN}-1.0.4-freetds-0.6x.patch
52
53 }
54
55 src_compile() {
56
57 local myconf
58
59 use mysql \
60 && myconf="${myconf} --with-mysql=/usr" \
61 || myconf="${myconf} --without-mysql"
62
63 use postgres \
64 && myconf="${myconf} --with-postgres=/usr" \
65 || myconf="${myconf} --without-postgres"
66
67 use odbc \
68 && myconf="${myconf} --with-odbc=/usr" \
69 || myconf="${myconf} --without-odbc"
70
71 use ldap \
72 && myconf="${myconf} --with-ldap=/usr" \
73 || myconf="${myconf} --without-ldap"
74
75 use sqlite \
76 && myconf="$myconf --with-sqlite=/usr" \
77 || myconf="$myconf --without-sqlite"
78
79 use freetds \
80 && myconf="$myconf --with-tds=/usr" \
81 || myconf="$myconf --without-tds"
82
83 use firebird \
84 && myconf="${myconf} --with-firebird=/usr" \
85 || myconf="${myconf} --without-firebird"
86
87 use mdb \
88 && myconf="${myconf} --with-mdb=/usr" \
89 || myconf="${myconf} --without-mdb"
90
91 # not in portage (http://linux.techass.com/projects/xdb/)
92 myconf="${myconf} --without-xbase"
93 myconf="${myconf} --without-msql"
94
95 # closed source dbs
96 myconf="${myconf} --without-ibmdb2"
97 myconf="${myconf} --without-sybase"
98 use oci8 || myconf="${myconf} --without-oracle"
99
100 # workaround for readline-4.1 profile - disables building of gda-config-tool
101 if has_version "=sys-libs/readline-4.1*"; then
102 export CONFIG_TOOL_HEADERS="wrong"
103 fi
104
105 gnome2_src_compile ${myconf}
106
107 unset CONFIG_TOOL_HEADERS
108
109 }

  ViewVC Help
Powered by ViewVC 1.1.20