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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.14 - (show annotations) (download)
Tue Jan 31 05:22:16 2006 UTC (12 years, 4 months ago) by leonardop
Branch: MAIN
CVS Tags: HEAD
Changes since 1.13: +1 -1 lines
FILE REMOVED
New version: 1.2.3
(Portage version: 2.1_pre4-r1)

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.3.ebuild,v 1.13 2005/10/30 15:04:12 leonardop 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 x86? ( 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}/${P}-gtkdoc_fixes.patch
48
49 # Fix gcc 3.4 compilation. See bug #49234
50 epatch ${FILESDIR}/${P}-gcc3.4.patch
51 }
52
53 src_compile() {
54
55 local myconf
56
57 use mysql \
58 && myconf="${myconf} --with-mysql=/usr" \
59 || myconf="${myconf} --without-mysql"
60
61 use postgres \
62 && myconf="${myconf} --with-postgres=/usr" \
63 || myconf="${myconf} --without-postgres"
64
65 use odbc \
66 && myconf="${myconf} --with-odbc=/usr" \
67 || myconf="${myconf} --without-odbc"
68
69 use ldap \
70 && myconf="${myconf} --with-ldap=/usr" \
71 || myconf="${myconf} --without-ldap"
72
73 use sqlite \
74 && myconf="$myconf --with-sqlite=/usr" \
75 || myconf="$myconf --without-sqlite"
76
77 use freetds \
78 && myconf="$myconf --with-tds=/usr" \
79 || myconf="$myconf --without-tds"
80
81 use firebird \
82 && myconf="${myconf} --with-firebird=/usr" \
83 || myconf="${myconf} --without-firebird"
84
85 use mdb \
86 && myconf="${myconf} --with-mdb=/usr" \
87 || myconf="${myconf} --without-mdb"
88
89 # not in portage (http://linux.techass.com/projects/xdb/)
90 myconf="${myconf} --without-xbase"
91 myconf="${myconf} --without-msql"
92
93 # closed source dbs
94 myconf="${myconf} --without-ibmdb2"
95 myconf="${myconf} --without-sybase"
96 use oci8 || myconf="${myconf} --without-oracle"
97
98 # workaround for readline-4.1 profile - disables building of gda-config-tool
99 if has_version "=sys-libs/readline-4.1*"; then
100 export CONFIG_TOOL_HEADERS="wrong"
101 fi
102
103 gnome2_src_compile ${myconf}
104
105 unset CONFIG_TOOL_HEADERS
106
107 }

  ViewVC Help
Powered by ViewVC 1.1.20