Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 16 Feb 2020 21:44:56 +0000 (UTC)
From:      Dave Cottlehuber <dch@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r526329 - head/Mk/Uses
Message-ID:  <202002162144.01GLiuEc045466@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: dch
Date: Sun Feb 16 21:44:56 2020
New Revision: 526329
URL: https://svnweb.freebsd.org/changeset/ports/526329

Log:
  Update mono USES= as optional buildtime-only dependency
  
  Reviewed by:	romain
  Approved by:	Maintainer Timeout
  Sponsored by:	SkunkWerks, GmbH
  Differential Revision:	https://reviews.freebsd.org/D23278

Modified:
  head/Mk/Uses/mono.mk

Modified: head/Mk/Uses/mono.mk
==============================================================================
--- head/Mk/Uses/mono.mk	Sun Feb 16 21:43:18 2020	(r526328)
+++ head/Mk/Uses/mono.mk	Sun Feb 16 21:44:56 2020	(r526329)
@@ -10,6 +10,8 @@
 #
 # Arguments:
 #
+# build		Specifies that mono is only a build-time dependency.
+#
 # nuget		Specifies that the port uses nuget packages.
 #
 #		EXTRACT_ONLY is conditionally overridden to exclude all
@@ -71,8 +73,8 @@
 .if !defined(_INCLUDE_USES_MONO_MK)
 _INCLUDE_USES_MONO_MK=	yes
 
-.if !empty(mono_ARGS:Nnuget)
-IGNORE=	USES=mono only supports an optional nuget argument
+.if !empty(mono_ARGS:Nnuget:Nbuild)
+IGNORE=	USES=mono only supports optional arguments nuget and build
 .endif
 
 # Set the location of the .wapi directory so we write to a location we
@@ -81,7 +83,9 @@ MONO_SHARED_DIR=	${WRKDIR}
 CONFIGURE_ENV+=		MONO_SHARED_DIR="${MONO_SHARED_DIR}"
 MAKE_ENV+=		MONO_SHARED_DIR="${MONO_SHARED_DIR}" TZ=UTC
 BUILD_DEPENDS+=		mono:lang/mono
+.if empty(mono_ARGS:Mbuild)
 RUN_DEPENDS+=		mono:lang/mono
+.endif
 
 # Set the location that webaps served by XSP should use.
 XSP_DOCROOT=		${PREFIX}/www/xsp



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