summaryrefslogtreecommitdiff
blob: 966e0ca02f743e071ac368f59a7500675584578a (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
# Copyright 1999-2000 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Author Achim Gottinger <achim@gentoo.org>
# $Header: /var/cvsroot/gentoo-x86/dev-util/glade/glade-0.6.2.ebuild,v 1.8 2001/11/10 12:45:09 hallski Exp $

S=${WORKDIR}/${P}
DESCRIPTION="glade"
SRC_URI="ftp://ftp.gnome.org/pub/GNOME/stable/sources/glade/${P}.tar.gz"
HOMEPAGE="http://www.gnome.org/"

RDEPEND=">=x11-libs/gtk+-1.2.10-r4
	 gnome? ( >=gnome-base/gnome-libs-1.4.1.2-r1 )
         bonobo? ( >=gnome-base/bonobo-1.0.9-r1 )"

DEPEND="${RDEPEND}
	nls? ( sys-devel/gettext )
        >=dev-util/intltool-0.11
        >=app-text/scrollkeeper-0.2"

src_compile() {
	local myopts

	if [ -z "`use gnome`" ]
	then
		myopts="--disable-gnome"
	fi

	if [ "`use bonobo`" ]
	then
		myopts="$myopts --with-bonobo"
	else
		myopts="$myopts --without-bonobo"
	fi

	if [ -z "`use nls`" ]
	then
		myopts="$myopts --disable-nls"
	fi

	if [ "$DEBUG" ]
	then
		myopts="$myopts --enable-debug"
	fi

	./configure --host=${CHOST} 					\
		    --prefix=/usr					\
		    --sysconfdir=/etc					\
		    --disable-gnome-db 					\
		    ${myopts}  || die

	emake || die
}

src_install() {
	make prefix=${D}/usr 						\
	     sysconfdir=${D}/etc 					\
	     install || die

	dodoc AUTHORS COPYING* FAQ NEWS README* TODO
}