blob: a6953ede7fd94436e827046e4e579b6af1bce0ce (
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-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-lang/boo/boo-0.9.1.3287.ebuild,v 1.2 2009/05/06 08:09:51 loki_val Exp $
EAPI=2
inherit multilib mono fdo-mime eutils
DESCRIPTION="A wrist friendly language for the CLI"
HOMEPAGE="http://boo.codehaus.org/"
SRC_URI="http://dist.codehaus.org/boo/distributions/${P}-src.zip"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
RDEPEND=">=dev-lang/mono-2.0
x11-libs/gtksourceview:1.0"
DEPEND="${RDEPEND}
x11-misc/shared-mime-info
app-arch/unzip
>=dev-dotnet/nant-0.86_beta1"
MAKEOPTS="${MAKEOPTS} -j1"
RESTRICT="test"
# Irritating bug: Boo has to be uninstalled for boo to compile.
pkg_setup() {
if has_version ${CATEGORY}/${PN}
then
eerror "${CATEGORY}/${PN}'s install process is buggy. It requires that you remove any"
eerror "existing install before attempting to reinstall it."
eerror "Please emerge -C ${CATEGORY}/${PN} and try again."
eerror "See http://bugs.gentoo.org/268610 for details."
die "Please emerge -C ${CATEGORY}/${PN}"
fi
}
src_prepare() {
sed -i -e 's: Boo.Microsoft.Build.Tasks, update-vs2005-env,::' default.build || die
sed -i -e 's@${libdir}/boo@${libdir}/mono/boo@g' \
extras/boo.pc.in || die
}
src_compile() {
nant -t:mono-2.0 \
-D:install.prefix=/usr \
-D:install.libdir=/usr/$(get_libdir) \
set-release-configuration all|| die "Compilation failed"
}
src_install() {
nant install -D:install.buildroot="${D}" \
-D:install.prefix="${D}"/usr \
-D:install.share="${D}"/usr/share \
-D:install.libdir="${D}"/usr/lib \
-D:install.bindir="${D}/usr/bin" \
-D:fakeroot.sharedmime="${D}"/usr \
-D:fakeroot.gsv="${D}"/usr \
|| die "install failed"
rm -rf "${D}"/usr/share/gtksourceview-1.0 || die
mono_multilib_comply
}
pkg_postinst() {
fdo-mime_mime_database_update
}
pkg_postrm() {
fdo-mime_mime_database_update
}
|