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

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

Parent Directory Parent Directory | Revision Log Revision Log


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

1 azarah 1.1 # Copyright 1999-2000 Gentoo Technologies, Inc.
2     # Distributed under the terms of the GNU General Public License, v2 or later
3     # Author Achim Gottinger <achim@gentoo.org>
4 azarah 1.3 # $Header: /home/cvsroot/gentoo-x86/gnome-extra/libgda/libgda-0.2.93.ebuild,v 1.2 2001/11/05 12:27:05 achim Exp $
5 azarah 1.1
6     S=${WORKDIR}/${P}
7     DESCRIPTION="gda lib"
8     SRC_URI="ftp://ftp.gnome.org/pub/GNOME/stable/sources/gnome-db/${P}.tar.gz
9     ftp://ftp.gnome-db.org/pub/gnome-db/sources/${PV}/${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 achim 1.2 >=dev-libs/libxslt-1.0.1
17 azarah 1.1 >=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     make prefix=${D}/usr \
91     sysconfdir=${D}/etc \
92     localstatedir=${D}/var/lib \
93     INSTALLMAN3DIR=${D}/usr/share/man/man3 \
94     GDA_oafinfodir=${D}/usr/share/oaf \
95     install || die
96    
97     into /usr
98    
99     # Not needed as we build sqlite seperately
100     # dobin providers/gda-default-server/build_sqlite/{lemon,sqlite}
101    
102     dodoc AUTHORS COPYING.* ChangeLog NEWS README
103     }

  ViewVC Help
Powered by ViewVC 1.1.20