blob: 0c54ae57d4dc90fc167ebc62ffb87ebb71a714e5 (
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
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-lang/mono/mono-1.1.4.ebuild,v 1.5 2005/05/13 00:29:15 latexer Exp $
inherit eutils mono flag-o-matic
DESCRIPTION="Mono runtime and class libraries, a C# compiler/interpreter"
HOMEPAGE="http://www.go-mono.com/"
SRC_URI="http://www.go-mono.com/archive/${PV}/${P}.tar.gz"
LICENSE="|| ( GPL-2 LGPL-2 X11)"
SLOT="0"
KEYWORDS="~x86 ~ppc ~amd64"
IUSE="nptl icu X"
DEPEND="virtual/libc
>=dev-libs/glib-2.0
!<dev-dotnet/pnet-0.6.12
nptl? ( >=sys-devel/gcc-3.3.5-r1 )
icu? ( >=dev-libs/icu-2.6.2 )
ppc? (
>=sys-devel/gcc-3.2.3-r4
>=sys-libs/glibc-2.3.3_pre20040420
)"
RDEPEND="${DEPEND}
X? ( >=dev-dotnet/libgdiplus-${PV} )
dev-util/pkgconfig
dev-libs/libxml2"
PDEPEND="X? ( >=dev-dotnet/libgdiplus-${PV} )"
src_unpack() {
unpack ${A}
cd ${S}
sed -i "s: -fexceptions::" ${S}/libgc/configure.host
}
src_compile() {
strip-flags
local myconf="--with-sigaltstack=yes --with-preview=yes"
if use nptl
then
myconf="${myconf} --with-tls=__thread"
else
myconf="${myconf} --with-tls=pthread"
fi
econf ${myconf} $(use_with icu) || die
emake -j1 || die "MONO compilation failure"
}
src_install() {
make DESTDIR=${D} install || die
# Fix incorrect path to makecert EXE file
sed -i "s:makecert.exe:MakeCert.exe:" ${D}/usr/bin/makecert || die
# monoresgen script is broken. It should be symlink to /usr/bin/resgen
rm ${D}/usr/bin/monoresgen || die
dosym /usr/bin/resgen /usr/bin/monoresgen
# prj2make sources missing from mono-1.1.4 tarball, so we remove the wrapper
# script
rm ${D}/usr/bin/prj2make ${D}/usr/share/man/man1/prj2make.1
dodoc AUTHORS ChangeLog NEWS README
docinto docs
dodoc docs/*
docinto libgc
dodoc libgc/ChangeLog
}
|