From d878e28bdfb2459d56310203754253fefddfb251 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sat, 28 Aug 2010 16:27:54 -0700 Subject: Bug #273633 - Add docompress docs from PMS. --- doc/package/ebuild/eapi/4.docbook | 52 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) (limited to 'doc/package/ebuild/eapi') diff --git a/doc/package/ebuild/eapi/4.docbook b/doc/package/ebuild/eapi/4.docbook index b5b570eeb..e69b698db 100644 --- a/doc/package/ebuild/eapi/4.docbook +++ b/doc/package/ebuild/eapi/4.docbook @@ -16,6 +16,58 @@ Helper calls may be prefixed with the 'nonfatal' helper in order to prevent errors from being fatal. +
+Controllable Compression + +In EAPI 4, the package manager may optionally compress +a subset of the files under the D +directory. To control which directories may or may not be compressed, the +package manager shall maintain two lists: + +An inclusion list, which initially contains /usr/share/doc, /usr/share/info +and /usr/share/man. +An exclusion list, which initially contains /usr/share/doc/${PF}/html. + + + +The optional compression shall be carried out after src_install has completed, +and before the execution of any subsequent phase function. For each item in the +inclusion list, pretend it has the value of the D variable prepended, then: + +If it is a directory, act as if every file or directory immediately under +this directory were in the inclusion list. +If the item is a file, it may be compressed unless it has been excluded as +described below. +If the item does not exist, it is ignored. + + + +Whether an item is to be excluded is determined as follows: For each item in +the exclusion list, pretend it has the value of the D variable prepended, then: + +If it is a directory, act as if every file or directory immediately under +this directory were in the exclusion list. +If the item is a file, it shall not be compressed. +If the item does not exist, it is ignored. + + + +The package manager shall take appropriate steps to ensure that its compression +mechanisms behave sensibly even if an item is listed in the inclusion list +multiple times, if an item is a symlink, or if a file is already compressed. + + +The following commands may be used in src_install to alter these lists. It is +an error to call any of these functions from any other phase. + +
+docompress helper + +If the first argument is -x, add each of its subsequent arguments to the +exclusion list. Otherwise, add each argument to the inclusion list. + +
+
dodoc -r -- cgit v1.2.3-1-g7c22