hasufell-repository/packages/dev-lang/fsharp/fsharp-scm.exheres-0
Julian Ospald 2a2577bf91
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>
2016-10-20 22:20:24 +02:00

54 lines
1.2 KiB
Bash

# Copyright 2012 Nikolay Orlyuk
# Distributed under the terms of the GNU General Public License v2
require github \
autotools [ supported_automake=[ 1.12 ] supported_autoconf=[ 2.5 ] ]
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[>=2.9]
"
BUGS_TO="virkony@gmail.com"
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
}