blob: ea7259239650f489b07607e2ce10009eb7fa711c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
|
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Maintainer: Achim Gottinger <achim@gentoo.org>
# $Header: /var/cvsroot/gentoo-x86/gnome-extra/gnome-db/gnome-db-0.2.96.ebuild,v 1.1 2002/06/07 20:43:26 azarah Exp $
S=${WORKDIR}/${P}
DESCRIPTION="Framework for creating database applications"
SRC_URI="ftp://ftp.gnome-db.org/pub/gnome-db/sources/latest/${P}.tar.gz
ftp://ftp.gnome.org/pub/GNOME/stable/sources/${PN}/${P}.tar.gz"
HOMEPAGE="http://www.gnome.org/gnome-office/gnomedb.shtml"
SLOT="0"
RDEPEND=">=gnome-base/bonobo-1.0.9-r1
>=gnome-extra/libgda-${PV}
>=gnome-extra/gal-0.13-r1
nls? ( sys-devel/gettext )"
DEPEND="${RDEPEND}
>=dev-util/intltool-0.11"
src_compile() {
local myopts
if [ "`use nls`" ]
then
myopts="--enable-nls"
else
myopts="--disable-nls"
fi
./configure --host=${CHOST} \
--prefix=/usr \
--mandir=/usr/share/man \
--sysconfdir=/etc \
--localstatedir=/var/lib \
--disable-bonobotest \
${myopts} || die
emake || die
}
src_install() {
cd ${S}/doc
cp Makefile Makefile.orig
sed -e "s:scrollkeeper-update.*::g" Makefile.orig > Makefile
rm -f Makefile.orig
cd ${S}
make prefix=${D}/usr \
sysconfdir=${D}/etc \
mandir=${D}/usr/share/man \
localstatedir=${D}/var/lib \
localedir=${D}/usr/share/locale \
GNOME_sysconfdir=${D}/etc \
GNOME_datadir=${D}/usr/share \
GNOMEDB_oafinfodir=${D}/usr/share/oaf \
GNOMEDB_oafdir=${D}/usr/share/oaf \
install || die
dodoc AUTHORS COPYING ChangeLog README
}
pkg_postinst() {
echo ">>> Updating Scrollkeeper database..."
scrollkeeper-update >/dev/null 2>&1
}
pkg_postrm() {
echo ">>> Updating Scrollkeeper database..."
scrollkeeper-update >/dev/null 2>&1
}
|