From owner-freebsd-ports@FreeBSD.ORG Thu Aug 24 10:17:23 2006 Return-Path: X-Original-To: freebsd-ports@FreeBSD.org Delivered-To: freebsd-ports@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5C44716A4E6; Thu, 24 Aug 2006 10:17:23 +0000 (UTC) (envelope-from yar@comp.chem.msu.su) Received: from comp.chem.msu.su (comp.chem.msu.su [158.250.32.97]) by mx1.FreeBSD.org (Postfix) with ESMTP id 75E7E43D46; Thu, 24 Aug 2006 10:17:22 +0000 (GMT) (envelope-from yar@comp.chem.msu.su) Received: from comp.chem.msu.su (localhost [127.0.0.1]) by comp.chem.msu.su (8.13.4/8.13.3) with ESMTP id k7OAHKM8032246; Thu, 24 Aug 2006 14:17:20 +0400 (MSD) (envelope-from yar@comp.chem.msu.su) Received: (from yar@localhost) by comp.chem.msu.su (8.13.4/8.13.3/Submit) id k7OAHKKq032245; Thu, 24 Aug 2006 14:17:20 +0400 (MSD) (envelope-from yar) Date: Thu, 24 Aug 2006 14:17:20 +0400 From: Yar Tikhiy To: Doug Barton Message-ID: <20060824101719.GB30632@comp.chem.msu.su> References: <20060821071036.GA44406@comp.chem.msu.su> <44ECBDC0.7000802@FreeBSD.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <44ECBDC0.7000802@FreeBSD.org> User-Agent: Mutt/1.5.9i Cc: freebsd-ports@FreeBSD.org Subject: Re: A section on gettext for the Porter's Handbook X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Aug 2006 10:17:23 -0000 On Wed, Aug 23, 2006 at 01:42:40PM -0700, Doug Barton wrote: > Yar Tikhiy wrote: > > Hi all, > > > > I hoped I had learned something about using gettext in ports, > > and felt I should write down a summary. Here's what came out > > of that -- a proposed section for the Porter's Handbook. Its > > HTML rendering is available there: > > > > http://people.freebsd.org/~yar/porters-handbook/using-gettext.html > > > > Remarks and corrections are welcome. Thanks! > > > +.if defined(WITHOUT_NLS) > +CONFIGURE_ARGS+= --disable-nls > +PLIST_SUB+= NLS="@comment " > +.else > +USE_GETTEXT= yes > +CONFIGURE_ENV= LDFLAGS="-L${LOCALBASE}/lib" > +PLIST_SUB+= NLS="" > +.endif > > Should that be .if !defined(WITHOUT_NLS), and then the outcome of the tests > reversed? The reason being that most authors who would put that in OPTIONS > would default NLS to on. It's a good idea, thanks! > Otherwise, good stuff. I think that leading people down the right path for > the various knobs is a good thing, even if it seems "obvious" to us old hands. Thank you a lot! -- Yar