Im import groff-1.19.1 CJK patch from Momonga Linux. This patch bring manpages-ja can use with groff-1.19.1
Created attachment 87523 [details] groff-1.19.1-japanese-r5111.patch This patch from http://developer.momonga-linux.org/viewcvs/*checkout*/trunk/pkgs/groff/groff-1.19.1-japanese.patch?rev=5111
Created attachment 87524 [details] groff-1.19.1-r3.ebuild USE="cjk" activated ebuild based on groff-1.19.1-r2.ebuild
re-emerge these USE="cjk nls" LINGUAS="ja en" emerge man groff man-pages man-pages-ja lv It will work PAGER="lv -c" LANG="ja_JP.eucJP" man ls we can view man-pages-ja again without old groff 1.18.*
Created attachment 87525 [details] review log by solar and SpanKY SpanKY and solar commented this stuff. Some TODO are to stuff it into officail tree. Please see that log, and poke its ebuild. :)
Created attachment 87535 [details] groff-1.19.1-r3.ebuild (patch get from original URL) okay, rewrited ebuild here. fetch patch direct from http://developer.momonga-linux.org/viewcvs/*checkout*/trunk/pkgs/groff/groff-1.19.1-japanese.patch case this patch placed gentoo mirror, please change URI and epatch command comment out version.
Created attachment 87972 [details, diff] A diff of ebuild of groff 1.19.1-r2 and 1.19.1-r3 (hopefully) I've re-rewite "ready to commit" groff-1.19.1-r3 ebuild for CJK support and added die's message or so on, IMHO. It can be apply to groff-1.19-r2.ebuild in official tree.
Created attachment 87974 [details, diff] A diff of ebuild of man-pages-ja ebuild for making it no block >=groff-1.19.* I've modified man-pages-ja ebuild for making it no block >=groff-1.19.* anymore. It can be applied to man-pages-ja-20060415-r2.
FYI, groff-1.19.1-r3 (hopefully) seems work for me, too. When it was compiling, some uninitialization or so on are warned, though.
FYI, /etc/man.conf has some sys-apps/groff's configuration. But it's installed as one of sys-apps/man's stuffs. Unfortunately, sys-apps/groff-1.19.1-r3 (hopefully) wouldn't work with official /etc/man.conf (it means default which is installed as a sys-apps/man stuff, e.g. sys-apps/man-1.6d), IIRC. So, it's require to edit for reading bilingual man-pages. I'll file my /etc/man.conf as a working sample.
Created attachment 90268 [details] My man.conf (a working sample) NOTE: * EUC-JP locale are required for proper working groff with -Tnippon. * And then, PAGER and BROWSER should have encoding trans functionality when user locale is not EUC-JP. My default locale is UTF-8, of cource. LANG="ja_JP.UFT-8" LC_ALL="ja_JP.UTF-8" If you use this man.conf, when just do man hogehoge shows hogehoge's man-pages-ja, if it's available, when do LANG="en_US.UTF-8" LC_ALL="en_US.UTF-8" man fugafuga shows fugafuga's man-pages. Of cource, you can put it as a alias of "eman" or so on.
Created attachment 91745 [details] groff-1.19.2-r2.ebuild Similar ebuild w/cjk patch for groff-1.19.2. I took a slightly different approach to this ebuild, asking the user to put the gzipped patch in $FILESDIR since I've never seen a patch come from $WORKDIR before (is that common with large patches?) Anyway, at this development stage it's all fairly safe because testers would have to use an overlay to test this anyway. JP_PATCH_URI= http://developer.momonga-linux.org/viewcvs/*check out*/trunk/pkgs/groff/groff-1.19.2-japanese.patch?rev=10378
Looked over this rather large patch. From what I noted most of it looks ok and is just using wide character logic versus traiditional char logic due to the multibyte nature of Japanese. There was some stuff towards the end that seemed a little odd, namely the entire #if 0 business. Wasn't sure what the patch author was trying to accomplish there. Other than that looks good, though someone else gets to vouch for the almost-but-not-really-lisp looking macro stuff at the end.
FYI, sys-apps/portage-2.1.2_rc3-r6 breaks here's sys-apps/groff-1.19.1-r3. B/c USE flag sensitive SRC_URI stuff is not parenthetic. I'm not sure this breakage is caused by official policy. But this diff can help, I though. diff -r 3279378b9645 -r a1fe5eb9e98f sys-apps/groff/groff-1.19.1-r3.ebuild --- a/sys-apps/groff/groff-1.19.1-r3.ebuild Sun Dec 17 21:54:38 2006 +0900 +++ b/sys-apps/groff/groff-1.19.1-r3.ebuild Mon Dec 18 00:40:56 2006 +0900 @@ -9,7 +9,7 @@ HOMEPAGE="http://www.gnu.org/software/gr JP_PATCH_REV="5111" SRC_URI="mirror://gnu/groff/${P}.tar.gz - cjk? mirror://gentoo/${P}-japanese-r${JP_PATCH_REV}.patch.gz" + cjk? ( mirror://gentoo/${P}-japanese-r${JP_PATCH_REV}.patch.gz )" # FIXME: # See bug #134377. #
groff-1.19.2-r1 now contains the patch, thanks all
Thanks SpanKY. However, the ebuild should run eautoreconf and trun --enable-japanese on to actually build cjk support. This is fixed in CVS.
accept that your changes now cause 'die' to be run for everyone with USE=-cjk fixed in cvs