Re: [pacman-dev] [arch-dev-public] info pages
Eric Belanger wrote:
On Wed, 6 Aug 2008, Allan McRae wrote:
Allan McRae wrote:
Hi all,
Just a heads up with something I have remembered while packaging with the new pacman release. Including docs is the default in makepkg.conf now so if there is a large amount of documentation you will want to add a !docs to the PKGBUILD options. Also, every package that needs the --mandir configure flag will probably need and --infodir one too. An annoying number of packages with info pages install a /usr/share/info/dir file so that will need removed at the end of the PKGBUILD.
I have discovered that at least one package has to have a /usr/share/info/dir file or the info command complains that it is missing. It seems that ideally all packages with info directories should add/remove entries in this file when installing/removing the package, although calling "info <something not in dir file>" seems to work, but I might be missing something.... The point is that adding info files properly involves an install file with "install-info" commands for each info page in the package. Isn't including docs fun!
Allan
The emacs package already does this. The emacs.install file could be used as a template for this info stuff.
A template based in that is making its way into the prototypes found in the ABS packages which I am going to make a release of soon. CC: pacman-dev - We should also automatically compress the info files like we do the man pages. Allan
Allan McRae wrote:
We should also automatically compress the info files like we do the man pages.
Would there be any objects to extending the zipman option to cover the compressing of info pages too? Also, I can see two options for doing this. 1) Just add the info directories to the "mandirs" array. 2) Compress info pages separately as I think the whole hardlink checking is not needed for info pages. I am leaning towards #1. Allan
On Fri, Aug 8, 2008 at 9:48 PM, Allan McRae <allan@archlinux.org> wrote:
Allan McRae wrote:
We should also automatically compress the info files like we do the man pages.
Would there be any objects to extending the zipman option to cover the compressing of info pages too? Also, I can see two options for doing this. 1) Just add the info directories to the "mandirs" array. 2) Compress info pages separately as I think the whole hardlink checking is not needed for info pages. I am leaning towards #1.
I think 1 is fine. Hindsight would have named these things 'zipdoc' and 'docdirs', damn. -Dan
participants (2)
-
Allan McRae
-
Dan McGee