summaryrefslogtreecommitdiff
blob: aa8fb51df2bf05c639b3693deb06f817db48e9ee (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
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-libs/gtk-sharp/gtk-sharp-0.5.ebuild,v 1.3 2002/12/12 01:47:06 foser Exp $

S=${WORKDIR}/${P}
DESCRIPTION="Gtk# is a C# language binding for the GTK2 toolkit."
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
HOMEPAGE="http://gtk-sharp.sourceforge.net/"

LICENSE="LGPL"
SLOT="0"
IUSE="gnome"

DEPEND=">=dev-lang/mono-0.16
	=x11-libs/gtk+-2.0*
	>=gnome-base/libglade-2
	gnome? ( >=gnome-base/libgnomecanvas-2
		>=gnome-base/libgnomeui-2 )"

KEYWORDS="x86 -ppc"

src_compile() {
	local myconf
	myconf="--enable-glade"
	use gnome && myconf="${myconf} --enable-gnome" \
		|| myconf="${myconf} --disable-gnome"

	econf ${myconf} || die "./configure failed"

	emake || die
}

src_install () {
	# Path for the installation of the libs is hardcoded in the Makefile, 
	# so we need to change it - Is being changed, check evry release
	for i in $(find . -iname Makefile); do cp $i ${i}.orig; sed "s:${DESTDIR}/usr:${D}/usr:" $i.orig > $i; done

	einstall || die
	dodoc HACKING README* ChangeLog
}