summaryrefslogtreecommitdiff
blob: 04b6e0bc3c80b4d06f2c3e3284c71f78103265ff (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
72
73
74
75
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/gnome-extra/gnome-db/gnome-db-0.2.96.ebuild,v 1.14 2004/02/22 20:50:40 agriffis Exp $

IUSE="nls"

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"
LICENSE="GPL-2 LGPL-2.1"
KEYWORDS="x86 sparc"

RDEPEND=">=gnome-base/bonobo-1.0.9-r1
	 =gnome-extra/libgda-${PV}*
	 <gnome-extra/gal-1.99
	 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
	# disabling gtk-doc since it was broken in documentation

	./configure --host=${CHOST} \
		--prefix=/usr \
		--mandir=/usr/share/man \
		--sysconfdir=/etc \
		--localstatedir=/var/lib \
		--disable-bonobotest \
		--disable-gtk-doc \
		${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
}