diff options
author | dillo <dillo@pkgsrc.org> | 2005-10-05 14:04:23 +0000 |
---|---|---|
committer | dillo <dillo@pkgsrc.org> | 2005-10-05 14:04:23 +0000 |
commit | 72817f80fd9e653fb014cf56f6463b50c47aa52f (patch) | |
tree | 310f8f1f882670f7baa22eb37894a9793543ae3e | |
parent | d9a8ab9e3873d15fb1298fb6235ff631e070f024 (diff) | |
download | pkgsrc-72817f80fd9e653fb014cf56f6463b50c47aa52f.tar.gz |
regen (option names)
-rw-r--r-- | doc/pkgsrc.html | 86 | ||||
-rw-r--r-- | doc/pkgsrc.txt | 44 |
2 files changed, 94 insertions, 36 deletions
diff --git a/doc/pkgsrc.html b/doc/pkgsrc.html index a65f328920e..7a96b351fcb 100644 --- a/doc/pkgsrc.html +++ b/doc/pkgsrc.html @@ -61,13 +61,13 @@ alink="#0000FF"> </div> <div> - <p class="copyright">Copyright © 1994-2004 The + <p class="copyright">Copyright © 1994-2005 The NetBSD Foundation, Inc</p> </div> <div xmlns="http://www.w3.org/TR/xhtml1/transitional"> - <p xmlns="" class="pubdate">$NetBSD: pkgsrc.xml,v 1.9 - 2005/06/08 13:59:30 dillo Exp $</p> + <p xmlns="" class="pubdate">$NetBSD: pkgsrc.xml,v 1.10 + 2005/10/05 13:59:56 dillo Exp $</p> </div> <div> @@ -503,8 +503,8 @@ alink="#0000FF"> Variable substitution in PLIST</a></span></dt> <dt><span class="sect1"><a href= - "#manpage-compression">10.5. Man - page-compression</a></span></dt> + "#manpage-compression">10.5. Man page + compression</a></span></dt> <dt><span class="sect1"><a href= "#using-PLIST_SRC">10.6. Changing PLIST source with @@ -668,6 +668,9 @@ alink="#0000FF"> to use <code xmlns= "http://www.w3.org/TR/xhtml1/transitional" class= "filename">bsd.options.mk</code></a></span></dt> + + <dt><span class="sect1"><a href= + "#option-names">13.3. Option Names</a></span></dt> </dl> </dd> @@ -1310,7 +1313,8 @@ alink="#0000FF"> <div> <div> <h1 class="title"><a name="users-guide" id= - "users-guide"></a>The pkgsrc user's guide</h1> + "users-guide"></a>Part I. The pkgsrc user's + guide</h1> </div> </div> </div> @@ -5533,8 +5537,8 @@ SU_CMD=${LOCALBASE}/bin/sudo /bin/sh -c <div> <div> <h1 class="title"><a name="developers-guide" id= - "developers-guide"></a>The pkgsrc developer's - guide</h1> + "developers-guide"></a>Part II. The pkgsrc + developer's guide</h1> </div> </div> </div> @@ -5654,8 +5658,8 @@ SU_CMD=${LOCALBASE}/bin/sudo /bin/sh -c Variable substitution in PLIST</a></span></dt> <dt><span class="sect1"><a href= - "#manpage-compression">10.5. Man - page-compression</a></span></dt> + "#manpage-compression">10.5. Man page + compression</a></span></dt> <dt><span class="sect1"><a href= "#using-PLIST_SRC">10.6. Changing PLIST source with @@ -5814,6 +5818,9 @@ SU_CMD=${LOCALBASE}/bin/sudo /bin/sh -c use <code xmlns= "http://www.w3.org/TR/xhtml1/transitional" class= "filename">bsd.options.mk</code></a></span></dt> + + <dt><span class="sect1"><a href="#option-names">13.3. + Option Names</a></span></dt> </dl> </dd> @@ -7359,8 +7366,8 @@ for_test: Variable substitution in PLIST</a></span></dt> <dt><span class="sect1"><a href= - "#manpage-compression">10.5. Man - page-compression</a></span></dt> + "#manpage-compression">10.5. Man page + compression</a></span></dt> <dt><span class="sect1"><a href= "#using-PLIST_SRC">10.6. Changing PLIST source with @@ -7621,8 +7628,8 @@ PLIST_SUBST+= SOMEVAR="somevalue" <div> <h2 class="title" style="clear: both"><a name= "manpage-compression" id= - "manpage-compression"></a>10.5. Man - page-compression</h2> + "manpage-compression"></a>10.5. Man page + compression</h2> </div> </div> </div> @@ -9512,6 +9519,9 @@ PKG_SHELL= ${PREFIX}/bin/zsh use <code xmlns= "http://www.w3.org/TR/xhtml1/transitional" class= "filename">bsd.options.mk</code></a></span></dt> + + <dt><span class="sect1"><a href="#option-names">13.3. + Option Names</a></span></dt> </dl> </div> @@ -9771,17 +9781,47 @@ CONFIGURE_ARGS+= --enable-ldap=${BUILDLINK_PREFIX.openldap} .if !empty(PKG_OPTIONS:M<em class= "replaceable"><code>option</code></em>) </pre> + </div> + + <div class="sect1" lang="en" xml:lang="en"> + <div class="titlepage"> + <div> + <div> + <h2 class="title" style="clear: both"><a name= + "option-names" id= + "option-names"></a>13.3. Option Names</h2> + </div> + </div> + </div> + + <p>Options that enable similar features in different + packages (like optional support for a library) should use + a common name in all packages that support it (like the + name of the library). If another package already has an + option with the same meaning, use the same name.</p> + + <p>Options that enable features specific to one package, + where it's unlikely that another (unrelated) package has + the same (or a similar) optional feature, should use a + name prefixed with <code class="varname"><em class= + "replaceable"><code>pkgname</code></em>-</code>.</p> + + <p>If a group of related packages share an optional + feature specific to that group, prefix it with the name + of the “<span class="quote">main</span>” + package (e. g. <code class= + "varname">djbware-errno-hack</code>).</p> - <p>If another package already has an option with the same - meaning, use the same name. For options applicable to - multiple packages (like enabling support for a library), - use short option names (like the name of the library). - For options specific to this package, prefix the name - with <code class="varname"><em class= - "replaceable"><code>pkgname</code></em>-</code>. Document - the option and its meaning in <code xmlns= + <p>For new options, add a line to <code xmlns= "http://www.w3.org/TR/xhtml1/transitional" class= - "filename">mk/defaults/options.description</code>.</p> + "filename">mk/defaults/options.description</code>. Lines + have two fields, separated by tab. The first field is the + option name, the second its description. The description + should be a whole sentence (starting with an uppercase + letter and ending with a period) that describes what + enabling the option does. E. g. “<span class= + "quote">Enable ispell support.</span>” The file is + sorted by option names.</p> </div> </div> diff --git a/doc/pkgsrc.txt b/doc/pkgsrc.txt index b11e015ebc0..9a81d85db86 100644 --- a/doc/pkgsrc.txt +++ b/doc/pkgsrc.txt @@ -12,9 +12,9 @@ Hubert Feyrer The pkgsrc Developers -Copyright (C) 1994-2004 The NetBSD Foundation, Inc +Copyright (C) 1994-2005 The NetBSD Foundation, Inc -$NetBSD: pkgsrc.xml,v 1.9 2005/06/08 13:59:30 dillo Exp $ +$NetBSD: pkgsrc.xml,v 1.10 2005/10/05 13:59:56 dillo Exp $ Abstract @@ -146,7 +146,7 @@ II. The pkgsrc developer's guide 10.2. Semi-automatic PLIST generation 10.3. Tweaking output of make print-PLIST 10.4. Variable substitution in PLIST - 10.5. Man page-compression + 10.5. Man page compression 10.6. Changing PLIST source with PLIST_SRC 10.7. Platform-specific and differing PLISTs 10.8. Sharing directories between packages @@ -191,6 +191,7 @@ II. The pkgsrc developer's guide 13.1. Global default options 13.2. Converting packages to use bsd.options.mk + 13.3. Option Names 14. The build process @@ -417,7 +418,7 @@ command should/can be issued as root, or if "normal" user privileges are sufficient. We use a # for root's shell prompt, and a % for users' shell prompt, assuming they use the C-shell or tcsh. -The pkgsrc user's guide +Part I. The pkgsrc user's guide Table of Contents @@ -2034,7 +2035,7 @@ Use of the security/audit-packages package is strongly recommended! After "audit-packages" is installed, please read the package's message, which you can get by running pkg_info -D audit-package. -The pkgsrc developer's guide +Part II. The pkgsrc developer's guide Table of Contents @@ -2068,7 +2069,7 @@ Table of Contents 10.2. Semi-automatic PLIST generation 10.3. Tweaking output of make print-PLIST 10.4. Variable substitution in PLIST - 10.5. Man page-compression + 10.5. Man page compression 10.6. Changing PLIST source with PLIST_SRC 10.7. Platform-specific and differing PLISTs 10.8. Sharing directories between packages @@ -2113,6 +2114,7 @@ Table of Contents 13.1. Global default options 13.2. Converting packages to use bsd.options.mk + 13.3. Option Names 14. The build process @@ -2739,7 +2741,7 @@ Table of Contents 10.2. Semi-automatic PLIST generation 10.3. Tweaking output of make print-PLIST 10.4. Variable substitution in PLIST -10.5. Man page-compression +10.5. Man page compression 10.6. Changing PLIST source with PLIST_SRC 10.7. Platform-specific and differing PLISTs 10.8. Sharing directories between packages @@ -2836,7 +2838,7 @@ PLIST_SUBST+= SOMEVAR="somevalue" This replaces all occurrences of "${SOMEVAR}" in the PLIST with "somevalue". -10.5. Man page-compression +10.5. Man page compression Man pages should be installed in compressed form if MANZ is set (in bsd.own.mk), and uncompressed otherwise. To handle this in the PLIST file, the @@ -3568,6 +3570,7 @@ Table of Contents 13.1. Global default options 13.2. Converting packages to use bsd.options.mk +13.3. Option Names Many packages have the ability to be built to support different sets of features. bsd.options.mk is a framework in pkgsrc that provides generic @@ -3697,11 +3700,26 @@ PKG_OPTIONS: .if !empty(PKG_OPTIONS:Moption) -If another package already has an option with the same meaning, use the same -name. For options applicable to multiple packages (like enabling support for a -library), use short option names (like the name of the library). For options -specific to this package, prefix the name with pkgname-. Document the option -and its meaning in mk/defaults/options.description. +13.3. Option Names + +Options that enable similar features in different packages (like optional +support for a library) should use a common name in all packages that support it +(like the name of the library). If another package already has an option with +the same meaning, use the same name. + +Options that enable features specific to one package, where it's unlikely that +another (unrelated) package has the same (or a similar) optional feature, +should use a name prefixed with pkgname-. + +If a group of related packages share an optional feature specific to that +group, prefix it with the name of the "main" package (e. g. +djbware-errno-hack). + +For new options, add a line to mk/defaults/options.description. Lines have two +fields, separated by tab. The first field is the option name, the second its +description. The description should be a whole sentence (starting with an +uppercase letter and ending with a period) that describes what enabling the +option does. E. g. "Enable ispell support." The file is sorted by option names. Chapter 14. The build process |