Date: Thu, 25 May 2017 14:04:48 +0000 (UTC) From: Baptiste Daroussin <bapt@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r441689 - head/Mk/Uses Message-ID: <201705251404.v4PE4mt0044460@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: bapt Date: Thu May 25 14:04:48 2017 New Revision: 441689 URL: https://svnweb.freebsd.org/changeset/ports/441689 Log: In preparation for removal of groff from base add USES=groff it will handle the dependencies on groff by using groff from ports if not available in base Reviewed by: swills Approved by: swills Differential Revision: https://reviews.freebsd.org/D9084 Added: head/Mk/Uses/groff.mk (contents, props changed) Added: head/Mk/Uses/groff.mk ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/Mk/Uses/groff.mk Thu May 25 14:04:48 2017 (r441689) @@ -0,0 +1,31 @@ +# $FreeBSD$ +# +# handle dependency on groff +# +# Feature: groff +# Usage: USES=groff +# Valid ARGS: build (default, implicit), run, both + +.if !defined(_INCLUDE_USES_GROFF_MK) +_INCLUDE_USES_GROFF_MK= yes + +. if !exists(/usr/bin/groff) +. if empty(groff_ARGS) +groff_ARGS= build +. endif + +_GROFF_DEPENDS= groff:textproc/groff + +. if ${groff_ARGS} == "build" +BUILD_DEPENDS+= ${_GROFF_DEPENDS} +. elif ${groff_ARGS} == "run" +RUN_DEPENDS+= ${_GROFF_DEPENDS} +. elif ${groff_ARGS} == "both" +BUILD_DEPENDS+= ${_GROFF_DEPENDS} +RUN_DEPENDS+= ${_GROFF_DEPENDS} +. else +IGNORE= USES=groff - invalid args: [${groff_ARGS}] specified +. endif +. endif + +.endif
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201705251404.v4PE4mt0044460>