blob: 7e092eee862563fa3ffc2783200454f94f6c6f4d (
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
|
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/x11-libs/gtk-sharp/gtk-sharp-0.8.ebuild,v 1.1 2003/02/27 17:18:02 foser Exp $
# WARNING
# All gst-sharp hacks done in this build are nonfunctional
# Do not try to use them, they don't work. Not for me, not for anybody.
# They're just here for future reference
#
# foser <foser@gentoo.org>
inherit eutils mono
DESCRIPTION="Gtk# is a C# language binding for the GTK2 toolkit and GNOME libraries"
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_unpack() {
unpack ${A}
# disable building of samples (#16015)
cd ${S}
mv makefile makefile.old
sed -e "s:sample::" makefile.old > makefile
mv configure.in configure.in.old
sed -e "s:sample/Makefile::" configure.in.old > configure.in
# patch gst-sharp stuff
# epatch ${FILESDIR}/${P}-gst_sharp.patch
}
src_compile() {
local myconf
myconf="--enable-glade"
use gnome \
&& myconf="${myconf} --enable-gnome" \
|| myconf="${myconf} --disable-gnome"
# disable samples
./autogen.sh
econf ${myconf} || die "./configure failed"
emake || die
# gst-sharp hacks
# cd ${S}/gst/
# epatch ${FILESDIR}/${P}-generated_fix.patch
# rm gst-sharp.dll
# make || die "Died making gst-sharp bindings"
}
src_install () {
# Path for the installation of the libs is hardcoded in the Makefile,
# so we need to change it - Is being changed, check every release
for i in $(find . -iname Makefile); do cp $i ${i}.orig; sed "s:${DESTDIR}/usr:${D}/usr:" $i.orig > $i; done
einstall || die
# gst-sharp install
# cd ${S}/gst/
# make install || die "Gst-sharp install failed"
dodoc HACKING README* ChangeLog
}
|