View | Details | Raw Unified | Return to bug 176018
Collapse All | Expand All

(-)Makefile (-53 / +12 lines)
Lines 6-70 Link Here
6
#
6
#
7
7
8
PORTNAME=	fsharp
8
PORTNAME=	fsharp
9
PORTVERSION=	1.9.6.16
9
PORTVERSION=	3.0.25
10
PORTREVISION=	4
11
CATEGORIES=	lang
10
CATEGORIES=	lang
12
MASTER_SITES=	http://download.microsoft.com/download/F/7/4/F74A3170-261C-4E8F-B1A8-2E352C61A89B/
11
MASTER_SITES=	https://nodeload.github.com/fsharp/fsharp/tar.gz/ \
13
DISTNAME=	fsharp
12
		CRITICAL
13
DISTFILES=	${PORTVERSION}
14
14
15
MAINTAINER=	pgj@FreeBSD.org
15
MAINTAINER=	mono@FreeBSD.org
16
COMMENT=	Functional and object-oriented language for the .NET platform
16
COMMENT=	Functional and object-oriented language for the .NET platform
17
LICENSE=	AL2
17
18
18
BUILD_DEPENDS=	mono>=2:${PORTSDIR}/lang/mono\
19
BUILD_DEPENDS=	mono>=3.0:${PORTSDIR}/lang/mono
19
		${LOCALBASE}/lib/libgdiplus.a:${PORTSDIR}/x11-toolkits/libgdiplus
20
RUN_DEPENDS=	mono>=3.0:${PORTSDIR}/lang/mono
20
RUN_DEPENDS=	mono>=2:${PORTSDIR}/lang/mono\
21
		${LOCALBASE}/lib/libgdiplus.a:${PORTSDIR}/x11-toolkits/libgdiplus
22
21
23
PORTDIR=	lib/${PORTNAME}-${PORTVERSION}
22
USE_GMAKE= yes
24
PORTDOCS=	LICENSE-fsharp.txt README-fsharp.html doc manual
23
USE_AUTOTOOLS= autoconf
25
PORTDATA=	lib source
24
USE_PKGCONFIG= build
26
25
27
PLIST_SUB=	SUBDIR=${PORTDIR}
26
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
28
.if !defined(NOPORTDOCS)
29
PLIST_SUB+=	RMLIC="@comment "
30
.else
31
PLIST_SUB+=	RMLIC=""
32
.endif
33
27
34
WRKSRC=	${WRKDIR}/FSharp-${PORTVERSION}
35
USE_ZIP=	yes
36
RESTRICTED=	Microsoft Research Shared Source License Agreement
37
38
AOT=		Core Compiler PowerPack
39
WRAPPERS=	fsc fsi fslex fsyacc
40
41
post-extract:
42
.for wrapper in ${WRAPPERS}
43
	@(${ECHO} '#!${SH}' > ${WRKDIR}/${wrapper})
44
	@(${ECHO} '${LOCALBASE}/bin/mono ${PREFIX}/${PORTDIR}/bin/${wrapper}.exe $$*' >> ${WRKDIR}/${wrapper})
45
.endfor
46
47
do-build:
48
49
do-install:
50
.for asm in ${AOT}
51
	@ ${GACUTIL_INSTALL} ${WRKSRC}/bin/FSharp.${asm}.dll
52
.endfor
53
	@ ${MKDIR} ${PREFIX}/${PORTDIR} ${PREFIX}/${PORTDIR}/bin ${DOCSDIR}
54
	@ (cd ${WRKSRC} && ${COPYTREE_SHARE} "bin" ${PREFIX}/${PORTDIR}/)
55
	@ ${INSTALL_DATA} ${WRKSRC}/LICENSE-fsharp.txt ${DOCSDIR}/
56
.if !defined(NOPORTDOCS)
57
	@ ${MKDIR} ${DOCSDIR}/doc ${DOCSDIR}/manual
