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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.9 - (show annotations) (download)
Wed Apr 9 09:37:44 2003 UTC (16 years ago) by liquidx
Branch: MAIN
CVS Tags: HEAD
Changes since 1.8: +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.2.96.ebuild,v 1.8 2003/02/13 12:21:49 vapier Exp $
4
5 IUSE="ldap odbc postgres mysql"
6
7 S=${WORKDIR}/${P}
8 DESCRIPTION="gda lib"
9 SRC_URI="ftp://ftp.gnome-db.org/pub/gnome-db/sources/latest/${P}.tar.gz
10 ftp://ftp.gnome.org/pub/GNOME/stable/sources/${PN}/${P}.tar.gz"
11 HOMEPAGE="http://www.gnome.org/gnome-db"
12 SLOT="0"
13 LICENSE="GPL-2 LGPL-2"
14 KEYWORDS="x86 sparc "
15
16
17 RDEPEND="virtual/glibc
18 >=gnome-base/gconf-1.0.4-r2
19 <gnome-base/gconf-1.1
20 >=gnome-base/oaf-0.6.6-r1
21 >=gnome-base/bonobo-1.0.9-r1
22 >=dev-libs/libxslt-1.0.1
23 >=sys-libs/gdbm-1.8.0
24 >=sys-libs/readline-4.1
25 >=dev-perl/CORBA-ORBit-0.4.3
26 >=dev-db/sqlite-2.0.8
27 mysql? ( >=dev-db/mysql-3.23.26 )
28 postgres? ( >=dev-db/postgresql-7.1 )
29 odbc? ( >=dev-db/unixODBC-1.8.13 )
30 ldap? ( >=net-nds/openldap-1.2.11 )"
31
32 DEPEND="${RDEPEND}
33 >=app-text/scrollkeeper-0.2-r3
34 sys-apps/which"
35
36
37 src_compile() {
38
39 local myconf
40
41 if [ "`use mysql`" ]
42 then
43 myconf="--with-mysql=/usr"
44 fi
45
46 # if [ "`use ldap`" ]
47 # then
48 # myconf="$myconf --with-ldap=/usr"
49 # fi
50 #
51 # LDAP support is currently broken
52 myconf="$myconf --without-ldap"
53
54 if [ "`use odbc`" ]
55 then
56 myconf="$myconf --with-odbc"
57 fi
58
59 if [ "`use postgres`" ]
60 then
61 myconf="$myconf --with-postgres=/usr"
62 fi
63
64 # Wierd one, it dont detect bonobo. If someone could have a look
65 # and fix if i havent gotten to it yet.
66 # myconf="$myconf --disable-bonobotest"
67
68 # Do not compile buildin sqlite
69 cp configure configure.orig
70 grep -v sqlite configure.orig >configure
71 chmod +x configure
72
73 ./configure --host=${CHOST} \
74 --prefix=/usr \
75 --sysconfdir=/etc \
76 --localstatedir=/var/lib \
77 $myconf || die
78
79 # Build and use an external version of sqlite since some versions
80 # of libgda have a bug where the buildin do not compile.
81 # Also cant hurt to use the latest version of sqlite :)
82 mv ${S}/providers/gda-default-server/gda-default.h \
83 ${S}/gda-default.h.orig
84 sed -e 's/\"build_sqlite\/sqlite\.h\"/<sqlite.h>/' \
85 ${S}/gda-default.h.orig > \
86 ${S}/providers/gda-default-server/gda-default.h || die
87 ln -s /usr/lib/libsqlite.a \
88 ${S}/providers/gda-default-server/sqlite/libsqlite.a
89 mv providers/gda-default-server/Makefile \
90 providers/gda-default-server/Makefile.orig
91 grep -v '= sqlite' providers/gda-default-server/Makefile.orig > \
92 providers/gda-default-server/Makefile
93
94 # Doesn't work with -j 4 (hallski)
95 make LDFLAGS="-lncurses" LIBREADLINE="-lreadline -lncurses" || die
96 }
97
98 src_install() {
99
100 cd ${S}/doc
101 cp Makefile Makefile.old
102 sed -e "s:scrollkeeper-update.*::g" Makefile.old > Makefile
103 rm Makefile.old
104 cd ${S}
105
106 make prefix=${D}/usr \
107 sysconfdir=${D}/etc \
108 localstatedir=${D}/var/lib \
109 INSTALLMAN3DIR=${D}/usr/share/man/man3 \
110 GDA_oafinfodir=${D}/usr/share/oaf \
111 install || die
112
113 # Not needed as we build sqlite seperately
114 # dobin providers/gda-default-server/build_sqlite/{lemon,sqlite}
115
116 dodoc AUTHORS COPYING.* ChangeLog NEWS README
117 }
118
119 pkg_postinst() {
120 echo ">>> Updating Scrollkeeper database..."
121 scrollkeeper-update >/dev/null 2>&1
122 }
123
124 pkg_postrm() {
125 echo ">>> Updating Scrollkeeper database..."
126 scrollkeeper-update >/dev/null 2>&1
127 }
128

  ViewVC Help
Powered by ViewVC 1.1.20