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

Contents of /gnome-extra/libgda/libgda-0.2.96-r1.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-r1.ebuild,v 1.8 2003/02/13 12:21:41 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 src_unpack() {
37
38 unpack ${A}
39 cd ${S}
40 patch -p1 < ${FILESDIR}/${P}-gentoo.patch || die "Patch for gcc-3.1 failed"
41
42 }
43
44 src_compile() {
45
46 local myconf
47
48 if [ "`use mysql`" ]
49 then
50 myconf="--with-mysql=/usr"
51 fi
52
53 # if [ "`use ldap`" ]
54 # then
55 # myconf="$myconf --with-ldap=/usr"
56 # fi
57 #
58 # LDAP support is currently broken
59 myconf="$myconf --without-ldap"
60
61 if [ "`use odbc`" ]
62 then
63 myconf="$myconf --with-odbc"
64 fi
65
66 if [ "`use postgres`" ]
67 then
68 myconf="$myconf --with-postgres=/usr"
69 fi
70
71 # Wierd one, it dont detect bonobo. If someone could have a look
72 # and fix if i havent gotten to it yet.
73 # myconf="$myconf --disable-bonobotest"
74
75 # Do not compile buildin sqlite
76 cp configure configure.orig
77 grep -v sqlite configure.orig >configure
78 chmod +x configure
79
80 ./configure --host=${CHOST} \
81 --prefix=/usr \
82 --sysconfdir=/etc \
83 --localstatedir=/var/lib \
84 $myconf || die
85
86 # Build and use an external version of sqlite since some versions
87 # of libgda have a bug where the buildin do not compile.
88 # Also cant hurt to use the latest version of sqlite :)
89 mv ${S}/providers/gda-default-server/gda-default.h \
90 ${S}/gda-default.h.orig
91 sed -e 's/\"build_sqlite\/sqlite\.h\"/<sqlite.h>/' \
92 ${S}/gda-default.h.orig > \
93 ${S}/providers/gda-default-server/gda-default.h || die
94 ln -s /usr/lib/libsqlite.a \
95 ${S}/providers/gda-default-server/sqlite/libsqlite.a
96 mv providers/gda-default-server/Makefile \
97 providers/gda-default-server/Makefile.orig
98 grep -v '= sqlite' providers/gda-default-server/Makefile.orig > \
99 providers/gda-default-server/Makefile
100
101 # Doesn't work with -j 4 (hallski)
102 make LDFLAGS="-lncurses" LIBREADLINE="-lreadline -lncurses" || die
103 }
104
105 src_install() {
106
107 cd ${S}/doc
108 cp Makefile Makefile.old
109 sed -e "s:scrollkeeper-update.*::g" Makefile.old > Makefile
110 rm Makefile.old
111 cd ${S}
112
113 make prefix=${D}/usr \
114 sysconfdir=${D}/etc \
115 localstatedir=${D}/var/lib \
116 INSTALLMAN3DIR=${D}/usr/share/man/man3 \
117 GDA_oafinfodir=${D}/usr/share/oaf \
118 install || die
119
120 # Not needed as we build sqlite seperately
121 # dobin providers/gda-default-server/build_sqlite/{lemon,sqlite}
122
123 dodoc AUTHORS COPYING.* ChangeLog NEWS README
124 }
125
126 pkg_postinst() {
127 echo ">>> Updating Scrollkeeper database..."
128 scrollkeeper-update >/dev/null 2>&1
129 }
130
131 pkg_postrm() {
132 echo ">>> Updating Scrollkeeper database..."
133 scrollkeeper-update >/dev/null 2>&1
134 }
135

  ViewVC Help
Powered by ViewVC 1.1.20