svn commit: r339016 - head/Mk/Uses

Alberto Villa avilla at FreeBSD.org
Tue Jan 7 17:55:14 UTC 2014


Author: avilla
Date: Tue Jan  7 17:55:13 2014
New Revision: 339016
URL: http://svnweb.freebsd.org/changeset/ports/339016

Log:
  - Convert USES=ninja:verbose into NINJA_VERBOSE make.conf(5) switch.
  
  Approved by:	portmgr (bapt)

Modified:
  head/Mk/Uses/ninja.mk

Modified: head/Mk/Uses/ninja.mk
==============================================================================
--- head/Mk/Uses/ninja.mk	Tue Jan  7 17:46:08 2014	(r339015)
+++ head/Mk/Uses/ninja.mk	Tue Jan  7 17:55:13 2014	(r339016)
@@ -1,21 +1,25 @@
 # $FreeBSD$
 #
-# Provide support to use ninja
+# Provide support to use Ninja
 #
 # MAINTAINER: portmgr at FreeBSD.org
 #
-# Feature:	ninja
-# Usage:	USES=ninja[:verbose]
+# Feature:		ninja
+# Usage:		USES=ninja
+#
+# User defined variables:
+# NINJA_VERBOSE		- Enable verbose output.
+#
 
 .if !defined(_INCLUDE_USES_NINJA_MK)
 _INCLUDE_USES_NINJA_MK=	yes
 
 .if defined(ninja_ARGS)
-.if ${ninja_ARGS} == verbose
-MAKE_ARGS+=	-v
-.else
-IGNORE=	Incorrect aruments for 'USES+= ninja:${ninja_ARGS}' valid argument is 'verbose'
+IGNORE=	Incorrect 'USES+= ninja:${ninja_ARGS}' ninja takes no arguments
 .endif
+
+.if defined(NINJA_VERBOSE)
+MAKE_ARGS+=	-v
 .endif
 
 BUILD_DEPENDS=	ninja:${PORTSDIR}/devel/ninja


More information about the svn-ports-all mailing list