blob: 57914032695436d6bbdf7a656463743f19a284f5 (
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-2003 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.4 2003/02/13 10:39:44 vapier 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
}
|