summaryrefslogtreecommitdiff
blob: 5495ac83d52caa7f18d3e77c37ab13327a307df9 (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
# 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/x11-libs/rep-gtk/rep-gtk-0.15-r2.ebuild,v 1.2 2002/05/23 06:50:19 seemant Exp $

S=${WORKDIR}/${P}
DESCRIPTION="GTK/GDK bindings for the librep Lisp environment"
SRC_URI="http://prdownloads.sourceforge.net/rep-gtk/${P}.tar.gz"
HOMEPAGE="http://rep-gtk.sourceforge.net/"

DEPEND="=x11-libs/gtk+-1.2*
	>=dev-libs/librep-0.13.4
	gnome? ( >=gnome-base/libglade-0.17-r1
		 >=media-libs/gdk-pixbuf-0.11.0-r1 )"

RDEPEND="=x11-libs/gtk+-1.2*
	gnome? ( >=gnome-base/libglade-0.17-r1
		 >=media-libs/gdk-pixbuf-0.11.0-r1 )"

src_compile() {
	local myconf

	if [ -n "`use gnome`" ]
	then
		myconf="--with-gnome --with-libglade"
	else
		myconf="--without-gnome 				\
			--without-libglade				\
			--without-gdk-pixbuf 				\
			--without-gnome-canvas-pixbuf"
	fi

	./configure --host=${CHOST} 					\
		    --prefix=/usr					\
		    $myconf || die

	make || die
}

src_install() {                               
	make DESTDIR=${D} install || die

	dodoc AUTHORS BUGS COPYING ChangeLog README* TODO
	docinto examples
	dodoc examples/*
}