blob: ee805f84af529376c7d3f5702025da420c30cb15 (
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
|
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-dotnet/gtksourceview-sharp/gtksourceview-sharp-0.10-r1.ebuild,v 1.2 2007/10/12 08:29:14 remi Exp $
inherit mono multilib eutils
MY_P="${P/${PN}/${PN}-2.0}"
DESCRIPTION="A C# Binding to gtksourceview"
HOMEPAGE="http://www.go-mono.com/"
SRC_URI="http://www.go-mono.com/sources/${PN}-2.0/${MY_P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86 ~ppc ~amd64"
IUSE=""
S=${WORKDIR}/${MY_P}
RDEPEND=">=dev-lang/mono-1.0
>=dev-dotnet/gtk-sharp-2.4.0
>=dev-dotnet/gnome-sharp-2.4.0
=x11-libs/gtksourceview-1*"
DEPEND="${RDEPEND}
dev-util/pkgconfig
sys-devel/automake
sys-devel/autoconf
>=dev-util/monodoc-1.1.8"
src_unpack() {
unpack ${A}
cd ${S}
epatch ${FILESDIR}/${P}-monodoc-update.diff
if [ $(get_libdir) != "lib" ] ; then
sed -i -e 's:$(prefix)/lib:$(libdir):' \
-e 's:${prefix}/lib:${libdir}:' \
${S}/Makefile.{am,in} ${S}/*.pc.in || die
fi
aclocal || die
automake || die
autoconf || die
}
src_compile() {
econf || die "./configure failed!"
emake -j1 || die "make failed"
}
src_install() {
dodir $(pkg-config --variable=sourcesdir monodoc)
make GACUTIL_FLAGS="/root ${D}/usr/$(get_libdir) /gacdir /usr/$(get_libdir) -package gtksourceview-sharp-2.0" \
DESTDIR=${D} install || die
# newer gtksourceview versions install these
rm ${D}/usr/share/gtksourceview-1.0/language-specs/{vbnet,nemerle}.lang
}
|