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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.10 - (show annotations) (download)
Wed Apr 9 09:37:44 2003 UTC (15 years, 5 months ago) by liquidx
Branch: MAIN
CVS Tags: HEAD
Changes since 1.9: +1 -1 lines
FILE REMOVED
cleanup libgda

1 # Copyright 1999-2003 Gentoo Technologies, Inc.
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /home/cvsroot/gentoo-x86/gnome-extra/libgda/libgda-0.8.192.ebuild,v 1.9 2003/02/13 12:21:54 vapier Exp $
4
5 IUSE="sqlite oci8 odbc postgres mysql"
6
7 inherit gnome2
8
9 S=${WORKDIR}/${P}
10 DESCRIPTION="gda library"
11 SRC_URI="ftp://ftp.gnome-db.org/pub/gnome-db/sources/v0.8.192/${P}.tar.gz
12 ftp://ftp.gnome.org/pub/gnome/2.0.0/sources/${PN}/${P}.tar.gz"
13 HOMEPAGE="http://www.gnome.org/gnome-db"
14 SLOT="0"
15 LICENSE="GPL-2 LGPL-2"
16 KEYWORDS="x86 sparc ppc"
17
18 DEPEND=">=dev-libs/glib-2.0.4
19 >=dev-libs/libxml2-2.4.23
20 >=gnome-base/oaf-0.6.8
21 >=gnome-base/gconf-1.2.0
22 >=dev-libs/libxslt-1.0.19
23 >=dev-libs/popt-1.6.3
24 >=sys-libs/zlib-1.1.4
25 mysql? ( >=dev-db/mysql-3.23.51 )
26 postgres? ( >=dev-db/postgresql-7.2.1 )
27 odbc? ( >=dev-db/unixODBC-2.0.6 )
28 sqlite? ( >=dev-db/sqlite-2.4.2 )"
29
30 src_compile() {
31
32 local myconf
33
34 if [ "`use mysql`" ]
35 then
36 myconf="--with-mysql=/usr"
37 else
38 myconf="--without-mysql"
39 fi
40
41 if [ "`use postgres`" ]
42 then
43 myconf="$myconf --with-postgres=/usr"
44 else
45 myconf="$myconf --without-postgres"
46 fi
47
48 if [ "`use odbc`" ]
49 then
50 myconf="$myconf --with-odbc"
51 else
52 myconf="$myconf --without-odbc"
53 fi
54
55 if [ "`use sqlite`" ]
56 then
57 myconf="$myconf --with-sqlite=/usr"
58 else
59 myconf="$myconf --without-sqlite"
60 fi
61
62 if [ !"`use oci8`" ]
63 then
64 myconf="$myconf --without-oracle"
65 fi
66
67 econf $myconf || die "configure failed"
68
69 # Doesn't work with -j 4 (hallski)
70 make LDFLAGS="-lncurses" LIBREADLINE="-lreadline -lncurses" \
71 || die "make failed"
72 }
73
74 src_install() {
75
76 cd ${S}/doc
77 cp Makefile Makefile.old
78 sed -e "s:scrollkeeper-update.*::g" Makefile.old > Makefile
79 rm Makefile.old
80 cd ${S}
81
82 make prefix=${D}/usr \
83 sysconfdir=${D}/etc \
84 localstatedir=${D}/var/lib \
85 INSTALLMAN3DIR=${D}/usr/share/man/man3 \
86 GDA_oafinfodir=${D}/usr/share/oaf \
87 idldir=${D}/usr/share/idl/libgda \
88 dtddir=${D}/usr/share/libgda/dtd \
89 datadir=${D}/usr/share \
90 install || die
91
92 dodoc AUTHORS COPYING.* ChangeLog NEWS README
93 }

  ViewVC Help
Powered by ViewVC 1.1.20