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)
This commit is contained in:
parent
3bc475b29f
commit
a81cf14346
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=316316
13
CHANGES
13
CHANGES
|
@ -10,6 +10,19 @@ in the release notes and/or placed into UPDATING.
|
|||
|
||||
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
|
||||
|
||||
|
|
|
@ -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
|
Loading…
Reference in New Issue