Man pages question...

Ganael Laplanche ganael.laplanche at martymac.com
Sat May 7 02:14:09 PDT 2005


> >Hi all !
> >
> >I'm updating the aMule port and having questions about manpages management...
> >aMule installs man pages in several languages, *BUT* each language doesn't
> >provide the sames pages (different names or missing ones)... How can I deal with
> >this ?
> >
> >The porter's handbook don't tell too much about this... Should I hardcode each
> >man page in the pkg-plist ? Or do you have any hint ?
> >
> >Thank you very much,
> >Regards,
> >
> >
> >  
> >
> 
> Firstly, manpages do not belong in the pkg-plist. they are defined in 
> the Makefile for the port. MAN1, MAN2, MAN3, etc.. Unless you can find 
> a way to verify a users locale settings (im sure theres an env/make 
> var for this) you could just default to english only, and setup hooks 
> for alternate languages.
> 
> .if defined(MAN_LANG)
> MAN1= foo-${MAN_LANG} bar-${MAN_LANG}
> MAN6= blah-${MAN_LANG}
> .else
> MAN1= foo bar
> MAN6= blah
> .endif
> 
> Something like this should work. Hope that helps.
> 
> -Frank Laszlo

(CC'ed to the list...)

Hi Frank,

The main pb is that this way, each man page must exist in each language. Here is
an example :

MANLANG=        "" de es fr hu
MAN1+=  amulecmd.1
MAN1+=  amuleweb.1

Here, you will automatically get this list of files "added" to pkg-plist :

man/man1/amulecmd.1
man/man1/amuleweb.1
man/de/man1/amulecmd.1
man/de/man1/amuleweb.1
man/es/man1/amulecmd.1
man/es/man1/amuleweb.1
man/fr/man1/amulecmd.1
man/fr/man1/amuleweb.1
man/hu/man1/amulecmd.1
man/hu/man1/amuleweb.1

But, what if hu doesn't provide amulecmd.1 ??? I get errors when deinstalling
the port... Is there any way to manage this ?

Ganael.


More information about the freebsd-ports mailing list