From owner-svn-doc-head@freebsd.org Thu Jul 23 14:27:37 2015 Return-Path: Delivered-To: svn-doc-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9165E9A9477; Thu, 23 Jul 2015 14:27:37 +0000 (UTC) (envelope-from mat@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 805AE1195; Thu, 23 Jul 2015 14:27:37 +0000 (UTC) (envelope-from mat@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.70]) by repo.freebsd.org (8.14.9/8.14.9) with ESMTP id t6NERbPS087891; Thu, 23 Jul 2015 14:27:37 GMT (envelope-from mat@FreeBSD.org) Received: (from mat@localhost) by repo.freebsd.org (8.14.9/8.14.9/Submit) id t6NERbDl087890; Thu, 23 Jul 2015 14:27:37 GMT (envelope-from mat@FreeBSD.org) Message-Id: <201507231427.t6NERbDl087890@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: mat set sender to mat@FreeBSD.org using -f From: Mathieu Arnold Date: Thu, 23 Jul 2015 14:27:37 +0000 (UTC) To: doc-committers@freebsd.org, svn-doc-all@freebsd.org, svn-doc-head@freebsd.org Subject: svn commit: r47055 - head/en_US.ISO8859-1/books/porters-handbook/uses X-SVN-Group: doc-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-doc-head@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for the doc tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Jul 2015 14:27:37 -0000 Author: mat Date: Thu Jul 23 14:27:36 2015 New Revision: 47055 URL: https://svnweb.freebsd.org/changeset/doc/47055 Log: Convert the USES table into multiple . To translators, the only text change are: - The chapter title; - For each argument entry, the text "Possible arguments: " is prepended to the argument list; - The first sect1 is new; The rest of the change is, replace tags with , replace the first of each by a , and the following <entry> by <para>. Approved by: wblock (mentor) MFH: Relnotes: Sponsored by: Absolight Differential Revision: https://reviews.freebsd.org/D3142 Modified: head/en_US.ISO8859-1/books/porters-handbook/uses/chapter.xml Modified: head/en_US.ISO8859-1/books/porters-handbook/uses/chapter.xml ============================================================================== --- head/en_US.ISO8859-1/books/porters-handbook/uses/chapter.xml Thu Jul 23 14:14:11 2015 (r47054) +++ head/en_US.ISO8859-1/books/porters-handbook/uses/chapter.xml Thu Jul 23 14:27:36 2015 (r47055) @@ -14,57 +14,82 @@ format is easy to grasp from the already-added entries below (or use this scheme below as a skeleton): -<row xml:id="uses-FEATURE"> - <entry><literal>FEATURE</literal></entry> +<sect1 xml:id="uses-FEATURE"> + <title><literal>FEATURE</literal> - ARGUMENTS + Possible arguments: ARGUMENTS - DESCRIPTION - + DESCRIPTION + --> - Values of - <varname>USES</varname> + Using <varname>USES</varname> + Macros - - Values of <varname>USES</varname> + + An Introduction to <varname>USES</varname> - - - - Feature + USES macros make it easy to declare + requirements and settings for a port. They can add + dependencies, change building behavior, add metadata to + packages, and so on, all by selecting simple, preset + values.. - Arguments + Each section in this chapter describes a possible value for + USES, along with its possible arguments. + Arguments are appeneded to the value after a colon + (:). Multiple arguments are separated by + commas (,). - Description - - + + Using Multiple Values - - - ada + USES= bison perl + - (none), 47, 49, - 5 + + Adding an Argument - Depends on an Ada-capable + USES= gmake:lite + + + + Adding Multiple Arguments + + USES= drupal:7,theme + + + + Mixing it All Together + + USES= pgsql:9.3+ cpe python:2.7,build + + + + + <literal>ada</literal> + + Possible arguments: (none), 47, 49, + 5 + + Depends on an Ada-capable compiler, and sets CC accordingly. Defaults to a gcc 4.9 based compiler, use :47 to use the older gcc 4.7 based one and :5 to use the newer - gcc 5 based one. - + gcc 5 based one. + - - autoreconf + + <literal>autoreconf</literal> - (none), build + Possible arguments: (none), build - Runs autoreconf. It encapsulates + Runs autoreconf. It encapsulates the aclocal, autoconf, autoheader, @@ -80,75 +105,75 @@ autoreconf will recursively update those as well. The :build argument only adds build time dependencies on those tools but does - not run autoreconf. - + not run autoreconf. + - - blaslapack + + <literal>blaslapack</literal> - (none), atlas, + Possible arguments: (none), atlas, netlib (default), gotoblas, - openblas + openblas - Adds dependencies on Blas / Lapack libraries. - + Adds dependencies on Blas / Lapack libraries. + - - bison + + <literal>bison</literal> - (none), build, - run, both + Possible arguments: (none), build, + run, both - Uses devel/bison + Uses devel/bison By default, with no arguments or with the build argument, it implies bison is a build-time dependency, run implies a run-time dependency, and both implies both run-time and - build-time dependencies. - + build-time dependencies. + - - charsetfix + + <literal>charsetfix</literal> - (none) + Possible arguments: (none) - Prevents the port from installing + Prevents the port from installing charset.alias. This must be installed only by converters/libiconv. CHARSETFIX_MAKEFILEIN can be set to a path relative to WRKSRC if charset.alias is not installed by - ${WRKSRC}/Makefile.in. - + ${WRKSRC}/Makefile.in. + - - cmake + + <literal>cmake</literal> - (none), outsource, - run + Possible arguments: (none), outsource, + run - Uses CMake for configuring + Uses CMake for configuring and building. With the outsource argument, an out-of-source build will be performed. With the run argument, a run-time dependency is registered. For more information see - . - + . + - - compiler + + <literal>compiler</literal> - (none), c++0x, + Possible arguments: (none), c++0x, c++11-lang, gcc-c++11-lib, c++11-lib, c11, openmp, nestedfct, - features + features - Determines which compiler to use based on any given + Determines which compiler to use based on any given wishes. Use c++11-lang if the port needs a C++11-capable compiler, gcc-c++11-lib if the port needs the @@ -198,15 +223,15 @@ features supported by the default compiler. It currently lists the C++ library. - - + + - - cpe + + <literal>cpe</literal> - (none) + Possible arguments: (none) - + Include Common Platform Enumeration (CPE) information in package manifest as a CPE 2.3 formatted string. See the @@ -218,7 +243,7 @@ - Search for the official CPE entry for the + Search for the official CPE para for the software product either by using the NVD's CPE search engine or in the Add cpe to USES and compare the result of make -V CPE_STR to the - CPE dictionary entry. Continue + CPE dictionary para. Continue one step at a time until make -V CPE_STR is correct. @@ -288,50 +313,50 @@ CPE_STR. - - + + - - cran + + <literal>cran</literal> - (none), auto-plist + Possible arguments: (none), auto-plist - Uses the Comprehensive R Archive Network. Specify + Uses the Comprehensive R Archive Network. Specify auto-plist to automatically generate - pkg-plist. - + pkg-plist. + - - desktop-file-utils + + <literal>desktop-file-utils</literal> - (none) + Possible arguments: (none) - Uses + Uses update-desktop-database from devel/desktop-file-utils. An extra post-install step will be run without interfering with any post-install steps already in the port Makefile. A line with @desktop-file-utils - will be added to the plist. - + will be added to the plist. + - - desthack + + <literal>desthack</literal> - (none) + Possible arguments: (none) - Changes the behavior of GNU configure to properly + Changes the behavior of GNU configure to properly support DESTDIR in case the original - software does not. - + software does not. + - - display + + <literal>display</literal> - (none), ARGS + Possible arguments: (none), ARGS - Set up a virtual display environment. If the + Set up a virtual display environment. If the environment variable DISPLAY is not set, then Xvfb is added as a build dependency, and CONFIGURE_ENV is @@ -339,15 +364,15 @@ instance of Xvfb. The ARGS parameter defaults to install and controls the phase around - which to start and stop the virtual display. - + which to start and stop the virtual display. + - - dos2unix + + <literal>dos2unix</literal> - (none) + Possible arguments: (none) - The port has files with line endings in + The port has files with line endings in DOS format which need to be converted. Three variables can be set to control which files will be converted. The default is to convert @@ -370,114 +395,114 @@ DOS2UNIX_GLOB: match file names based on a glob pattern. - - + + - - drupal + + <literal>drupal</literal> - 6, 7, + Possible arguments: 6, 7, module, - theme + theme - Automate installation of a port that is a + Automate installation of a port that is a Drupal theme or module. Use with the version of Drupal that the port is expecting. For example, USES=drupal:6,module says that this port creates a Drupal 6 module. A Drupal 7 theme can be specified with - USES=drupal:7,theme. - + USES=drupal:7,theme. + - - execinfo + + <literal>execinfo</literal> - (none) + Possible arguments: (none) - Add a library dependency on Add a library dependency on devel/libexecinfo if libexecinfo.so is not present in the - base system. - + base system. + - - fakeroot + + <literal>fakeroot</literal> - (none) + Possible arguments: (none) - Changes some default behaviour of build systems to + Changes some default behaviour of build systems to allow installing as a user. See for - more information on fakeroot. - + more information on fakeroot. + - - fam + + <literal>fam</literal> - (none), fam, gamin + Possible arguments: (none), fam, gamin - Uses a File Alteration Monitor as a library + Uses a File Alteration Monitor as a library dependency, either devel/fam or devel/gamin. End users can - set WITH_FAM_SYSTEM to specify their preference. - + set WITH_FAM_SYSTEM to specify their preference. + - - fmake + + <literal>fmake</literal> - (none) + Possible arguments: (none) - Uses devel/fmake as a - build-time dependency. - + Uses devel/fmake as a + build-time dependency. + - - fonts + + <literal>fonts</literal> - (none) + Possible arguments: (none) - Adds a runtime dependency on tools needed to register + Adds a runtime dependency on tools needed to register fonts, and add an @fcfontsdir - ${FONTSDIR} entry to the plist. + ${FONTSDIR} para to the plist. FONTSDIR defaults to ${PREFIX}/lib/X11/fonts/${FONTNAME} and FONTNAME to - ${PORTNAME}. - + ${PORTNAME}. + - - fortran + + <literal>fortran</literal> - gcc (default), - ifort + Possible arguments: gcc (default), + ifort - Uses the Fortran compiler from either GNU or - Intel. - + Uses the Fortran compiler from either GNU or + Intel. + - - fuse + + <literal>fuse</literal> - (none) + Possible arguments: (none) - The port will depend on the FUSE library and handle + The port will depend on the FUSE library and handle the dependency on the kernel module depending on the - version of &os;. - + version of &os;. + - - gecko + + <literal>gecko</literal> - libxul (default), + Possible arguments: libxul (default), firefox, seamonkey, thunderbird, build, XY, - XY+ + XY+ - Add a dependency on different + Add a dependency on different gecko based applications. If libxul is used, it is the only argument allowed. When the argument is not @@ -487,59 +512,59 @@ along with optional build and XY/XY+ version - arguments. - + arguments. + - - gettext + + <literal>gettext</literal> - (none) + Possible arguments: (none) - Deprecated. Will include both Deprecated. Will include both gettext-runtime and gettext-tools. - + linkend="uses-gettext-tools">gettext-tools. + - - gettext-runtime + + <literal>gettext-runtime</literal> - (none), lib (default), - build, run + Possible arguments: (none), lib (default), + build, run - Uses Uses devel/gettext-runtime. By default, with no arguments or with the lib argument, implies a library dependency on libintl.so. build and run implies, respectively a build-time and a run-time - dependency on gettext. - + dependency on gettext. + - - gettext-tools + + <literal>gettext-tools</literal> - (none), build (default), - run + Possible arguments: (none), build (default), + run - Uses Uses devel/gettext-tools. By default, with no argument, or with the build argument, a build time dependency on msgfmt is registered. With the run argument, a run-time dependency is - registered. - + registered. + - - ghostscript + + <literal>ghostscript</literal> - X, + Possible arguments: X, build, run, - nox11 + nox11 - A specific version + A specific version X can be used. Possible versions are 7, 8, 9 (default), and @@ -549,42 +574,41 @@ build and run add build- and run-time dependencies on Ghostscript. The default is both - build- and run-time dependencies. - + build- and run-time dependencies. + - - gmake + + <literal>gmake</literal> - (none), lite + Possible arguments: (none), lite - Uses devel/gmake, or + Uses devel/gmake, or devel/gmake-lite if the lite argument is used, as a build-time dependency and sets up the environment to use gmake as the default - make for the build. - + make for the build. + - - gperf + + <literal>gperf</literal> - (none) + Possible arguments: (none) - Add a buildtime dependency on Add a buildtime dependency on devel/gperf if gperf is not present in the base - system. - + system. + - - gssapi + + <literal>gssapi</literal> - (none), base (default), + Possible arguments: (none), base (default), heimdal, mit, flags, - bootstrap + bootstrap - Handle dependencies needed by consumers of the GSS-API. Only libraries that provide the Kerberos mechanism are @@ -666,31 +690,31 @@ GSSAPI_HEIMDAL_CONFIGURE_ON= --with-gssa GSSAPI_MIT_USES= gssapi:mit GSSAPI_MIT_CONFIGURE_ON= --with-gssapi=${GSSAPIBASEDIR} ${GSSAPI_CONFIGURE_ARGS} GSSAPI_NONE_CONFIGURE_ON= --without-gssapi - - + + - - horde + + <literal>horde</literal> - (none) + Possible arguments: (none) - Add buildtime and runtime dependencies on Add buildtime and runtime dependencies on devel/pear-channel-horde. Other Horde dependencies can be added with USE_HORDE_BUILD and USE_HORDE_RUN. See for more information. - + linkend="php-horde"/> for more information. + - - iconv + + <literal>iconv</literal> - (none), lib, + Possible arguments: (none), lib, build, patch, translit, - wchar_t + wchar_t - Uses iconv functions, either from + Uses iconv functions, either from the port converters/libiconv as a build-time and run-time dependency, or from the base @@ -706,17 +730,17 @@ GSSAPI_NONE_CONFIGURE_ON= --without-gssa //TRANSLIT iconv extensions, add the relevant arguments so that the correct iconv is used. For more information see - . - + . + - - imake + + <literal>imake</literal> - (none), env, + Possible arguments: (none), env, notall, - noman + noman - Add devel/imake as a + Add devel/imake as a build-time dependency and run xmkmf -a during the configure stage. If the env argument is given, the @@ -725,16 +749,16 @@ GSSAPI_NONE_CONFIGURE_ON= --without-gssa add the notall argument. If xmkmf does not generate a install.man target, add the - noman argument. - + noman argument. + - - kmod + + <literal>kmod</literal> - (none) + Possible arguments: (none) - Fills in the boilerplate for kernel module ports, - currently: + Fills in the boilerplate for kernel module ports, + currently: @@ -771,45 +795,45 @@ GSSAPI_NONE_CONFIGURE_ON= --without-gssa installation and deinstallation, using @kld. - - + + - - lha - (none) - Set EXTRACT_SUFX to - .lzh - + + <literal>lha</literal> + Possible arguments: (none) + Set EXTRACT_SUFX to + .lzh + - - libarchive + + <literal>libarchive</literal> - (none) + Possible arguments: (none) - Registers a dependency on Registers a dependency on archivers/libarchive. Any ports depending on libarchive must - include USES=libarchive. - + include USES=libarchive. + - - libedit + + <literal>libedit</literal> - (none) + Possible arguments: (none) - Registers a dependency on Registers a dependency on devel/libedit. Any ports depending on libedit must - include USES=libedit. - + include USES=libedit. + - - libtool + + <literal>libtool</literal> - (none), keepla, - build + Possible arguments: (none), keepla, + build - Patches libtool scripts. This + Patches libtool scripts. This must be added to all ports that use libtool. The keepla argument can be used to keep .la @@ -817,175 +841,175 @@ GSSAPI_NONE_CONFIGURE_ON= --without-gssa libtool and need a build time dependency on devel/libtool, use the :build argument to add such - dependency. - + dependency. + - - localbase + + <literal>localbase</literal> - (none) + Possible arguments: (none) - Ensures that libraries from dependencies in + Ensures that libraries from dependencies in LOCALBASE are used instead of the ones from the base system. Ports that depend on libraries that are also present in the base system should use this. It is also used internally by a few other - USES. - + USES. + - - lua + + <literal>lua</literal> - (none), + Possible arguments: (none), XY+, XY, build, - run + run - Adds a dependency on Lua. + Adds a dependency on Lua. By default this is a library dependency, unless overridden by the build or run option. The default version is 5.2, unless set by the XY parameter (for example, 51 or - 52+). - + 52+). + - - makeinfo + + <literal>makeinfo</literal> - build (default), - run, both + Possible arguments: build (default), + run, both - Add the corresponding dependencies on - makeinfo. - + Add the corresponding dependencies on + makeinfo. + - - makeself + + <literal>makeself</literal> - (none) + Possible arguments: (none) - Indicates that the distribution files are makeself - archives and sets the appropriate dependencies. - + Indicates that the distribution files are makeself + archives and sets the appropriate dependencies. + - - metaport + + <literal>metaport</literal> - (none) + Possible arguments: (none) - Sets the following variables to make it easier to + Sets the following variables to make it easier to create a metaport: MASTER_SITES, DISTFILES, EXTRACT_ONLY, NO_BUILD, NO_INSTALL, NO_MTREE, NO_ARCH. - - + + - - mono + + <literal>mono</literal> - (none) + Possible arguments: (none) - Adds a dependency on the + Adds a dependency on the Mono (currently only C#) - framework by setting the appropriate dependencies. - + framework by setting the appropriate dependencies. + - - motif + + <literal>motif</literal> - (none) + Possible arguments: (none) - Uses + Uses x11-toolkits/open-motif as a library dependency. End users can set WANT_LESSTIF for the dependency to be on x11-toolkits/lesstif instead of x11-toolkits/open-motif. - + role="port">x11-toolkits/open-motif. + - - ncurses + + <literal>ncurses</literal> - (none), base, - port + Possible arguments: (none), base, + port - Uses ncurses, and causes - some useful variables to be set. *** DIFF OUTPUT TRUNCATED AT 1000 LINES ***