Rewrite packaging
This commit is contained in:
Родитель
fba453d01c
Коммит
fc11281aa9
|
@ -0,0 +1,3 @@
|
|||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<Import Project="/usr/lib/mono/fsharp/Microsoft.FSharp.Targets" />
|
||||
</Project>
|
|
@ -0,0 +1,3 @@
|
|||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<Import Project="/usr/lib/mono/fsharp/Microsoft.Portable.FSharp.Targets" />
|
||||
</Project>
|
|
@ -32,9 +32,9 @@ Description: functional-first programming language - compiler for the CLI
|
|||
.
|
||||
This package contains an F# compiler targeting the CLI runtime.
|
||||
|
||||
Package: libfsharp-core4.5-cil
|
||||
Package: libfsharp-core5.0-cil
|
||||
Architecture: all
|
||||
Replaces: libfsharp-core4.3-cil
|
||||
Replaces: libfsharp-core4.3-cil, libfsharp-core4.5-cil
|
||||
Depends:
|
||||
${cli:Depends},
|
||||
${shlibs:Depends},
|
||||
|
|
|
@ -1,11 +1,39 @@
|
|||
usr/bin/fsharpc
|
||||
usr/bin/fsharpi
|
||||
usr/lib/mono/Microsoft?F#
|
||||
usr/lib/mono/Microsoft?SDKs
|
||||
usr/lib/mono/xbuild
|
||||
usr/lib/mono/fsharp/fs*.exe /usr/lib/mono/fsharp
|
||||
usr/lib/mono/fsharp/fs*.exe.config /usr/lib/mono/fsharp
|
||||
usr/lib/mono/fsharp/System.*.dll /usr/lib/mono/fsharp
|
||||
usr/lib/mono/fsharp/FSharp.Build.dll* /usr/lib/mono/fsharp
|
||||
usr/lib/mono/fsharp/*.Targets /usr/lib/mono/fsharp
|
||||
usr/lib/mono/fsharp/FSharp.Compiler*.dll* /usr/lib/mono/fsharp
|
||||
artifacts/bin/fsc/Release/net472/fsc.exe* /usr/lib/mono/fsharp/
|
||||
artifacts/bin/fsc/Release/net472/FSharp.Build.* /usr/lib/mono/fsharp/
|
||||
artifacts/bin/fsc/Release/net472/FSharp.Compiler.Private.* /usr/lib/mono/fsharp/
|
||||
artifacts/bin/fsc/Release/net472/Microsoft.FSharp.Targets /usr/lib/mono/fsharp/
|
||||
artifacts/bin/fsc/Release/net472/Microsoft.Portable.FSharp.Targets /usr/lib/mono/fsharp/
|
||||
artifacts/bin/fsc/Release/net472/Microsoft.Build.dll /usr/lib/mono/fsharp/
|
||||
artifacts/bin/fsc/Release/net472/Microsoft.Build.Framework.dll /usr/lib/mono/fsharp/
|
||||
artifacts/bin/fsc/Release/net472/Microsoft.Build.Tasks.Core.dll /usr/lib/mono/fsharp/
|
||||
artifacts/bin/fsc/Release/net472/Microsoft.Build.Utilities.Core.dll /usr/lib/mono/fsharp/
|
||||
artifacts/bin/fsc/Release/net472/System.Buffers.dll /usr/lib/mono/fsharp/
|
||||
artifacts/bin/fsc/Release/net472/System.Collections.Immutable.dll /usr/lib/mono/fsharp/
|
||||
artifacts/bin/fsc/Release/net472/System.Memory.dll /usr/lib/mono/fsharp/
|
||||
artifacts/bin/fsc/Release/net472/System.Numerics.Vectors.dll /usr/lib/mono/fsharp/
|
||||
artifacts/bin/fsc/Release/net472/System.Reflection.Metadata.dll /usr/lib/mono/fsharp/
|
||||
artifacts/bin/fsc/Release/net472/System.Reflection.TypeExtensions.dll /usr/lib/mono/fsharp/
|
||||
artifacts/bin/fsc/Release/net472/System.Resources.Extensions.dll /usr/lib/mono/fsharp/
|
||||
artifacts/bin/fsc/Release/net472/System.Runtime.CompilerServices.Unsafe.dll /usr/lib/mono/fsharp/
|
||||
artifacts/bin/fsc/Release/net472/System.Threading.Tasks.Dataflow.dll /usr/lib/mono/fsharp/
|
||||
artifacts/bin/fsi/Release/net472/fsi.exe* /usr/lib/mono/fsharp/
|
||||
artifacts/bin/fsiAnyCpu/Release/net472/fsiAnyCpu.exe* /usr/lib/mono/fsharp/
|
||||
artifacts/bin/fsi/Release/net472/FSharp.Compiler.Interactive.Settings.* /usr/lib/mono/fsharp/
|
||||
artifacts/bin/fsi/Release/net472/FSharp.Compiler.Server.Shared.* /usr/lib/mono/fsharp/
|
||||
artifacts/bin/fsi/Release/net472/FSharp.DependencyManager.Nuget.* /usr/lib/mono/fsharp/
|
||||
artifacts/bin/fsi/Release/net472/Microsoft.DotNet.DependencyManager.* /usr/lib/mono/fsharp/
|
||||
artifacts/bin/fsc/Release/net472/Microsoft.FSharp*.NetSdk.* /usr/lib/mono/xbuild/Microsoft/VisualStudio/v/FSharp/
|
||||
artifacts/bin/fsc/Release/net472/Microsoft.FSharp*.NetSdk.* /usr/lib/mono/xbuild/Microsoft/VisualStudio/v11.0/FSharp/
|
||||
artifacts/bin/fsc/Release/net472/Microsoft.FSharp*.NetSdk.* /usr/lib/mono/xbuild/Microsoft/VisualStudio/v12.0/FSharp/
|
||||
artifacts/bin/fsc/Release/net472/Microsoft.FSharp*.NetSdk.* /usr/lib/mono/xbuild/Microsoft/VisualStudio/v14.0/FSharp/
|
||||
artifacts/bin/fsc/Release/net472/Microsoft.FSharp*.NetSdk.* /usr/lib/mono/xbuild/Microsoft/VisualStudio/v15.0/FSharp/
|
||||
artifacts/bin/fsc/Release/net472/Microsoft.FSharp*.NetSdk.* /usr/lib/mono/xbuild/Microsoft/VisualStudio/v16.0/FSharp/
|
||||
debian/Microsoft.*FSharp.Targets /usr/lib/mono/xbuild/Microsoft/VisualStudio/v/FSharp/
|
||||
debian/Microsoft.*FSharp.Targets /usr/lib/mono/xbuild/Microsoft/VisualStudio/v11.0/FSharp/
|
||||
debian/Microsoft.*FSharp.Targets /usr/lib/mono/xbuild/Microsoft/VisualStudio/v12.0/FSharp/
|
||||
debian/Microsoft.*FSharp.Targets /usr/lib/mono/xbuild/Microsoft/VisualStudio/v14.0/FSharp/
|
||||
debian/Microsoft.*FSharp.Targets /usr/lib/mono/xbuild/Microsoft/VisualStudio/v15.0/FSharp/
|
||||
debian/Microsoft.*FSharp.Targets /usr/lib/mono/xbuild/Microsoft/VisualStudio/v16.0/FSharp/
|
||||
debian/tmpprefix/fsharpc /usr/bin/
|
||||
debian/tmpprefix/fsharpi /usr/bin/
|
||||
debian/tmpprefix/fsharpiAnyCpu /usr/bin/
|
||||
|
|
|
@ -1,3 +0,0 @@
|
|||
usr/lib/mono/fsharp/FSharp.Core.dll* /usr/lib/mono/fsharp
|
||||
usr/lib/mono/fsharp/FSharp.Core*data /usr/lib/mono/fsharp
|
||||
usr/lib/mono/fsharp/api
|
|
@ -0,0 +1,19 @@
|
|||
artifacts/bin/fsc/Release/net472/FSharp.Core.* /usr/lib/mono/fsharp/
|
||||
fsharp-nugets/microsoft.visualfsharp.core.redist/1.0.0/content/.NETFramework/v4.0/4.3.0.0/FSharp.Core.* /usr/lib/mono/fsharp/api/.NETFramework/v4.0/4.3.0.0/
|
||||
fsharp-nugets/microsoft.visualfsharp.core.redist/1.0.0/content/.NETFramework/v4.0/4.3.1.0/FSharp.Core.* /usr/lib/mono/fsharp/api/.NETFramework/v4.0/4.3.1.0/
|
||||
fsharp-nugets/microsoft.visualfsharp.core.redist/1.0.0/content/.NETFramework/v4.0/4.4.0.0/FSharp.Core.* /usr/lib/mono/fsharp/api/.NETFramework/v4.0/4.4.0.0/
|
||||
fsharp-nugets/microsoft.portable.fsharp.core/10.1.0/lib/versions/4.4.1.0/FSharp.Core.* /usr/lib/mono/fsharp/api/.NETFramework/v4.0/4.4.1.0/
|
||||
fsharp-nugets/fsharp.core/4.3.4/lib/net45/FSharp.Core.* /usr/lib/mono/fsharp/api/.NETFramework/v4.0/4.4.3.0/
|
||||
fsharp-nugets/fsharp.core/4.3.4/lib/net45/FSharp.Core.* /usr/lib/mono/fsharp/api/.NETFramework/v4.0/4.4.5.0/
|
||||
fsharp-nugets/microsoft.visualfsharp.core.redist/1.0.0/content/.NETCore/3.3.1.0/FSharp.Core.* /usr/lib/mono/fsharp/api/.NETCore/3.3.1.0/
|
||||
fsharp-nugets/microsoft.visualfsharp.core.redist/1.0.0/content/.NETCore/3.7.4.0/FSharp.Core.* /usr/lib/mono/fsharp/api/.NETCore/3.7.4.0/
|
||||
fsharp-nugets/microsoft.visualfsharp.core.redist/1.0.0/content/.NETCore/3.78.3.1/FSharp.Core.* /usr/lib/mono/fsharp/api/.NETCore/3.78.3.1/
|
||||
fsharp-nugets/microsoft.visualfsharp.core.redist/1.0.0/content/.NETCore/3.78.4.0/FSharp.Core.* /usr/lib/mono/fsharp/api/.NETCore/3.78.4.0/
|
||||
fsharp-nugets/microsoft.visualfsharp.core.redist/1.0.0/content/.NETCore/3.259.4.0/FSharp.Core.* /usr/lib/mono/fsharp/api/.NETCore/3.259.4.0/
|
||||
fsharp-nugets/microsoft.portable.fsharp.core/10.1.0/lib/profiles/portable-net45+netcore45/FSharp.Core.* /usr/lib/mono/fsharp/api/.NETCore/3.7.41.0/
|
||||
fsharp-nugets/microsoft.portable.fsharp.core/10.1.0/lib/profiles/portable-net45+netcore45+wp8/FSharp.Core.* /usr/lib/mono/fsharp/api/.NETCore/3.78.41.0/
|
||||
fsharp-nugets/microsoft.portable.fsharp.core/10.1.0/lib/profiles/portable-net45+netcore45+wpa81+wp8/FSharp.Core.* /usr/lib/mono/fsharp/api/.NETCore/3.259.41.0/
|
||||
fsharp-nugets/microsoft.visualfsharp.core.redist/1.0.0/content/.NETPortable/2.3.5.0/FSharp.Core.* /usr/lib/mono/fsharp/api/.NETPortable/2.3.5.0
|
||||
fsharp-nugets/microsoft.visualfsharp.core.redist/1.0.0/content/.NETPortable/2.3.5.1/FSharp.Core.* /usr/lib/mono/fsharp/api/.NETPortable/2.3.5.1
|
||||
fsharp-nugets/microsoft.visualfsharp.core.redist/1.0.0/content/.NETPortable/3.47.4.0/FSharp.Core.* /usr/lib/mono/fsharp/api/.NETPortable/3.47.4.0
|
||||
fsharp-nugets/microsoft.portable.fsharp.core/10.1.0/lib/profiles/portable-net45+sl5+netcore45/FSharp.Core.* /usr/lib/mono/fsharp/api/.NETPortable/3.47.41.0
|
|
@ -17,10 +17,10 @@ export DH_OPTIONS
|
|||
override_dh_fixperms:
|
||||
dh_fixperms
|
||||
# Fix permissions of non-executable cruft
|
||||
find debian -iname *.xml -type f -exec chmod 644 {} +
|
||||
find debian -iname *.sigdata -type f -exec chmod 644 {} +
|
||||
find debian -iname *.optdata -type f -exec chmod 644 {} +
|
||||
find debian -iname *.targets -type f -exec chmod 644 {} +
|
||||
find debian -iname \*.xml -type f -exec chmod 644 {} +
|
||||
find debian -iname \*.sigdata -type f -exec chmod 644 {} +
|
||||
find debian -iname \*.optdata -type f -exec chmod 644 {} +
|
||||
find debian -iname \*.targets -type f -exec chmod 644 {} +
|
||||
|
||||
override_dh_auto_clean:
|
||||
# don't clean - broken on newer distros as make distclean can't run before configure
|
||||
|
@ -28,6 +28,10 @@ override_dh_auto_clean:
|
|||
|
||||
override_dh_auto_build:
|
||||
HOME=$(DEBIAN_DIR) XDG_CONFIG_HOME=$(DEBIAN_DIR) version= $(LINUX32) ./build.sh -c Release && version= $(LINUX32) ./.dotnet/dotnet restore setup/Swix/Microsoft.FSharp.SDK/Microsoft.FSharp.SDK.csproj --packages fsharp-nugets
|
||||
mkdir -p $(DEBIAN_DIR)/tmpprefix/
|
||||
sed -e 's#%EXENAME%#fsc.exe#' $(DEBIAN_DIR)/wrapper.sh > $(DEBIAN_DIR)/tmpprefix/fsharpc
|
||||
sed -e 's#%EXENAME%#fsi.exe#' $(DEBIAN_DIR)/wrapper.sh > $(DEBIAN_DIR)/tmpprefix/fsharpi
|
||||
sed -e 's#%EXENAME%#fsiAnyCpu.exe#' $(DEBIAN_DIR)/wrapper.sh > $(DEBIAN_DIR)/tmpprefix/fsharpiAnyCpu
|
||||
#xbuild FsLex/FsLex.fsproj
|
||||
#xbuild FsYacc/FsYacc.fsproj
|
||||
#xbuild lib/bootstrap/src/FsSrGen/FsSrGen.fsproj
|
||||
|
@ -37,7 +41,16 @@ override_dh_auto_build:
|
|||
#sed -e 's#@DIR@/@TOOL@#/usr/lib/cli/fsharp/FsSrGen.exe#' -e 's/--exename:$$(basename $$0) //' launcher.in > lib/release/fssrgen
|
||||
|
||||
override_dh_auto_install:
|
||||
HOME=$(DEBIAN_DIR) XDG_CONFIG_HOME=$(DEBIAN_DIR) DESTDIR=`realpath $(DEBIAN_DIR)/tmp` PREFIX=/usr make install
|
||||
mkdir -p debian/fsharp/usr/lib/mono/Microsoft\ F#/v4.0/
|
||||
cp debian/Microsoft.*FSharp.Targets debian/fsharp/usr/lib/mono/Microsoft\ F#/v4.0/
|
||||
mkdir -p debian/fsharp/usr/lib/mono/Microsoft\ SDKs/F#/3.0/Framework/v4.0/
|
||||
cp debian/Microsoft.*FSharp.Targets debian/fsharp/usr/lib/mono/Microsoft\ SDKs/F#/3.0/Framework/v4.0/
|
||||
mkdir -p debian/fsharp/usr/lib/mono/Microsoft\ SDKs/F#/3.1/Framework/v4.0/
|
||||
cp debian/Microsoft.*FSharp.Targets debian/fsharp/usr/lib/mono/Microsoft\ SDKs/F#/3.1/Framework/v4.0/
|
||||
mkdir -p debian/fsharp/usr/lib/mono/Microsoft\ SDKs/F#/4.0/Framework/v4.0/
|
||||
cp debian/Microsoft.*FSharp.Targets debian/fsharp/usr/lib/mono/Microsoft\ SDKs/F#/4.0/Framework/v4.0/
|
||||
mkdir -p debian/fsharp/usr/lib/mono/Microsoft\ SDKs/F#/4.1/Framework/v4.0/
|
||||
cp debian/Microsoft.*FSharp.Targets debian/fsharp/usr/lib/mono/Microsoft\ SDKs/F#/4.1/Framework/v4.0/
|
||||
|
||||
override_dh_clideps:
|
||||
dh_clideps --exclude-moduleref=mscoree.dll --exclude-moduleref=api-ms-win-core-file-l1-1-0.dll
|
||||
|
|
|
@ -0,0 +1,19 @@
|
|||
#!/bin/sh
|
||||
EXEC="exec "
|
||||
|
||||
if test x"$1" = x--debug; then
|
||||
DEBUG=--debug
|
||||
shift
|
||||
fi
|
||||
|
||||
if test x"$1" = x--gdb; then
|
||||
shift
|
||||
EXEC="gdb --eval-command=run --args "
|
||||
fi
|
||||
|
||||
if test x"$1" = x--valgrind; then
|
||||
shift
|
||||
EXEC="valgrind $VALGRIND_OPTIONS"
|
||||
fi
|
||||
|
||||
$EXEC /usr/bin/mono $DEBUG $MONO_OPTIONS /usr/lib/mono/fsharp/%EXENAME% --exename:$(basename "$0") "$@"
|
Загрузка…
Ссылка в новой задаче