From owner-svn-ports-head@freebsd.org Tue Jul 21 03:22:24 2015 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A83089A64B3; Tue, 21 Jul 2015 03:22:24 +0000 (UTC) (envelope-from hrs@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 8CAF2A36; Tue, 21 Jul 2015 03:22:24 +0000 (UTC) (envelope-from hrs@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.70]) by repo.freebsd.org (8.14.9/8.14.9) with ESMTP id t6L3MOT9013584; Tue, 21 Jul 2015 03:22:24 GMT (envelope-from hrs@FreeBSD.org) Received: (from hrs@localhost) by repo.freebsd.org (8.14.9/8.14.9/Submit) id t6L3MOcf013583; Tue, 21 Jul 2015 03:22:24 GMT (envelope-from hrs@FreeBSD.org) Message-Id: <201507210322.t6L3MOcf013583@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: hrs set sender to hrs@FreeBSD.org using -f From: Hiroki Sato Date: Tue, 21 Jul 2015 03:22:24 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r392610 - head/Mk/Uses X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Jul 2015 03:22:24 -0000 Author: hrs Date: Tue Jul 21 03:22:23 2015 New Revision: 392610 URL: https://svnweb.freebsd.org/changeset/ports/392610 Log: - Remove "agpl" keyword in ghostscript arguments. - Add "agpl" to GHOSTSCRIPT_DEFAULT. GHOSTSCRIPT_DEFAULT="9 agpl" is valid for print/ghostscript9-agpl. - Fix GHOSTSCRIPT_DEFAULT validation when using fmake. Modified: head/Mk/Uses/ghostscript.mk Modified: head/Mk/Uses/ghostscript.mk ============================================================================== --- head/Mk/Uses/ghostscript.mk Tue Jul 21 02:00:40 2015 (r392609) +++ head/Mk/Uses/ghostscript.mk Tue Jul 21 03:22:23 2015 (r392610) @@ -4,7 +4,7 @@ # # Feature: ghostscript # Usage: USES=ghostscript or USES=ghostscript:args -# Valid ARGS: , build, run, nox11, agpl +# Valid ARGS: , build, run, nox11 # # version The chooseable versions are 7, 8 and 9. If no version is # specified version 9 is selected. @@ -14,7 +14,6 @@ # USES=ghostscript:8,build # Use ghostscript 8 as a build dependancy. # # nox11 Indicate that the Ghostscript nox11 port is required. -# agpl Indicate that the Ghostscript apgl port is required. # build Indicates that Ghostscript is needed at build time and adds # it as BUILD_DEPENDS. # run Indicates that Ghostscript is needed at run time and adds @@ -29,19 +28,19 @@ _INCLUDE_USES_GHOSTSCRIPT_MK= yes # allowed versions -_GS_VERSION= 7 8 9 9.06 9.16 +_GS_VERSION= 7 8 9 9.06 9.16 agpl _GS_ARGS= ${ghostscript_ARGS} -.if ${_GS_ARGS:N[789]:N9.06:N9.16:Nnox11:Nagpl:Nbuild:Nrun} -IGNORE= Unknown ghostscript argument ${_GS_ARGS} +.if ${_GS_ARGS:N[789]:N9.06:N9.16:Nnox11:Nbuild:Nrun} +IGNORE?= Unknown ghostscript argument ${_GS_ARGS} .endif # Determine version number of Ghostscript to use .include "${PORTSDIR}/Mk/bsd.default-versions.mk" -.if ${_GS_VERSION:M${GHOSTSCRIPT_DEFAULT}} == "" -IGNORE= Invalid GHOSTSCRIPT_DEFAULT value: ${GHOSTSCRIPT_DEFAULT}, please select one of ${_GS_VERSION} +.if ${GHOSTSCRIPT_DEFAULT:N[789]:N9.06:N9.16:Nagpl} +IGNORE?= Invalid GHOSTSCRIPT_DEFAULT value: ${GHOSTSCRIPT_DEFAULT}, please select one of ${_GS_VERSION} .endif # Make sure that no dependency or some other environment variable @@ -73,11 +72,12 @@ _GS_SELECTED?= 9 .elif ${_V:M9.16} _GS_SELECTED?= 9 _GS_AGPL_SUFFIX?= -agpl -.elif ${_V:Magpl} && defined(_GS_SELECTED) -.if ${_GS_SELECTED:M9} +.elif ${_V:Magpl} _GS_AGPL_SUFFIX?= -agpl +.if defined(_GS_SELECTED) && ${_GS_SELECTED:N9} +IGNORE?= Ghostscript-agpl is only available in version 9 .else -IGNORE= Ghostscript-agpl is only available in version 9 +_GS_SELECTED?= 9 .endif .elif ${_V:M8} _GS_SELECTED?= 8 @@ -86,7 +86,7 @@ _GS_SELECTED?= 7 .endif .endfor .if !defined(_GS_SELECTED) -IGNORE= Invalid ghostscript argument or GHOSTSCRIPT_DEFAULT +IGNORE?= Invalid ghostscript argument or GHOSTSCRIPT_DEFAULT .endif .undef _GS_NOX11_SUFFIX