From 2a2577bf914ba8509af66bc1348f1a653bd88f77 Mon Sep 17 00:00:00 2001 From: Julian Ospald Date: Wed, 12 Oct 2016 09:33:34 +0200 Subject: [PATCH] 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 Reviewed-by: Nikolay Orlyuk --- packages/dev-lang/fsharp/fsharp-scm.exheres-0 | 31 ++++++++++++++++++- 1 file changed, 30 insertions(+), 1 deletion(-) diff --git a/packages/dev-lang/fsharp/fsharp-scm.exheres-0 b/packages/dev-lang/fsharp/fsharp-scm.exheres-0 index 715794a..c5e885b 100644 --- a/packages/dev-lang/fsharp/fsharp-scm.exheres-0 +++ b/packages/dev-lang/fsharp/fsharp-scm.exheres-0 @@ -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 +}