Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 22 Jan 2014 07:57:33 +0000 (UTC)
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-branches@freebsd.org
Subject:   svn commit: r340685 - branches/2014Q1/Mk/Uses
Message-ID:  <201401220757.s0M7vX0W023206@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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@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



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