blob: e3a48efb55f3cb23af02c7e9974d314c0071e95e (
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
|
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=2
inherit eutils mono versionator
DESCRIPTION="The F# programming language and tools"
HOMEPAGE="http://fsharp.net/"
# November CTP
SRC_URI="http://download.microsoft.com/download/4/5/B/45BD9FBC-22BA-4B45-84B7-17D1AD0122A1/fsharp.zip -> ${P}.zip"
LICENSE="MSR-SSLA"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
RDEPEND=">=dev-lang/mono-2.6"
DEPEND="app-arch/unzip
${RDEPEND}"
S=${WORKDIR}/FSharp-$(get_version_component_range 1-4)
create_exe_wrappers() {
ebegin "creating compiler wrappers"
for exe in fsi fsc; do
make_wrapper ${exe} "mono /usr/$(get_libdir)/${PN}/${exe}.exe" \
|| die "couldn't create wrapper for ${exe}.exe"
done
eend $?
}
src_install() {
insinto "/usr/$(get_libdir)/${PN}"
doins bin/* || die "installing libraries failed"
local libname=bin/FSharp.Core.dll
# Sign $libname with the Mono key, per the instructions
# in install-mono.sh.
sn -q -R "${S}/${libname}" "${FILESDIR}/mono.snk" \
|| die "couldn't sign the ${libname} assembly"
# After signing, this should work.
egacinstall "${libname}" \
|| die "couldn't install ${libname} in the global assembly cache"
create_exe_wrappers
}
|