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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.20 - (show annotations) (download)
Mon May 22 17:21:16 2006 UTC (12 years, 4 months ago) by dang
Branch: MAIN
CVS Tags: HEAD
Changes since 1.19: +1 -1 lines
FILE REMOVED
Remove vulnerable versions from glsa(200511-01)
(Portage version: 2.1_rc1-r4)
 (Signed Manifest commit)

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

  ViewVC Help
Powered by ViewVC 1.1.20