summaryrefslogtreecommitdiff
blob: e8d72e1f7d79c3c463e6a57c9b17b7ad5ec28501 (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
# 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.6.ebuild,v 1.2 2002/12/18 13:16:36 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
	>=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"

	# mcs wants this during build
	addwrite ~/.wapi
	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
}