From owner-svn-ports-all@FreeBSD.ORG Tue Apr 23 07:27:19 2013 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id C76B3BEB; Tue, 23 Apr 2013 07:27:19 +0000 (UTC) (envelope-from jgh@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id A1D751D15; Tue, 23 Apr 2013 07:27:19 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.6/8.14.6) with ESMTP id r3N7RJR4004230; Tue, 23 Apr 2013 07:27:19 GMT (envelope-from jgh@svn.freebsd.org) Received: (from jgh@localhost) by svn.freebsd.org (8.14.6/8.14.5/Submit) id r3N7RIk9004228; Tue, 23 Apr 2013 07:27:18 GMT (envelope-from jgh@svn.freebsd.org) Message-Id: <201304230727.r3N7RIk9004228@svn.freebsd.org> From: Jason Helfman Date: Tue, 23 Apr 2013 07:27:18 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r316316 - in 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-all@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Apr 2013 07:27:19 -0000 Author: jgh Date: Tue Apr 23 07:27:18 2013 New Revision: 316316 URL: http://svnweb.freebsd.org/changeset/ports/316316 Log: Introduces USES= gettext to replace USE_GETTEXT   It can take 3 arguments:   build to add gettext into both RUN and BUILD DEPENDS   run to add gettext into RUN_DEPENDS   lib (default,implicit) to add gettext into LIB_DEPENDS   This deprecates USE_GETTEXT. Please convert your ports.   USE_GETTEXT will be removed as soon as it is no longer used in   the ports tree Approved by: portmgr (bapt) Added: head/Mk/Uses/gettext.mk (contents, props changed) Modified: head/CHANGES Modified: head/CHANGES ============================================================================== --- head/CHANGES Tue Apr 23 07:24:02 2013 (r316315) +++ head/CHANGES Tue Apr 23 07:27:18 2013 (r316316) @@ -10,6 +10,19 @@ in the release notes and/or placed into All ports committers are allowed to commit to this file. +20130423: +AUTHOR: jgh@FreeBSD.org + + * New USES macro to handle support for gettext dependency: + + USES= gettext:build will add gettext into BUILD_DEPENDS + USES= gettext:run will add gettext into RUN_DEPENDS + USES= gettext:lib will add gettext into LIB_DEPENDS + + It deprecates USE_GETTEXT which will be removed as soon as it is not + used anymore + + 20130422: AUTHOR: bdrewery@FreeBSD.org Added: head/Mk/Uses/gettext.mk ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/Mk/Uses/gettext.mk Tue Apr 23 07:27:18 2013 (r316316) @@ -0,0 +1,31 @@ +# $FreeBSD$ +# +# handle dependency on the gettext (libintl) port +# +# MAINTAINER: portmgr@FreeBSD.org +# +# Feature: gettext +# Usage: USES=gettext or USES=gettext:ARGS +# Valid ARGS: build, run, lib (default, implicit) +# +# +.if !defined(_INCLUDE_USES_GETTEXT_MK) +_INCLUDE_USES_GETTEXT_MK= yes + +_GETTEXT_DEPENDS= xgettext:${PORTSDIR}/devel/gettext + +.if !defined(gettext_ARGS) +gettext_ARGS= lib +.endif + +.if ${gettext_ARGS} == "build" +BUILD_DEPENDS+= ${_GETTEXT_DEPENDS} +.elif ${gettext_ARGS} == "run" +RUN_DEPENDS+= ${_GETTEXT_DEPENDS} +.elif ${gettext_ARGS} == "lib" +LIB_DEPENDS+= intl:${PORTSDIR}/devel/gettext +.else +IGNORE= USES=gettext - invalid args: [${gettext_ARGS}] specifed +.endif + +.endif