Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 May 2021 03:30:47 GMT
From:      Mark Linimon <linimon@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: f681ff8a4cf7 - main - lang/mono: attempt to revert 411aa79977ad64f430a29ed6c2f1065a7399bb25
Message-ID:  <202105250330.14P3Ul5c061356@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by linimon:

URL: https://cgit.FreeBSD.org/ports/commit/?id=f681ff8a4cf74f0b265944760c38f514e946fd1f

commit f681ff8a4cf74f0b265944760c38f514e946fd1f
Author:     Mark Linimon <linimon@FreeBSD.org>
AuthorDate: 2021-05-25 03:30:04 +0000
Commit:     Mark Linimon <linimon@FreeBSD.org>
CommitDate: 2021-05-25 03:30:04 +0000

    lang/mono: attempt to revert 411aa79977ad64f430a29ed6c2f1065a7399bb25
    
    which was a WIP committed from a wrong directory.
---
 lang/mono/Makefile | 92 +++++++++++++++++++++++++++++++++++++++++++++++++-----
 1 file changed, 85 insertions(+), 7 deletions(-)

diff --git a/lang/mono/Makefile b/lang/mono/Makefile
index 2d0a743ecc59..e8094d46e013 100644
--- a/lang/mono/Makefile
+++ b/lang/mono/Makefile
@@ -1,16 +1,94 @@
+# Created by: Yukihiro Nakai <nakai@FreeBSD.org>
+
 PORTNAME=	mono
-PORTVERSION=	${MONO_DEFAULT}
+PORTVERSION=	5.10.1.57
+PORTREVISION=	3
 CATEGORIES=	lang
-#MASTER_SITES=	# not applicable
-#DISTFILES=	# not applicable
+MASTER_SITES=	https://download.mono-project.com/sources/mono/
+DISTFILES=	${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX}
 
 MAINTAINER=	mono@FreeBSD.org
-COMMENT=	Meta-port for the default version of the Mono language
+COMMENT=	Open source implementation of .NET Development Framework
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+ONLY_FOR_ARCHS=		amd64 armv6 armv7 i386 powerpc
+
+BUILD_DEPENDS=	p5-XML-Parser>=0:textproc/p5-XML-Parser \
+		bash:shells/bash \
+		cmake>0:devel/cmake
+LIB_DEPENDS=	libinotify.so:devel/libinotify
+RUN_DEPENDS=	${PY_PILLOW} \
+		ca_root_nss>=0:security/ca_root_nss
+
+CONFLICTS_INSTALL=	czmq-3*
+
+OPTIONS_DEFINE=		MONOLITE NLS X11
+OPTIONS_DEFAULT=	MONOLITE X11
+OPTIONS_SUB=	yes
+
+MONOLITE_DESC=		Use monolite to bootstrap mcs (otherwise use installed mcs)
+MONOLITE_DISTFILES=	monolite-linux-${MONOLITE_VERSION}-latest.tar.gz:monolite
+MONOLITE_MASTER_SITES=	http://download.mono-project.com/monolite/:monolite
+MONOLITE_VERSION=	1051000004
+
+NLS_CONFIGURE_OFF=	--disable-nls
+NLS_USES=	gettext
+
+X11_USES=	display:test
+
+USES=	autoreconf bison compiler:c11 cpe gmake iconv libtool \
+	pathfix perl5 python:3.6+ shebangfix tar:bzip2
+USE_PERL5=	build
+GNU_CONFIGURE=	yes
+USE_LDCONFIG=	yes
+SHEBANG_FILES=	scripts/mono-heapviz mono/mini/genmdesc.py mono/tests/test_lldb.py
+BINARY_ALIAS=	python=${PYTHON_CMD}
+
+CONFIGURE_ARGS=	--disable-dtrace --enable-btls
+CONFIGURE_ENV=	ac_cv_header_sys_inotify_h=no
+
+MAKE_ENV=	MONO_SHARED_DIR="${WRKDIR}" \
+		INSTALL_STRIP_FLAG="${STRIP}" \
+		TZ=UTC
+
+TEST_ARGS=	-k
+TEST_TARGET=	check
+
+PORTSCOUT=	limit:^\d+\.\d+\.[1-9]\d*
+
+LOCALBASE?=	/usr/local
+.if !exists(${LOCALBASE}/bin/mcs)
+OPTIONS_SLAVE=	MONOLITE
+.endif
+
+post-extract-MONOLITE-on:
+	${MKDIR} ${WRKSRC}/mcs/class/lib/monolite-linux
+	${MV} ${WRKDIR}/monolite-linux-${MONOLITE_VERSION}-latest ${WRKSRC}/mcs/class/lib/monolite-linux/${MONOLITE_VERSION}
 
-USES=		metaport
+post-patch:
+	${REINPLACE_CMD} -e 's|^#!/bin/bash|#!/usr/bin/env bash|g' \
+		${WRKSRC}/scripts/mono-find-provides.in \
+		${WRKSRC}/scripts/mono-find-requires.in \
+		${WRKSRC}/scripts/mono-test-install
+	${FIND} ${WRKSRC} -name '*.sh' | ${XARGS} ${REINPLACE_CMD} \
+		-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
 
-RUN_DEPENDS=	mono:lang/mono${MONO_DEFAULT}
+post-configure:
+	${REINPLACE_CMD} -e 's|share\/man|man|g' \
+		${WRKSRC}/mcs/jay/Makefile
 
-WRKSRC=		${WRKDIR}
+post-install:
+	${MKDIR} ${STAGEDIR}${PREFIX}/mono
 
 .include <bsd.port.mk>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202105250330.14P3Ul5c061356>