Bug 93568 - txt2regex fix for those not using NLS
Bug#: 93568 Product:  Gentoo Linux Version: unspecified Platform: x86
OS/Version: Linux Status: RESOLVED Severity: enhancement Priority: P2
Resolution: FIXED Assigned To: shell-tools@gentoo.org Reported By: rene.rheaume@videotron.qc.ca
Component: Ebuilds
URL: 
Summary: txt2regex fix for those not using NLS
Keywords:  
Status Whiteboard: 
Opened: 2005-05-22 09:14 0000
Description:   Opened: 2005-05-22 09:14 0000
I provide a patch and a fixed ebuild for txt2regex when NLS support is
disabled.
The patch is applied conditionally when nls in not inside USE.

Reproducible: Didn't try
Steps to Reproduce:
1.
2.
3.

------- Comment #1 From René Rhéaume (a.k.a. repzilon, rener) 2005-05-22 09:16:27 0000 -------
Created an attachment (id=59550) [details]
NLS removal patch to apply conditionnaly

------- Comment #2 From René Rhéaume (a.k.a. repzilon, rener) 2005-05-22 09:19:01 0000 -------
Created an attachment (id=59551) [details]
The ebuild

The ebuild also contains a workaround/fix for the <A4> character as described
in README.japanese from the upstream source. Enabled only when cjk is in USE.

------- Comment #3 From Ciaran McCreesh 2005-05-22 12:10:02 0000 -------
Hrm. I don't like this. Upstream have decided not to make nls optional, and I'd
rather not override that for the sake of a few textfiles. It's not like it's
pulling in gettext or anything.

------- Comment #4 From René Rhéaume (a.k.a. repzilon, rener) 2005-05-22 18:17:38 0000 -------
Please look again at the Makefile. The "install" target depends on "mo". The
"mo" target is defined on line 57. On line 62, a line withing the "mo"
instructions, there is a call to msgfmt and msgfmt is provided by gettext. So to
get NLS, one must have gettext.

------- Comment #5 From Ciaran McCreesh 2005-05-23 01:37:29 0000 -------
Meh. Oops. I've included the patch and the cjk fix -- I did them in src_unpack
rather than src_install as per policy. I also added in the gettext dep.

-r1 committed, thanks.