From owner-freebsd-ports@FreeBSD.ORG Sat May 7 16:12:53 2005 Return-Path: Delivered-To: freebsd-ports@www.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A762416A4DC for ; Sat, 7 May 2005 16:12:53 +0000 (GMT) Received: from mx2.freebsd.org (mx2.freebsd.org [216.136.204.119]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6499E43D7C for ; Sat, 7 May 2005 16:12:53 +0000 (GMT) (envelope-from ganael.laplanche@martymac.com) Received: from hub.freebsd.org (hub.freebsd.org [216.136.204.18]) by mx2.freebsd.org (Postfix) with ESMTP id 573FE554DA for ; Sat, 7 May 2005 16:12:53 +0000 (GMT) (envelope-from ganael.laplanche@martymac.com) Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5394516A4DB for ; Sat, 7 May 2005 16:12:53 +0000 (GMT) Received: from mail.martymac.com (martymac.com [82.224.94.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id F3D8643D7C for ; Sat, 7 May 2005 16:12:52 +0000 (GMT) (envelope-from ganael.laplanche@martymac.com) Received: from martymac.com (localhost [127.0.0.1]) by mail.martymac.com (Postfix) with ESMTP id 9E1B7F5; Sat, 7 May 2005 18:13:33 +0200 (CEST) From: "Ganael Laplanche" To: Frank Laszlo Date: Sat, 7 May 2005 16:13:32 +0000 Message-Id: <20050507161014.M23784@martymac.com> In-Reply-To: <427CE6D0.4040205@tvog.net> References: <20050506173858.M111@martymac.com> <427BE4A8.60207@tvog.net> <20050507090425.M74181@martymac.com> <427CE6D0.4040205@tvog.net> X-Mailer: Open WebMail 2.51 20050228 X-OriginatingIP: 192.168.1.1 (martymac) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 cc: freebsd-ports@lists.freebsd.org Subject: Re: Man pages question... X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 07 May 2005 16:12:53 -0000 > >>>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 ? > > > > > > > > You could explicitly define the manpages for each LANG, dependong on > how many languages are supported, this would probably be the easiest way. > > .if ${MANLANG} == "en" > MAN1+= amulecmd.1 amuleweb.1 > .elseif ${MANLANG} == "de" > MAN1+= blah.1 > .endif > > Hope this helps. Hi, this is a good solution... I found another one : I excluded fr (the lang. that missed some pages) from MANLANG and managed installation manually with pkg-plist... I'll try to stick to your solution which is better, IMHO. Many thanks, Regards, Ganaël. > __________________________________________________ > Frank Laszlo > System Administrator > The VonOstin Group > Email: laszlof@tvog.net > WWW: http://www.vonostingroup.com > Mobile: 248-863-7584 ------- End of Original Message -------