hasufell-repository/packages/dev-lang/fsharp/fsharp-scm.exheres-0

45 lines
956 B
Bash
Raw Normal View History

# Copyright 2012 Nikolay Orlyuk
# Distributed under the terms of the GNU General Public License v2
2018-05-14 18:59:13 +00:00
require github
SUMMARY="The F# compiler, core library and core tools (open source edition)"
LICENCES="Apache-2.0"
SLOT="0"
PLATFORMS="~amd64"
MYOPTIONS=""
DEPENDENCIES="
build:
virtual/pkg-config
build+run:
dev-lang/mono[>=4.2.2.30-r1]
"
BUGS_TO="virkony@gmail.com"
DEFAULT_SRC_COMPILE_PARAMS=( -j1 )
src_compile() {
# uses NuGet to build, no easy way around,
# unless you like the alternative in e.g. games-strategy/openra
esandbox disable_net
default
esandbox enable_net
}
src_install() {
esandbox disable_net
default
esandbox enable_net
2018-05-14 18:59:13 +00:00
dodir /usr/$(exhost --target)
edo mv "${IMAGE}"/usr/lib "${IMAGE}"/usr/$(exhost --target)/lib
edo mv "${IMAGE}"/usr/bin "${IMAGE}"/usr/$(exhost --target)/bin
# delete empty directories
edo find "${IMAGE}" -type d -empty -delete
}