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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.15 - (show annotations) (download)
Thu Nov 3 07:36:07 2005 UTC (13 years, 5 months ago) by leonardop
Branch: MAIN
CVS Tags: HEAD
Changes since 1.14: +1 -1 lines
FILE REMOVED
Pruning old ebuild+patches
(Portage version: 2.0.53_rc7)

1 # Copyright 1999-2005 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.2.ebuild,v 1.14 2005/05/11 22:47:00 leonardop Exp $
4
5 IUSE="odbc postgres mysql ldap firebird freetds sqlite mdb oci8 doc"
6
7 inherit gnome2 eutils
8
9 DESCRIPTION="Gnome Database Access Library"
10 HOMEPAGE="http://www.gnome-db.org/"
11 SLOT="1"
12 LICENSE="GPL-2 LGPL-2"
13 KEYWORDS="x86 ppc sparc alpha hppa ia64"
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 x86? ( firebird? ( dev-db/firebird ) )
26 freetds? ( >=dev-db/freetds-0.62 )
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 epatch ${FILESDIR}/${P}-gcc2_fix.patch
46
47 cd ${S}
48 # See bug #87545
49 epatch ${FILESDIR}/${P}-gcc3.4_fix.patch
50 # See bug #81724.
51 epatch ${FILESDIR}/${P}-freetds_fix.patch
52 # See bug #78314
53 epatch ${FILESDIR}/${PN}-1.0.3-gtkdoc_fixes.patch
54 # Fix compilation of firebird provider
55 epatch ${FILESDIR}/${P}-firebird_fix.patch
56 }
57
58 src_compile() {
59
60 local myconf
61
62 use mysql \
63 && myconf="${myconf} --with-mysql=/usr" \
64 || myconf="${myconf} --without-mysql"
65
66 use postgres \
67 && myconf="${myconf} --with-postgres=/usr" \
68 || myconf="${myconf} --without-postgres"
69
70 use odbc \
71 && myconf="${myconf} --with-odbc=/usr" \
72 || myconf="${myconf} --without-odbc"
73
74 use ldap \
75 && myconf="${myconf} --with-ldap=/usr" \
76 || myconf="${myconf} --without-ldap"
77
78 use sqlite \
79 && myconf="$myconf --with-sqlite=/usr" \
80 || myconf="$myconf --without-sqlite"
81
82 use freetds \
83 && myconf="$myconf --with-tds=/usr" \
84 || myconf="$myconf --without-tds"
85
86 use firebird \
87 && myconf="${myconf} --with-firebird=/usr" \
88 || myconf="${myconf} --without-firebird"
89
90 use mdb \
91 && myconf="${myconf} --with-mdb=/usr" \
92 || myconf="${myconf} --without-mdb"
93
94 # not in portage (http://linux.techass.com/projects/xdb/)
95 myconf="${myconf} --without-xbase"
96 myconf="${myconf} --without-msql"
97
98 # closed source dbs
99 myconf="${myconf} --without-ibmdb2"
100 myconf="${myconf} --without-sybase"
101 use oci8 || myconf="${myconf} --without-oracle"
102
103 # workaround for readline-4.1 profile - disables building of gda-config-tool
104 if has_version "=sys-libs/readline-4.1*"; then
105 export CONFIG_TOOL_HEADERS="wrong"
106 fi
107
108 gnome2_src_compile ${myconf}
109
110 unset CONFIG_TOOL_HEADERS
111
112 }

  ViewVC Help
Powered by ViewVC 1.1.20