dev-lang/fsharp: unbreak build

* NuGet needs network
* NuGet is still broken, so https -> http

Change-Id: I0a85e5d00c2d7d939ba28b1a51fbda95afe9cdc9
Reviewed-on: https://galileo.mailstation.de/gerrit/7392
Reviewed-by: Jenkins <wk@mailstation.de>
Reviewed-by: Nikolay Orlyuk <virkony@gmail.com>
This commit is contained in:
Julian Ospald 2016-10-12 09:33:34 +02:00
parent 16c97f86b1
commit 2a2577bf91
No known key found for this signature in database
GPG Key ID: 511B62C09D50CD28

View File

@ -20,5 +20,34 @@ DEPENDENCIES="
BUGS_TO="virkony@gmail.com"
DEFAULT_SRC_CONFIGURE_PARAMS=( --with-gacdir=/usr/${LIBDIR:-lib}/mono/gac )
DEFAULT_SRC_CONFIGURE_PARAMS=( --with-gacdir="/usr/$(exhost --target)/lib/mono/gac" )
DEFAULT_SRC_COMPILE_PARAMS=( -j1 )
src_prepare() {
# ssl with NuGet seems broken
# https://github.com/fsharp/fsharp/issues/617
edo sed -i \
-e 's#https://www.nuget.org/api/v2/#http://www.nuget.org/api/v2/#' \
.nuget/NuGet.Config
autotools_src_prepare
}
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
# delete empty directories
edo find "${IMAGE}" -type d -empty -delete
}