58
	@ (cd ${WRKSRC} && ${COPYTREE_SHARE} "doc manual" ${DOCSDIR}/)
59
	@ ${INSTALL_DATA} ${WRKSRC}/README-fsharp.html ${DOCSDIR}/
60
.endif
61
.if !defined(NOPORTDATA)
62
	@ ${MKDIR} ${DATADIR} ${DATADIR}/lib ${DATADIR}/source
63
	@ (cd ${WRKSRC} && ${COPYTREE_SHARE} "lib source" ${DATADIR}/)
64
.endif
65
.for wrapper in ${WRAPPERS}
66
	@ ${INSTALL_SCRIPT} ${WRKDIR}/${wrapper} ${PREFIX}/bin/
67
.endfor
68
69
.include "${.CURDIR}/../../lang/mono/bsd.mono.mk"
28
.include "${.CURDIR}/../../lang/mono/bsd.mono.mk"
70
.include <bsd.port.mk>
29
.include <bsd.port.mk>
(-)distinfo (-2 / +2 lines)
Lines 1-2 Link Here
1
SHA256 (fsharp.zip) = 29c0691879a79ac84059d8a615508da4c7da27908e6bdbf5e3d85b53635b20a4
1
SHA256 (3.0.25) = 1252ada65996f80d31e1bcc5c6718015ec5172c40288429d7dd2d2656ed4b7f0
2
SIZE (fsharp.zip) = 21226155
2
SIZE (3.0.25) = 10693900
(-)files/patch-configure.ac (+20 lines)
Line 0 Link Here
1
--- ./configure.ac.orig	2013-01-22 19:39:23.000000000 -0500
2
+++ ./configure.ac	2013-01-22 19:40:23.000000000 -0500
3
@@ -12,17 +12,6 @@
4
         AC_MSG_ERROR([You need to install pkg-config])
5
 fi
6
 
7
-MONO_REQUIRED_VERSION=2.9
8
-MONO_RECOMMENDED_VERSION=3.0
9
-
10
-if ! pkg-config --atleast-version=$MONO_REQUIRED_VERSION mono; then
11
-	AC_MSG_ERROR("You need mono $MONO_REQUIRED_VERSION")
12
-fi
13
-
14
-if ! pkg-config --atleast-version=$MONO_RECOMMENDED_VERSION mono; then
15
-	AC_MSG_WARN([Mono $MONO_RECOMMENDED_VERSION or higher is recommended, for better MSBuild (xbuild) compatibility])
16
-fi
17
-
18
 AC_PATH_PROG(MONO_SGEN, mono-sgen, no)
19
 
20
 # Checks for libraries.
