summaryrefslogtreecommitdiff
blob: 4ee8a837d8846924ab5ae88a9bbbe81f224df68d (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
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-util/mono-tools/mono-tools-1.1.11.ebuild,v 1.4 2006/04/08 14:54:40 dertobi123 Exp $

inherit eutils mono multilib

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

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ppc x86"
IUSE=""

DEPEND="dev-lang/mono
	>=dev-util/monodoc-${PV}
	=dev-dotnet/gtk-sharp-1.0*
	=dev-dotnet/gnome-sharp-1.0*
	=dev-dotnet/glade-sharp-1.0*
	=dev-dotnet/gtkhtml-sharp-1.0*
	=dev-dotnet/gconf-sharp-1.0*
	<dev-dotnet/gecko-sharp-0.10"
RDEPEND="${DEPEND}"

src_unpack() {
	unpack ${A}
	cd ${S}

	# We want working desktop entries!
	#epatch ${FILESDIR}/${P}-fix-desktop-entry.patch

	# Install all our .dlls under $(libdir), not $(prefix)/lib
	if [ $(get_libdir) != "lib" ] ; then
		sed -i -e 's:$(prefix)/lib:$(libdir):' \
			${S}/{asn1view/gtk,docbrowser,gnunit/src}/Makefile.am \
			|| die "sed failed"
		sed -i -e 's:$prefix/lib:@libdir@:' \
			${S}/docbrowser/monodoc.in || die "sed failed"
	fi

	aclocal || die "aclocal failed"
	automake || die "automake failed"
	autoconf || die "autconf failed"
}

src_compile() {
	econf || die
	emake -j1 || die
}

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

	dodoc ChangeLog README
}