svn commit: r316316 - in head: . Mk/Uses
Jason Helfman
jgh at FreeBSD.org
Tue Apr 23 07:27:19 UTC 2013
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 at 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 at 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 at 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
More information about the svn-ports-head
mailing list