From owner-freebsd-doc@FreeBSD.ORG Fri Apr 26 06:20:01 2013 Return-Path: Delivered-To: freebsd-doc@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 4051C34E for ; Fri, 26 Apr 2013 06:20:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 30AD61FC9 for ; Fri, 26 Apr 2013 06:20:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.6/8.14.6) with ESMTP id r3Q6K1To006975 for ; Fri, 26 Apr 2013 06:20:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.6/8.14.6/Submit) id r3Q6K17B006974; Fri, 26 Apr 2013 06:20:01 GMT (envelope-from gnats) Date: Fri, 26 Apr 2013 06:20:01 GMT Message-Id: <201304260620.r3Q6K17B006974@freefall.freebsd.org> To: freebsd-doc@FreeBSD.org Cc: From: Jason Helfman Subject: Re: docs/178169: [patch][porters-handbook] update documentation for using gettext X-BeenThere: freebsd-doc@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Jason Helfman List-Id: Documentation project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Apr 2013 06:20:01 -0000 The following reply was made to PR docs/178169; it has been noted by GNATS. From: Jason Helfman To: bug-followup@FreeBSD.org Cc: Subject: Re: docs/178169: [patch][porters-handbook] update documentation for using gettext Date: Thu, 25 Apr 2013 23:13:23 -0700 --envbJBWh7q8WU6mo Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline Language correction. -jgh -- Jason Helfman FreeBSD Committer | http://people.freebsd.org/~jgh | The Power To Serve --envbJBWh7q8WU6mo Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="gettext.diff" Index: porters-handbook/book.xml =================================================================== --- porters-handbook/book.xml (revision 41499) +++ porters-handbook/book.xml (working copy) @@ -5781,17 +5781,12 @@ Basic Usage - If your port requires gettext, - just set USE_GETTEXT to - yes, and your port will grow the - dependency on devel/gettext. The value of - USE_GETTEXT can also specify the required - version of the libintl library, the basic - part of gettext, but using this feature - is strongly discouraged: Your port - should work with just the current version of devel/gettext. + If your port requires gettext, just set + USES= gettext, and your + port will inherit a dependency on devel/gettext. Other values for + gettext usage are listed in . A rather common case is a port using gettext and configure. @@ -5802,7 +5797,7 @@ CPPFLAGS and LDFLAGS as follows: - USE_GETTEXT= yes + USES= gettext CPPFLAGS+= -I${LOCALBASE}/include LDFLAGS+= -L${LOCALBASE}/lib @@ -5811,7 +5806,7 @@ Of course, the code can be more compact if there are no more flags to pass to configure: - USE_GETTEXT= yes + USES= gettext GNU_CONFIGURE= yes @@ -5832,7 +5827,7 @@ .include <bsd.port.options.mk> .if ${PORT_OPTIONS:MNLS} -USE_GETTEXT= yes +USES+= gettext PLIST_SUB+= NLS="" .else CONFIGURE_ARGS+= --disable-nls Index: porters-handbook/uses.xml =================================================================== --- porters-handbook/uses.xml (revision 41499) +++ porters-handbook/uses.xml (working copy) @@ -63,6 +63,19 @@ + gettext + none, lib, build, + run + Implies that the port uses devel/gettext in one way or another. By + default, with no arguments or with the lib + argument, implies gettext with build-time and + run-time dependencies, build implies a build-time + dependency, and run implies a run-time + dependency. + + + pathfix none Look for the Makefile.in and --envbJBWh7q8WU6mo--