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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Fri Jun 7 20:43:21 2002 UTC (16 years, 10 months ago) by azarah
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
new version

1 # Copyright 1999-2002 Gentoo Technologies, Inc.
2 # Distributed under the terms of the GNU General Public License, v2 or later
3 # Maintainer: Achim Gottinger <achim@gentoo.org>
4 # $Header: /home/cvsroot/gentoo-x86/gnome-extra/libgda/libgda-0.2.95.ebuild,v 1.1 2002/01/27 14:02:54 azarah Exp $
5
6 S=${WORKDIR}/${P}
7 DESCRIPTION="gda lib"
8 SRC_URI="ftp://ftp.gnome-db.org/pub/gnome-db/sources/latest/${P}.tar.gz
9 ftp://ftp.gnome.org/pub/GNOME/stable/sources/${PN}/${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 >=dev-libs/libxslt-1.0.1
17 >=sys-libs/gdbm-1.8.0
18 >=sys-libs/readline-4.1
19 >=dev-perl/CORBA-ORBit-0.4.3
20 >=dev-db/sqlite-2.0.8
21 mysql? ( >=dev-db/mysql-3.23.26 )
22 postgres? ( >=dev-db/postgresql-7.1 )
23 odbc? ( >=dev-db/unixODBC-1.8.13 )
24 ldap? ( >=net-nds/openldap-1.2.11 )"
25
26 DEPEND="${RDEPEND}
27 sys-apps/which"
28
29
30 src_compile() {
31
32 local myconf
33
34 if [ "`use mysql`" ]
35 then
36 myconf="--with-mysql=/usr"
37 fi
38
39 if [ "`use ldap`" ]
40 then
41 myconf="$myconf --with-ldap=/usr"
42 fi
43
44 if [ "`use odbc`" ]
45 then
46 myconf="$myconf --with-odbc"
47 fi
48
49 if [ "`use postgres`" ]
50 then
51 myconf="$myconf --with-postgres=/usr"
52 fi
53
54 # Wierd one, it dont detect bonobo. If someone could have a look
55 # and fix if i havent gotten to it yet.
56 # myconf="$myconf --disable-bonobotest"
57
58 # Do not compile buildin sqlite
59 cp configure configure.orig
60 grep -v sqlite configure.orig >configure
61 chmod +x configure
62
63 ./configure --host=${CHOST} \
64 --prefix=/usr \
65 --sysconfdir=/etc \
66 --localstatedir=/var/lib \
67 $myconf || die
68
69 # Build and use an external version of sqlite since some versions
70 # of libgda have a bug where the buildin do not compile.
71 # Also cant hurt to use the latest version of sqlite :)
72 mv ${S}/providers/gda-default-server/gda-default.h \
73 ${S}/gda-default.h.orig
74 sed -e 's/\"build_sqlite\/sqlite\.h\"/<sqlite.h>/' \
75 ${S}/gda-default.h.orig > \
76 ${S}/providers/gda-default-server/gda-default.h || die
77 ln -s /usr/lib/libsqlite.a \
78 ${S}/providers/gda-default-server/sqlite/libsqlite.a
79 mv providers/gda-default-server/Makefile \
80 providers/gda-default-server/Makefile.orig
81 grep -v '= sqlite' providers/gda-default-server/Makefile.orig > \
82 providers/gda-default-server/Makefile
83
84 # Doesn't work with -j 4 (hallski)
85 make LDFLAGS="-lncurses" LIBREADLINE="-lreadline -lncurses" || die
86 }
87
88 src_install() {
89
90 cd ${S}/doc
91 cp Makefile Makefile.old
92 sed -e "s:scrollkeeper-update.*::g" Makefile.old > Makefile
93 rm Makefile.old
94 cd ${S}
95
96 make prefix=${D}/usr \
97 sysconfdir=${D}/etc \
98 localstatedir=${D}/var/lib \
99 INSTALLMAN3DIR=${D}/usr/share/man/man3 \
100 GDA_oafinfodir=${D}/usr/share/oaf \
101 install || die
102
103 into /usr
104
105 # Not needed as we build sqlite seperately
106 # dobin providers/gda-default-server/build_sqlite/{lemon,sqlite}
107
108 dodoc AUTHORS COPYING.* ChangeLog NEWS README
109 }
110
111 pkg_postinst() {
112 echo ">>> Updating Scrollkeeper database..."
113 scrollkeeper-update >/dev/null 2>&1
114 }
115
116 pkg_postrm() {
117 echo ">>> Updating Scrollkeeper database..."
118 scrollkeeper-update >/dev/null 2>&1
119 }

  ViewVC Help
Powered by ViewVC 1.1.20