summaryrefslogtreecommitdiff
blob: 1b8d68689f05b39bc239c8e00c924e39758dd037 (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
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-util/mono-tools/mono-tools-2.0.ebuild,v 1.6 2008/12/31 03:24:55 mr_bones_ Exp $

EAPI=2

inherit base mono multilib eutils autotools

DESCRIPTION="Set of useful Mono related utilities"
HOMEPAGE="http://www.mono-project.com/"
SRC_URI="http://ftp.novell.com/pub/mono/sources/${PN}/${P}.tar.bz2"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~sparc ~x86 ~x86-fbsd"
IUSE="webkit xulrunner"

RDEPEND=">=dev-lang/mono-2.0
	>=virtual/monodoc-${PV}
	>=dev-dotnet/gtk-sharp-2.12.6[glade]
	>=dev-dotnet/gconf-sharp-2
	>=dev-dotnet/gtkhtml-sharp-2
	webkit? ( dev-dotnet/webkit-sharp )
	xulrunner? ( >=dev-dotnet/gecko-sharp-0.13 )"

DEPEND="${RDEPEND}
	sys-devel/gettext
	>=dev-util/pkgconfig-0.19"

PATCHES=( "${FILESDIR}/${P}-html-renderer-fixes.patch" )

#Fails parallel make.
MAKEOPTS="${MAKEOPTS} -j1"

src_prepare() {
	base_src_prepare
	eautoreconf
}

src_configure() {
	econf --enable-gtkhtml $(use_enable xulrunner mozilla) $(use_enable webkit) || die "configure failed"
}

src_install() {
	make DESTDIR="${D}" install || die
	dodoc ChangeLog README
}