Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 23 Dec 2011 15:10:07 +0000
From:      Chris Rees <crees@freebsd.org>
To:        Ben Kaduk <minimarmot@gmail.com>
Cc:        Christer Edwards <christer.edwards@gmail.com>, "freebsd-ports@FreeBSD.org" <freebsd-ports@freebsd.org>
Subject:   Re: help with man pages
Message-ID:  <CADLo839MKyAPieBxEQurNEegEH=WPB7hPwijEMdJmB_EE0Wg=w@mail.gmail.com>
In-Reply-To: <CAK2BMK4pH7QzwVdJhMEHOBqZ4_hBi0rcp_Jr%2BuCp7ToavAgt5w@mail.gmail.com>
References:  <CAH2d3%2BvhrKy7B6O1ceE4cMXxnx3SWOWzkzKiT2hwAz%2BGP0NTfA@mail.gmail.com> <CAK2BMK4pH7QzwVdJhMEHOBqZ4_hBi0rcp_Jr%2BuCp7ToavAgt5w@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 19 December 2011 00:08, Ben Kaduk <minimarmot@gmail.com> wrote:
> On Sun, Dec 18, 2011 at 6:30 PM, Christer Edwards
> <christer.edwards@gmail.com> wrote:
>> The port I'm working on includes about a half-dozen man pages which I
>> understand I need to use MANn to install. What I guess I don't fully
>> understand is how to path those files. If the files are found in the
>> extracted source under source-version/doc/man/ should I use:
>>
>> MAN1=3D doc/man/manpage.1
>> MAN7=3D doc/man/manpage.7
>> ...etc...
>>
>> or do I need to reference ${WORKSRC}/doc/man/ ?
>
> MANn takes the place of adding entries to the plist (allowing for the
> use of MANCOMPRESSED and such). =A0Accordingly, the files referenced are
> nominally in the installed tree, but the MANn magic knows about
> MANPREFIX, so you should just use MAN1=3D manpage.1 with no other path
> components.
>
>>
>> Do I also need to install the man pages in do-install?
>>
>> ${INSTALL_MAN} ${WRKSRC}/doc/man/manpage.1 ${PREFIX}/man/man1
>
> You need to ensure that they end up in $MANPREFIX, so yes.

Late reply, sorry!

Please use the more specific variables MANnPREFIX, for example:

${INSTALL_MAN} ${WRKSRC}/doc/man/manpage.1 ${MAN1PREFIX}/man/man1

Chris



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CADLo839MKyAPieBxEQurNEegEH=WPB7hPwijEMdJmB_EE0Wg=w>