From owner-svn-doc-all@FreeBSD.ORG Fri Apr 26 23:30:37 2013 Return-Path: Delivered-To: svn-doc-all@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id BB2F4C21; Fri, 26 Apr 2013 23:30:37 +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 AC92C133C; Fri, 26 Apr 2013 23:30:37 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.6/8.14.6) with ESMTP id r3QNUb4i000917; Fri, 26 Apr 2013 23:30:37 GMT (envelope-from jgh@svn.freebsd.org) Received: (from jgh@localhost) by svn.freebsd.org (8.14.6/8.14.5/Submit) id r3QNUbeK000912; Fri, 26 Apr 2013 23:30:37 GMT (envelope-from jgh@svn.freebsd.org) Message-Id: <201304262330.r3QNUbeK000912@svn.freebsd.org> From: Jason Helfman Date: Fri, 26 Apr 2013 23:30:37 +0000 (UTC) To: doc-committers@freebsd.org, svn-doc-all@freebsd.org, svn-doc-head@freebsd.org Subject: svn commit: r41507 - head/en_US.ISO8859-1/books/porters-handbook X-SVN-Group: doc-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-doc-all@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "SVN commit messages for the entire doc trees \(except for " user" , " projects" , and " translations" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Apr 2013 23:30:37 -0000 Author: jgh (ports committer) Date: Fri Apr 26 23:30:36 2013 New Revision: 41507 URL: http://svnweb.freebsd.org/changeset/doc/41507 Log: - document USES=gettext PR: 178169 Reviewed by: remko Modified: head/en_US.ISO8859-1/books/porters-handbook/book.xml head/en_US.ISO8859-1/books/porters-handbook/uses.xml Modified: head/en_US.ISO8859-1/books/porters-handbook/book.xml ============================================================================== --- head/en_US.ISO8859-1/books/porters-handbook/book.xml Fri Apr 26 16:44:44 2013 (r41506) +++ head/en_US.ISO8859-1/books/porters-handbook/book.xml Fri Apr 26 23:30:36 2013 (r41507) @@ -5781,17 +5781,12 @@ CMAKE_SOURCE_PATH= ${WRKSRC}/subp 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, 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 @@ CMAKE_SOURCE_PATH= ${WRKSRC}/subp CPPFLAGS and LDFLAGS as follows: - USE_GETTEXT= yes + USES= gettext CPPFLAGS+= -I${LOCALBASE}/include LDFLAGS+= -L${LOCALBASE}/lib @@ -5811,7 +5806,7 @@ GNU_CONFIGURE= yes 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 @@ GNU_CONFIGURE= yes .include <bsd.port.options.mk> .if ${PORT_OPTIONS:MNLS} -USE_GETTEXT= yes +USES+= gettext PLIST_SUB+= NLS="" .else CONFIGURE_ARGS+= --disable-nls Modified: head/en_US.ISO8859-1/books/porters-handbook/uses.xml ============================================================================== --- head/en_US.ISO8859-1/books/porters-handbook/uses.xml Fri Apr 26 16:44:44 2013 (r41506) +++ head/en_US.ISO8859-1/books/porters-handbook/uses.xml Fri Apr 26 23:30:36 2013 (r41507) @@ -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