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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.18 - (show annotations) (download)
Thu Aug 5 13:36:10 2004 UTC (14 years, 8 months ago) by liquidx
Branch: MAIN
CVS Tags: HEAD
Changes since 1.17: +1 -1 lines
FILE REMOVED
cleanup. new version thanks to Robert Davis <rdavis@unico.com> (#48611)

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

  ViewVC Help
Powered by ViewVC 1.1.20