summaryrefslogtreecommitdiff
blob: 2abea5097b359fa28acc7e215d55fbd73a823dd9 (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
# Copyright 1999-2008 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.12.ebuild,v 1.3 2008/12/14 15:21:48 loki_val Exp $

EAPI=2

inherit mono multilib

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.bz2"

LICENSE="GPL-2"
SLOT="1"
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*
		 !<dev-dotnet/gtksourceview-sharp-0.12"
DEPEND="${RDEPEND}
		>=dev-util/pkgconfig-0.19
		>=virtual/monodoc-1.1.8"

src_prepare() {
	#A sample fails with mono-2.
	sed -i -e 's:sample::' Makefile*
}

src_install() {
	emake DESTDIR="${D}" install || die

	# newer gtksourceview versions install these
	rm "${D}"/usr/share/gtksourceview-1.0/language-specs/{vbnet,nemerle}.lang
}