svn commit: r340685 - branches/2014Q1/Mk/Uses

Baptiste Daroussin bapt at FreeBSD.org
Wed Jan 22 07:57:33 UTC 2014


Author: bapt
Date: Wed Jan 22 07:57:33 2014
New Revision: 340685
URL: http://svnweb.freebsd.org/changeset/ports/340685
QAT: https://qat.redports.org/buildarchive/r340685/

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

Modified:
  branches/2014Q1/Mk/Uses/ninja.mk
Directory Properties:
  branches/2014Q1/   (props changed)

Modified: branches/2014Q1/Mk/Uses/ninja.mk
==============================================================================
--- branches/2014Q1/Mk/Uses/ninja.mk	Wed Jan 22 07:56:32 2014	(r340684)
+++ branches/2014Q1/Mk/Uses/ninja.mk	Wed Jan 22 07:57:33 2014	(r340685)
@@ -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