Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 24 Aug 2006 14:17:20 +0400
From:      Yar Tikhiy <yar@comp.chem.msu.su>
To:        Doug Barton <dougb@FreeBSD.org>
Cc:        freebsd-ports@FreeBSD.org
Subject:   Re: A section on gettext for the Porter's Handbook
Message-ID:  <20060824101719.GB30632@comp.chem.msu.su>
In-Reply-To: <44ECBDC0.7000802@FreeBSD.org>
References:  <20060821071036.GA44406@comp.chem.msu.su> <44ECBDC0.7000802@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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</programlisting>
> 
> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060824101719.GB30632>