A section on gettext for the Porter's Handbook

Yar Tikhiy yar at comp.chem.msu.su
Thu Aug 24 10:17:23 UTC 2006


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


More information about the freebsd-ports mailing list