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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Sat Nov 10 13:54:53 2001 UTC (17 years, 5 months ago) by hallski
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +0 -0 lines
FILE REMOVED
cleaned up old versions

1 # Copyright 1999-2000 Gentoo Technologies, Inc.
2 # Distributed under the terms of the GNU General Public License, v2 or later
3 # Author Achim Gottinger <achim@gentoo.org>
4 # $Header
5
6 S=${WORKDIR}/${P}
7 DESCRIPTION="gda lib"
8 SRC_URI="ftp://ftp.gnome.org/pub/GNOME/stable/sources/gnome-db/${P}.tar.gz
9 ftp://ftp.gnome-db.org/pub/gnome-db/sources/${PV}/${P}.tar.gz"
10 HOMEPAGE="http://www.gnome.org/gnome-db"
11
12 RDEPEND="virtual/glibc
13 >=gnome-base/gconf-1.0.4-r2
14 >=gnome-base/oaf-0.6.6-r1
15 >=gnome-base/bonobo-1.0.9-r1
16 >=sys-libs/gdbm-1.8.0
17 >=sys-libs/readline-4.1
18 >=dev-perl/CORBA-ORBit-0.4.3
19 >=dev-db/sqlite-2.0.1
20 mysql? ( >=dev-db/mysql-3.23.26 )
21 postgres? ( >=dev-db/postgresql-7.1 )
22 odbc? ( >=dev-db/unixODBC-1.8.13 )
23 ldap? ( >=net-nds/openldap-1.2.11 )"
24
25 DEPEND="${RDEPEND}
26 sys-apps/which"
27
28 src_compile() {
29 local myconf
30
31 if [ "`use mysql`" ]
32 then
33 myconf="--with-mysql=/usr"
34 fi
35
36 if [ "`use ldap`" ]
37 then
38 myconf="$myconf --with-ldap=/usr"
39 fi
40
41 if [ "`use odbc`" ]
42 then
43 myconf="$myconf --with-odbc"
44 fi
45
46 if [ "`use postgres`" ]
47 then
48 myconf="$myconf --with-postgres=/usr"
49 fi
50
51 # Wierd one, it dont detect bonobo. If someone could have a look
52 # and fix if i havent gotten to it yet.
53 myconf="$myconf --disable-bonobotest"
54
55 ./configure --host=${CHOST} \
56 --prefix=/usr \
57 --sysconfdir=/etc \
58 --localstatedir=/var/lib \
59 $myconf || die
60
61 # Wierd hack I had to do to get it to compile (seems the buildin sqlite
62 # do not compile by default).
63 mv ${S}/providers/gda-default-server/gda-default.h ${S}/gda-default.h.orig
64 sed -e 's/\"build_sqlite\/sqlite\.h\"/<sqlite.h>/' ${S}/gda-default.h.orig >${S}/providers/gda-default-server/gda-default.h
65 ln -s /usr/lib/libsqlite.a ${S}/providers/gda-default-server/libsqlite.a
66
67 # Doesn't work with -j 4 (hallski)
68 make LDFLAGS="-lncurses" LIBREADLINE="-lreadline -lncurses" || die
69 }
70
71 src_install() {
72 make prefix=${D}/usr \
73 sysconfdir=${D}/etc \
74 localstatedir=${D}/var/lib \
75 INSTALLMAN3DIR=${D}/usr/share/man/man3 \
76 GDA_oafinfodir=${D}/usr/share/oaf install || die
77
78 into /usr
79 dobin providers/gda-default-server/build_sqlite/{lemon,sqlite}
80 dodoc AUTHORS COPYING.* ChangeLog NEWS README
81 }

  ViewVC Help
Powered by ViewVC 1.1.20