From owner-freebsd-ports@FreeBSD.ORG Mon May 9 17:48:11 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 7DA9316A4E9 for ; Mon, 9 May 2005 17:48:11 +0000 (GMT) Received: from mx2.freebsd.org (mx2.freebsd.org [216.136.204.119]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4D93543D4C for ; Mon, 9 May 2005 17:48:11 +0000 (GMT) (envelope-from laszlof@tvog.net) Received: from hub.freebsd.org (hub.freebsd.org [216.136.204.18]) by mx2.freebsd.org (Postfix) with ESMTP id 2AF2857827 for ; Mon, 9 May 2005 17:48:11 +0000 (GMT) (envelope-from laszlof@tvog.net) Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2768C16A4EA for ; Mon, 9 May 2005 17:48:11 +0000 (GMT) Received: from ritamari.vonostingroup.com (ritamari.vonostingroup.com [216.144.193.230]) by mx1.FreeBSD.org (Postfix) with ESMTP id A151543DBB for ; Mon, 9 May 2005 17:48:10 +0000 (GMT) (envelope-from laszlof@tvog.net) Received: from adsl-68-72-248-38.dsl.sfldmi.ameritech.net ([68.72.248.38] helo=tvog.net) by ritamari.vonostingroup.com with esmtpa (Exim 4.50 (FreeBSD)) id 1DUAYu-0006ZX-01; Fri, 06 May 2005 17:40:45 -0400 Message-ID: <427BE4A8.60207@tvog.net> Date: Fri, 06 May 2005 17:42:00 -0400 From: Frank Laszlo User-Agent: Mozilla Thunderbird 0.5 (Windows/20040207) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Ganael Laplanche References: <20050506173858.M111@martymac.com> In-Reply-To: <20050506173858.M111@martymac.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - ritamari.vonostingroup.com X-AntiAbuse: Original Domain - lists.freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [0 0] / [26 6] X-AntiAbuse: Sender Address Domain - tvog.net X-Source: X-Source-Args: X-Source-Dir: 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: Mon, 09 May 2005 17:48:11 -0000 Ganael Laplanche wrote: >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