blob: 55029a0abd92438873a807238707b5806d550743 (
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
|
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI="5"
USE_DOTNET="net35 net40 net45"
inherit dotnet git-2 multilib eutils
DESCRIPTION="A hybrid programming language for .NET / Mono platforms"
HOMEPAGE="http://www.nemerle.org/"
SRC_URI=""
LICENSE="BSD"
SLOT="0"
KEYWORDS=""
IUSE="+binary -indent"
if use indent; then
ewarn "indent is very experimental branch"
ewarn "usual Nemerle code will definetly fail."
EGIT_REPO_URI="git://github.com/Heather/Nemerle.git"
EGIT_MASTER="indent"
else
EGIT_REPO_URI="git://github.com/rsdn/nemerle.git"
EGIT_MASTER="master"
fi
MAKEOPTS="${MAKEOPTS} -j1" #nowarn
DEPEND=">dev-lang/mono-2.11.3"
RDEPEND="${DEPEND}"
pkg_pretend() {
if [[ ${MERGE_TYPE} != buildonly ]] && has collision-protect ${FEATURES}; then
if [ -f /usr/bin/ncc]; then
eerror "FEATURES=\"collision-protect\" is enabled, which will prevent overwriting"
eerror "symlinks that were formerly managed by eselect opengl. You must disable"
eerror "collision-protect or remove /usr/bin/ncc"
die "collision-protect cannot overwrite libGLU$(get_libname)*"
fi
fi
}
src_configure() { :; }
src_compile() {
if ! use binary; then
elog "Nemerle sources compiling : "
exbuild NemerleAll-Mono.nproj /t:Stage1
fi # ! use binary
}
src_install()
{
elog "Installing libraries"
if ! use binary; then
insinto "/usr/$(get_libdir)/mono/${PN}/${FRAMEWORK}"
doins bin/Release/mono-"${FRAMEWORK}"/Stage1/*.dll || die "installing libraries failed"
elog "Registering libraries to egac"
local nemerledll=bin/Release/mono-"${FRAMEWORK}"/Stage1/Nemerle.dll
egacinstall "${nemerledll}" \
|| die "couldn't install ${nemerledll} in the global assembly cache"
local nemerlecompilerdll=bin/Release/mono-"${FRAMEWORK}"/Stage1/Nemerle.Compiler.dll
egacinstall "${nemerlecompilerdll}" \
|| die "couldn't install ${nemerlecompilerdll} in the global assembly cache"
local nemerlemacrosdll=bin/Release/mono-"${FRAMEWORK}"/Stage1/Nemerle.Macros.dll
egacinstall "${nemerlemacrosdll}" \
|| die "couldn't install ${nemerlemacrosdll} in the global assembly cache"
elog "Installing ncc"
dodoc README AUTHORS INSTALL NEWS
into /usr
doins bin/Release/mono-"${FRAMEWORK}"/Stage1/ncc.exe
else # binary
case ${FRAMEWORK} in
"3.5") Bootstrap="boot";;
"4.0") Bootstrap="boot-4.0";;
"4.5")
ewarn "there is no 4.5 binaries, using 4.0"
FRAMEWORK="4.0"
Bootstrap="boot-4.0"
;;
esac
insinto "/usr/$(get_libdir)/mono/${PN}/${FRAMEWORK}"
doins ${Bootstrap}/*.dll || die "installing libraries failed"
elog "Registering libraries to egac"
local nemerledll=${Bootstrap}/Nemerle.dll
egacinstall "${nemerledll}" \
|| die "couldn't install ${nemerledll} in the global assembly cache"
local nemerlecompilerdll=${Bootstrap}/Nemerle.Compiler.dll
egacinstall "${nemerlecompilerdll}" \
|| die "couldn't install ${nemerlecompilerdll} in the global assembly cache"
local nemerlemacrosdll=${Bootstrap}/Nemerle.Macros.dll
egacinstall "${nemerlemacrosdll}" \
|| die "couldn't install ${nemerlemacrosdll} in the global assembly cache"
elog "Installing ncc"
dodoc README AUTHORS INSTALL NEWS
into /usr
doins ${Bootstrap}/ncc.exe
fi
make_wrapper ncc "mono /usr/$(get_libdir)/mono/${PN}/${FRAMEWORK}/ncc.exe"
}
|