Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 56809 - the ebuild for latex-unicode can benefit more from USE=cjk
Summary: the ebuild for latex-unicode can benefit more from USE=cjk
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: High enhancement (vote)
Assignee: Text-Markup Team (OBSOLETE)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-07-12 11:10 UTC by Georgi Georgiev
Modified: 2004-08-18 07:36 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
latex-unicode.ebuild (latex-ucs-0.1.ebuild,953 bytes, text/plain)
2004-07-13 17:06 UTC, Georgi Georgiev
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Georgi Georgiev 2004-07-12 11:10:49 UTC
My original complain is that the ebuild for dev-tex/latex-unicode is plain horrible (but that is just my opinion). The frustration is partly due to the fact that I don't know what the mainter did to prepare the package as it is. Furthermore, in the USE=-cjk case, the makeunidef.pl script in the original script can benefit from "--exclude cjkbg5,cjkgb,cjkjis,cjkhangul", which leads to the exclusion and non-compilation of a few megabytes of data for the -cjk users. At least that is what I used in my local overlay (mostly because I didn't realise the package is already in portage).

I don't know why that choice was made, so I'd like to either hear the justification behind it or see a new ebuild if possible. I really believe that nobody benefits from the ebuild in its current form.
Comment 1 Mamoru KOMACHI (RETIRED) gentoo-dev 2004-07-13 09:03:35 UTC
Sorry about your frustration. I put latex-unicode into Portaeg but haven't tested much (cause I don't use Unicode for LaTeX). If you are uncomfortable with the package and you have a better one, please submit it here. I'm not happy with the current cjk USE flag for this package as we are moving towards better handling for multilingual environment (bug #9988). Probably it's better to use LINGUAS solution for the moment.  In addition to latex-unicode, there's an open bug for cjk-latex (bug #40354) but I don't have much time to fix it.  I planned to take some patches from SUSE (anyway, jmgolv will take care of it).  
Comment 2 Georgi Georgiev 2004-07-13 17:06:30 UTC
Created attachment 35358 [details]
latex-unicode.ebuild

Well, this package is pretty useful as a part of the movement to utf8. This
way, I can write my latex files in utf8, though I haven't used it with Japanese
yet. In fact, the CJK part is pretty ugly, according to languages.ps.gz.

The message in the end of the original latex-unicode ebuild was pretty useful.
If you are to consider my ebuild, I'd recommend keeping the original message.

One problem with the ebuild, is that the file in SRC_URI is not versioned.
Comment 3 Georgi Georgiev 2004-07-13 17:08:59 UTC
I now see that my ebuild ignores ${myconf}. Trivial to patch.

<        perl makeunidef.pl -t data -v --nocomments config/* || die
>        perl makeunidef.pl -t data -v --nocomments ${myconf} config/* || die
Comment 4 Mamoru KOMACHI (RETIRED) gentoo-dev 2004-07-17 11:14:11 UTC
I tested your ebuild and it didn't work with Japanese.
It cannot find c40enc.def. I had tested several examples 
with my ebuild according to languages.pz when I committed.
Could you provide some tex files that your ebuild is able 
to process and Portage's isn't?

If cjk USE flag is the only thing I'll add it to the current ebuild. 
Comment 5 Georgi Georgiev 2004-07-17 12:11:00 UTC
Not sure how to apologize.

I read the INSTALL and the README, which referenced an extra required file, plus compilation steps. Then I looked at your ebuild, and I saw that you've listed only one file, that the file is on a private server, and that that you don't do any of the things that are listed in the README. So I figured that you've prepared the file yourself, because the ebuild didn't do any of the "compile" steps that the README talks about.

Hence all the confusion.

About the cjk use flag: excluding cjk reduces the size of data/ from 2.2M to 782K... not really an issue for someone using latex.

Sorry again. Might as well mark this as inavlid, but I'd rather go hide under a pillow.

Actually, if you do want to include the IUSE=cjk... the source tarball seems to already be prepared with all possible encodings. I guess only the -cjk case can be prepared again:

src_compile() {
if ! use cjk ; then
 rm -f data/*
 perl makeunidef.pl -t data -v --nocomments --exclude cjkbg5,cjkgb,cjkjis,cjkhangul config/*
fi
}
Comment 6 Mamoru KOMACHI (RETIRED) gentoo-dev 2004-08-18 07:36:59 UTC
Sorry fot the delay. Applied your patch to latex-unicode-20040307.ebuild. Thanks for the suggestion.
If you find any other improvements please let me know.