summaryrefslogtreecommitdiff
path: root/lang/mono/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'lang/mono/Makefile')
-rw-r--r--lang/mono/Makefile61
1 files changed, 38 insertions, 23 deletions
diff --git a/lang/mono/Makefile b/lang/mono/Makefile
index f7c79cacb607..f0732ddcef59 100644
--- a/lang/mono/Makefile
+++ b/lang/mono/Makefile
@@ -2,9 +2,8 @@
# $FreeBSD$
PORTNAME= mono
-PORTVERSION= 4.8.1.0
+PORTVERSION= 5.2.0.215
DISTVERSIONPREFIX= mono-
-PORTREVISION= 2
CATEGORIES= lang
MAINTAINER= mono@FreeBSD.org
@@ -13,17 +12,21 @@ COMMENT= Open source implementation of .NET Development Framework
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
+ONLY_FOR_ARCHS= amd64 armv6 armv7 i386 powerpc
+BROKEN_armv6= fails to compile: mono/arch/arm/arm-codegen.h:947:10: fatal error: 'mono/arch/arm/arm_dpimacros.h' file not found
+BROKEN_armv7= fails to compile: mono/arch/arm/arm-codegen.h:947:10: fatal error: 'mono/arch/arm/arm_dpimacros.h' file not found
+
BUILD_DEPENDS= p5-XML-Parser>=0:textproc/p5-XML-Parser \
bash:shells/bash
LIB_DEPENDS= libinotify.so:devel/libinotify
-RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pillow>=0:graphics/py-pillow
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pillow>=0:graphics/py-pillow@${PY_FLAVOR} \
+ ca_root_nss>=0:security/ca_root_nss
-BROKEN_armv6= fails to compile: mono/arch/arm/arm-codegen.h:947:10: fatal error: 'mono/arch/arm/arm_dpimacros.h' file not found
-BROKEN_armv7= fails to compile: mono/arch/arm/arm-codegen.h:947:10: fatal error: 'mono/arch/arm/arm_dpimacros.h' file not found
-ONLY_FOR_ARCHS= amd64 armv6 armv7 i386 powerpc
+CONFLICTS_INSTALL= czmq-3*
OPTIONS_DEFINE= ACCEPTANCE_TESTS MONOLITE
OPTIONS_DEFAULT= MONOLITE
+
ACCEPTANCE_TESTS_DESC= Download and run the .Net acceptance tests
ACCEPTANCE_TESTS_DISTFILES=nuget.31.zip:nuget31
ACCEPTANCE_TESTS_GH_TUPLE=xamarin:benchmarker:97f618c:12/acceptance-tests/external/benchmarker \
@@ -33,23 +36,11 @@ ACCEPTANCE_TESTS_MASTER_SITES=https://dotnetci.blob.core.windows.net/roslyn/:nug
ACCEPTANCE_TESTS_TEST_DEPENDS=bash:shells/bash \
referenceassemblies-pcl>=4.6:lang/referenceassemblies-pcl
ACCEPTANCE_TESTS_VARS= SHEBANG_FILES+=${WRKSRC}/acceptance-tests/external/roslyn/cibuild.sh
+
MONOLITE_DESC= Use monolite to bootstrap mcs (otherwise use installed mcs)
MONOLITE_DISTFILES= monolite-${MONOLITE_VERSION}-latest.tar.gz:monolite
MONOLITE_MASTER_SITES= http://download.mono-project.com/monolite/:monolite
-
-MONOLITE_VERSION= 156
-USE_GITHUB= yes
-GH_TUPLE= mono:Lucene.Net.Light:85978b7:1/external/Lucene.Net.Light \
- mono:Newtonsoft.Json:471c3e0:2/external/Newtonsoft.Json \
- mono:NuGet.BuildTasks:04bdab5:3/external/nuget-buildtasks \
- mono:aspnetwebstack:e77b12e:4/external/aspnetwebstack \
- mono:buildtools:9b6ee86:5/external/buildtools \
- mono:cecil:2b39856:6/external/cecil \
- mono:cecil:33d50b8:7/external/cecil-legacy \
- mono:ikdasm:e4deabf:8/external/ikdasm \
- mono:ikvm-fork:367864e:9/external/ikvm \
- mono:reference-assemblies:6c77197:10/external/binary-reference-assemblies \
- mono:rx:b29a4b0:11/external/rx
+MONOLITE_VERSION= 1050200001
USES= autoreconf bison compiler:c11 cpe gettext gmake iconv libtool pathfix \
perl5 python shebangfix tar:bzip2
@@ -60,6 +51,24 @@ USE_LDCONFIG= yes
LLD_UNSAFE= yes
SHEBANG_FILES= scripts/mono-heapviz
+USE_GITHUB= yes
+GH_TUPLE= mono:Lucene.Net.Light:85978b7:1/external/Lucene.Net.Light \
+ mono:NUnitLite:690603b:19/external/nunit-lite \
+ mono:Newtonsoft.Json:471c3e0:2/external/Newtonsoft.Json \
+ mono:NuGet.BuildTasks:8d30747:3/external/nuget-buildtasks \
+ mono:aspnetwebstack:e77b12e:4/external/aspnetwebstack \
+ mono:buildtools:b5cc6e6:5/external/buildtools \
+ mono:cecil:1003fcb:6/external/cecil \
+ mono:cecil:33d50b8:7/external/cecil-legacy \
+ mono:corefx:78360b2:17/external/corefx \
+ mono:corert:ed6296d:16/external/corert \
+ mono:ikdasm:88b67c4:8/external/ikdasm \
+ mono:ikvm-fork:7c1e61b:9/external/ikvm \
+ mono:linker:c7450ca:18/external/linker \
+ mono:reference-assemblies:142cbeb:10/external/binary-reference-assemblies \
+ mono:roslyn-binaries:dcb0a05:15/external/roslyn-binaries \
+ mono:rx:b29a4b0:11/external/rx
+
CONFIGURE_ARGS= --disable-dtrace
CONFIGURE_ENV= ac_cv_header_sys_inotify_h=no
@@ -68,7 +77,6 @@ MAKE_ENV= MONO_SHARED_DIR="${WRKDIR}" \
TZ=UTC
TEST_TARGET= check
-TEST_WRKSRC= ${WRKSRC}/mono/tests
PORTSCOUT= limit:^\d+\.\d+\.[1-9]\d*
@@ -78,8 +86,8 @@ OPTIONS_SLAVE= MONOLITE
.endif
post-extract-MONOLITE-on:
- ${MKDIR} ${WRKSRC}/mcs/class/lib
- ${MV} ${WRKDIR}/monolite-${MONOLITE_VERSION}-latest ${WRKSRC}/mcs/class/lib/monolite
+ ${MKDIR} ${WRKSRC}/mcs/class/lib/monolite
+ ${MV} ${WRKDIR}/monolite-${MONOLITE_VERSION}-latest ${WRKSRC}/mcs/class/lib/monolite/${MONOLITE_VERSION}
post-patch:
${REINPLACE_CMD} -e 's|^#!/bin/bash|#!/usr/bin/env bash|g' \
@@ -90,6 +98,13 @@ post-patch:
-e 's|^#!/bin/bash|#!/bin/sh|g'
${SED} 's/tarball/${PORTVERSION}/' ${WRKSRC}/mono/mini/Makefile.am.in \
> ${WRKSRC}/mono/mini/Makefile.am
+ ${REINPLACE_CMD} -e 's|/usr/share|${PREFIX}|g' \
+ ${WRKSRC}/mcs/class/corlib/System/Environment.cs \
+ ${WRKSRC}/external/corefx/src/System.Runtime.Extensions/src/System/Environment.Unix.cs
+ ${REINPLACE_CMD} -e 's|/usr/share/.mono|${PREFIX}/share/mono|g' \
+ ${WRKSRC}/man/mono-configuration-crypto.1 \
+ ${WRKSRC}/man/mono.1 \
+ ${WRKSRC}/man/mozroots.1
post-patch-ACCEPTANCE_TESTS-on:
${REINPLACE_CMD} -E -e 's!(~/|/tmp/)!${WRKDIR}/!g' -e '/git clean/d' \