Subject: Re: CVS commit: pkgsrc/doc
To: Alistair Crooks <agc@pkgsrc.org>
From: Jeremy C. Reed <reed@reedmedia.net>
List: pkgsrc-changes
Date: 05/24/2005 10:01:20
On Tue, 24 May 2005, Alistair Crooks wrote:

> > Mention which packages install man pages into share/man (and should be
> > fixed):
> > emulators/peace, net/tsclient, print/scribus, security/fwbuilder,
> > shells/standalone-tcsh, www/trac
>
> shells/standalone-tcsh installs its man page into share/man (actually
> into usr/share/man/man1/tcsh.1) for an obvious reason:
>
> PREFIX=                 /
>
> Perhaps we should re-visit Jeremy's suggestion of providing
> configurable manual page destinations after the pkgsrc-2005Q2 branch.

Yes :)

Most packages have to be told one way or another where man pages are
installed.

The obvious and easy example is autoconf configure scripts that define
mandir and honor --mandir. (Only a few very old configure scripts don't
know --mandir.)

I simply set:

PKGMANDIR?=	man

And for GNU_CONFIGURE packages:

CONFIGURE_ARGS+=        --mandir=${PREFIX}/${PKGMANDIR}

Then I modified some PLIST code to accept ^man/ as ^${PKGMANDIR}/.

I also changed some INSTALLATION_DIRS and INSTALL_MAN to use PKGMANDIR
instead. (But I guess we could work-around this in mk/ instead.)

I have already fixed several packages to use my PKGMANDIR but have not
committed this.

 Jeremy C. Reed

 	  	 	 BSD News, BSD tutorials, BSD links
	  	 	 http://www.bsdnewsletter.com/