Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 7 Jan 2014 17:55:14 +0000 (UTC)
From:      Alberto Villa <avilla@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r339016 - head/Mk/Uses
Message-ID:  <201401071755.s07HtEq2020878@svn.freebsd.org>

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