summaryrefslogtreecommitdiff
path: root/doc/guide
diff options
context:
space:
mode:
authordillo <dillo>2005-10-05 13:59:56 +0000
committerdillo <dillo>2005-10-05 13:59:56 +0000
commit73a03ebc15b613a480f064a4dc16dc69c6e2db23 (patch)
tree80d7d7083449dd0a54570aae5267984fbe61289b /doc/guide
parentc05d812716551418116b7a003940e61dd2688c6f (diff)
downloadpkgsrc-73a03ebc15b613a480f064a4dc16dc69c6e2db23.tar.gz
- add 2005 to copyright years
- improve documentation of option names and description Reviewed by wiz.
Diffstat (limited to 'doc/guide')
-rw-r--r--doc/guide/files/options.xml37
-rw-r--r--doc/guide/files/pkgsrc.xml6
2 files changed, 32 insertions, 11 deletions
diff --git a/doc/guide/files/options.xml b/doc/guide/files/options.xml
index 1aee15c8d0f..2eab6a1a056 100644
--- a/doc/guide/files/options.xml
+++ b/doc/guide/files/options.xml
@@ -1,4 +1,4 @@
-<!-- $NetBSD: options.xml,v 1.12 2005/09/02 19:12:37 rillig Exp $ -->
+<!-- $NetBSD: options.xml,v 1.13 2005/10/05 13:59:56 dillo Exp $ -->
<!-- based on: pkgsrc/mk/bsd.options.mk 1.42 -->
@@ -177,13 +177,34 @@ whether it is listed in <varname>PKG_OPTIONS</varname>:</para>
<programlisting>.if !empty(PKG_OPTIONS:M<replaceable>option</replaceable>)</programlisting>
-<para>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 <varname><replaceable>pkgname</replaceable>-</varname>.
-Document the option and its meaning in
-<filename>mk/defaults/options.description</filename>.</para>
+</sect1>
+
+<sect1 id="option-names">
+<title>Option Names</title>
+
+<para>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.</para>
+
+<para>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
+<varname><replaceable>pkgname</replaceable>-</varname>.</para>
+
+<para>If a group of related packages share an optional feature
+specific to that group, prefix it with the name of the
+<quote>main</quote> package
+(e. g. <varname>djbware-errno-hack</varname>).</para>
+
+<para>For new options, add a line to
+<filename>mk/defaults/options.description</filename>. 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. <quote>Enable ispell
+support.</quote> The file is sorted by option names.</para>
</sect1>
diff --git a/doc/guide/files/pkgsrc.xml b/doc/guide/files/pkgsrc.xml
index 88db07b6c1e..4c363a2266c 100644
--- a/doc/guide/files/pkgsrc.xml
+++ b/doc/guide/files/pkgsrc.xml
@@ -1,4 +1,4 @@
-<!-- $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 $ -->
<?xml version="1.0"?>
@@ -40,12 +40,12 @@
</authorgroup>
<copyright>
- <year>1994-2004</year>
+ <year>1994-2005</year>
<holder role="mailto:www@NetBSD.org">The NetBSD Foundation, Inc</holder>
</copyright>
- <pubdate>$NetBSD: pkgsrc.xml,v 1.9 2005/06/08 13:59:30 dillo Exp $</pubdate>
+ <pubdate>$NetBSD: pkgsrc.xml,v 1.10 2005/10/05 13:59:56 dillo Exp $</pubdate>
<abstract>
<para>Information about using the NetBSD package system (pkgsrc)