(-)pkg-descr (-16 / +13 lines)
Lines 1-18 Link Here
1
F# developed as a research programming language to provide the much
1
F# is an open-source, strongly typed, multi-paradigm programming language
2
sought-after combination of type safety, succinctness, performance,
2
encompassing functional, imperative and object-oriented programming techniques.
3
expressivity and scripting, with all the advantages of running on a
3
F# is most often used as a cross-platform CLI language, but can also be used
4
high-quality, well-supported modern runtime system.  This combination
4
to generate JavaScript and GPU code.
5
has been so successful that the language is now being transitioned
6
towards a fully supported language on the .NET platform.
7
5
8
F# was developed as a pragmatically-oriented variant of ML that shares a
6
F# is developed by The F# Software Foundation and Microsoft. An open source,
9
core language with OCaml.  Unlike other scripting languages it executes
7
cross-platform edition of F# is available from the F#  Software Foundation.
10
at or near the speed of C# and C++, making use of the performance that
8
F# is also a fully supported language in Visual Studio. Other tools supporting
11
comes through strong typing.  Unlike many type-inferred,
9
F# development include Mono, MonoDevelop, SharpDevelop and the WebSharper
12
statically-typed languages it also supports many dynamic language
10
tools for JavaScript and HTML5 web programming.
13
techniques, such as property discovery and reflection where needed.  F#
14
includes extensions for working across languages and for object-oriented
15
programming, and it works seamlessly with other .NET programming
16
languages and tools.
17
11
18
WWW: http://research.microsoft.com/fsharp/fsharp.aspx
12
F# originated as a variant of ML and has been influenced by OCaml, C#, Python,
13
Haskell, Scala and Erlang.
14
15
WWW: http://fsharp.org
(-)pkg-plist (-88 / +36 lines)
Lines 1-89 Link Here
1
@comment $FreeBSD$
1
@comment $FreeBSD$
2
@unexec gacutil -u FSharp.Compiler
2
@comment The gacutil included in Mono 3.0.3 has a bug which causes it to crash when uninstalling .exe assemblies from the GAC.
3
@unexec gacutil -u FSharp.Core
3
@comment So for now, we just delete those assemblies and directories "manually".
4
@unexec gacutil -u FSharp.PowerPack
4
@unexec gacutil -u policy.4.3.FSharp.Core,Version=0.0.0.0,Culture=neutral,PublicKeyToken=b03f5f7f11d50a3a
5
bin/fsi
5
@unexec gacutil -u policy.2.3.FSharp.Core,Version=0.0.0.0,Culture=neutral,PublicKeyToken=b03f5f7f11d50a3a
6
bin/fsc
6
@unexec gacutil -u policy.4.0.FSharp.Core,Version=0.0.0.0,Culture=neutral,PublicKeyToken=b03f5f7f11d50a3a
7
bin/fslex
7
@unexec gacutil -u policy.2.0.FSharp.Core,Version=0.0.0.0,Culture=neutral,PublicKeyToken=b03f5f7f11d50a3a
8
bin/fsyacc
8
@ignore
9
%%RMLIC%%%%DOCSDIR%%/LICENSE-fsharp.txt
9
@unexec gacutil -u fsiAnyCpu,Version=4.3.0.0,Culture=neutral,PublicKeyToken=f536804aa0eb945b
10
%%RMLIC%%@dirrm %%DOCSDIR%%
10
@ignore
11
%%SUBDIR%%/bin/FSharp.Build.dll
11
@unexec gacutil -u fsi,Version=4.3.0.0,Culture=neutral,PublicKeyToken=f536804aa0eb945b
12
%%SUBDIR%%/bin/FSharp.Compiler.CodeDom.dll
12
@unexec gacutil -u FSharp.Compiler.Server.Shared,Version=4.3.0.0,Culture=neutral,PublicKeyToken=f536804aa0eb945b
13
%%SUBDIR%%/bin/FSharp.Compiler.CodeDom.xml
13
@unexec gacutil -u FSharp.Compiler.Interactive.Settings,Version=4.3.0.0,Culture=neutral,PublicKeyToken=f536804aa0eb945b
14
%%SUBDIR%%/bin/FSharp.Compiler.Interactive.Settings.dll
14
@ignore
15
%%SUBDIR%%/bin/FSharp.Compiler.Server.Shared.dll
15
@unexec gacutil -u fsc,Version=4.3.0.0,Culture=neutral,PublicKeyToken=f536804aa0eb945b
16
%%SUBDIR%%/bin/FSharp.Compiler.dll
16
@unexec gacutil -u FSharp.Compiler,Version=4.3.0.0,Culture=neutral,PublicKeyToken=f536804aa0eb945b
17
%%SUBDIR%%/bin/FSharp.Core.dll
17
@unexec gacutil -u FSharp.Build,Version=4.3.0.0,Culture=neutral,PublicKeyToken=f536804aa0eb945b
18
%%SUBDIR%%/bin/FSharp.Core.pdb
18
@unexec gacutil -u FSharp.Build,Version=2.3.0.0,Culture=neutral,PublicKeyToken=f536804aa0eb945b
19
%%SUBDIR%%/bin/FSharp.Core.xml
19
@unexec gacutil -u FSharp.Core,Version=4.3.0.0,Culture=neutral,PublicKeyToken=b03f5f7f11d50a3a
20
%%SUBDIR%%/bin/FSharp.LanguageService.dll
20
@unexec gacutil -u FSharp.Core,Version=2.3.1.0,Culture=neutral,PublicKeyToken=b03f5f7f11d50a3a
21
%%SUBDIR%%/bin/FSharp.LanguageService.Base.dll
21
@unexec gacutil -u FSharp.Core,Version=2.3.0.0,Culture=neutral,PublicKeyToken=b03f5f7f11d50a3a
22
%%SUBDIR%%/bin/FSharp.PowerPack.Build.Tasks.dll
22
bin/fsharpc
23
%%SUBDIR%%/bin/FSharp.PowerPack.Build.Tasks.pdb
23
bin/fsharpi
24
%%SUBDIR%%/bin/FSharp.PowerPack.Build.Tasks.xml
24
bin/fsharpiAnyCpu
25
%%SUBDIR%%/bin/FSharp.PowerPack.Linq.dll
25
lib/mono/4.0/fsc.exe 
26
%%SUBDIR%%/bin/FSharp.PowerPack.Linq.pdb
26
lib/mono/4.0/fsi.exe
27
%%SUBDIR%%/bin/FSharp.PowerPack.Linq.xml
27
lib/mono/4.0/fsiAnyCpu.exe
28
%%SUBDIR%%/bin/FSharp.PowerPack.Math.Providers.dll
28
@comment Remove the lines below this once gacutil is fixed. 
29
%%SUBDIR%%/bin/FSharp.PowerPack.Metadata.dll
29
lib/mono/gac/fsc/4.3.0.0__f536804aa0eb945b/fsc.exe
30
%%SUBDIR%%/bin/FSharp.PowerPack.Metadata.pdb
30
@rmdir lib/mono/gac/fsc/4.3.0.0__f536804aa0eb945b
31
%%SUBDIR%%/bin/FSharp.PowerPack.Metadata.xml
31
@rmdir lib/mono/gac/fsc 
32
%%SUBDIR%%/bin/FSharp.PowerPack.Plot.Excel.dll
32
lib/mono/gac/fsi/4.3.0.0__f536804aa0eb945b/fsi.exe
33
%%SUBDIR%%/bin/FSharp.PowerPack.Plot.Neutral.dll
33
@rmdir lib/mono/gac/fsi/4.3.0.0__f536804aa0eb945b
34
%%SUBDIR%%/bin/FSharp.PowerPack.Plot.XCeed.dll
34
@rmdir lib/mono/gac/fsi 
35
%%SUBDIR%%/bin/FSharp.PowerPack.Plot.dll
35
lib/mono/gac/fsiAnyCpu/4.3.0.0__f536804aa0eb945b/fsiAnyCpu.exe
36
%%SUBDIR%%/bin/FSharp.PowerPack.dll
36
@rmdir lib/mono/gac/fsiAnyCpu/4.3.0.0__f536804aa0eb945b
37
%%SUBDIR%%/bin/FSharp.PowerPack.pdb
37
@rmdir lib/mono/gac/fsiAnyCpu
38
%%SUBDIR%%/bin/FSharp.PowerPack.targets
39
%%SUBDIR%%/bin/FSharp.PowerPack.xml
40
%%SUBDIR%%/bin/FSharp.ProjectSystem.Base.dll
41
%%SUBDIR%%/bin/FSharp.ProjectSystem.FSharp.dll
42
%%SUBDIR%%/bin/FSharp.ProjectSystem.PropertyPages.dll
43
%%SUBDIR%%/bin/FSharp.VS.FSI.dll
44
%%SUBDIR%%/bin/Microsoft.FSharp.targets
45
%%SUBDIR%%/bin/fsc.exe
46
%%SUBDIR%%/bin/fsi.exe
47
%%SUBDIR%%/bin/fslex.exe
48
%%SUBDIR%%/bin/fsyacc.exe
49
%%SUBDIR%%/bin/gac/FSharp.Compiler.CodeDom.dll
50
%%SUBDIR%%/bin/gac/FSharp.Compiler.CodeDom.pdb
51
%%SUBDIR%%/bin/gac/FSharp.Compiler.CodeDom.xml
52
%%SUBDIR%%/bin/gac/FSharp.Compiler.Server.Shared.dll
53
%%SUBDIR%%/bin/gac/FSharp.Compiler.dll
54
%%SUBDIR%%/bin/gac/FSharp.Core.dll
55
%%SUBDIR%%/bin/gac/FSharp.Core.pdb
56
%%SUBDIR%%/bin/gac/FSharp.Core.xml
57
%%SUBDIR%%/bin/gac/FSharp.LanguageService.dll
58
%%SUBDIR%%/bin/gac/FSharp.LanguageService.Base.dll
59
%%SUBDIR%%/bin/gac/FSharp.PowerPack.Build.Tasks.dll
60
%%SUBDIR%%/bin/gac/FSharp.PowerPack.Build.Tasks.pdb
61
%%SUBDIR%%/bin/gac/FSharp.PowerPack.Build.Tasks.xml
62
%%SUBDIR%%/bin/gac/FSharp.PowerPack.Linq.dll
63
%%SUBDIR%%/bin/gac/FSharp.PowerPack.Linq.pdb
64
%%SUBDIR%%/bin/gac/FSharp.PowerPack.Linq.xml
65
%%SUBDIR%%/bin/gac/FSharp.PowerPack.Metadata.dll
66
%%SUBDIR%%/bin/gac/FSharp.PowerPack.Metadata.pdb
67
%%SUBDIR%%/bin/gac/FSharp.PowerPack.Metadata.xml
68
%%SUBDIR%%/bin/gac/FSharp.PowerPack.dll
69
%%SUBDIR%%/bin/gac/FSharp.PowerPack.pdb
70
%%SUBDIR%%/bin/gac/FSharp.PowerPack.xml
71
%%SUBDIR%%/bin/gac/FSharp.ProjectSystem.Base.dll
72
%%SUBDIR%%/bin/gac/FSharp.ProjectSystem.FSharp.dll
73
%%SUBDIR%%/bin/gac/FSharp.ProjectSystem.PropertyPages.dll
74
%%SUBDIR%%/bin/gac/FSharp.VS.FSI.dll
75
%%SUBDIR%%/bin/gac/policy.1.9.FSharp.Compiler.CodeDom.dll
76
%%SUBDIR%%/bin/gac/policy.1.9.FSharp.Compiler.CodeDom.dll.config
77
%%SUBDIR%%/bin/gac/policy.1.9.FSharp.Core.dll
78
%%SUBDIR%%/bin/gac/policy.1.9.FSharp.Core.dll.config
79
%%SUBDIR%%/bin/gac/policy.1.9.FSharp.PowerPack.Build.Tasks.dll
80
%%SUBDIR%%/bin/gac/policy.1.9.FSharp.PowerPack.Build.Tasks.dll.config
81
%%SUBDIR%%/bin/gac/policy.1.9.FSharp.PowerPack.Linq.dll
82
%%SUBDIR%%/bin/gac/policy.1.9.FSharp.PowerPack.Linq.dll.config
83
%%SUBDIR%%/bin/gac/policy.1.9.FSharp.PowerPack.Metadata.dll
84
%%SUBDIR%%/bin/gac/policy.1.9.FSharp.PowerPack.Metadata.dll.config
85
%%SUBDIR%%/bin/gac/policy.1.9.FSharp.PowerPack.dll
86
%%SUBDIR%%/bin/gac/policy.1.9.FSharp.PowerPack.dll.config
87
@dirrm %%SUBDIR%%/bin/gac
88
@dirrm %%SUBDIR%%/bin
89
@dirrm %%SUBDIR%%

Return to bug 176018