<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>56809</bug_id>
          
          <creation_ts>2004-07-12 11:10 0000</creation_ts>
          <short_desc>the ebuild for latex-unicode can benefit more from USE=cjk</short_desc>
          <delta_ts>2004-08-18 07:36:59 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Applications</component>
          <version>2004.1</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>chutz@gg3.net</reporter>
          <assigned_to>text-markup@gentoo.org</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who>chutz@gg3.net</who>
            <bug_when>2004-07-12 11:10:49 0000</bug_when>
            <thetext>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&apos;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 &quot;--exclude cjkbg5,cjkgb,cjkjis,cjkhangul&quot;, 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&apos;t realise the package is already in portage).

I don&apos;t know why that choice was made, so I&apos;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.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>usata@gentoo.org</who>
            <bug_when>2004-07-13 09:03:35 0000</bug_when>
            <thetext>Sorry about your frustration. I put latex-unicode into Portaeg but haven&apos;t tested much (cause I don&apos;t use Unicode for LaTeX). If you are uncomfortable with the package and you have a better one, please submit it here. I&apos;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&apos;s better to use LINGUAS solution for the moment.  In addition to latex-unicode, there&apos;s an open bug for cjk-latex (bug #40354) but I don&apos;t have much time to fix it.  I planned to take some patches from SUSE (anyway, jmgolv will take care of it).  </thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>chutz@gg3.net</who>
            <bug_when>2004-07-13 17:06:30 0000</bug_when>
            <thetext>Created an attachment (id=35358)
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&apos;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&apos;d recommend keeping the original message.

One problem with the ebuild, is that the file in SRC_URI is not versioned.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>chutz@gg3.net</who>
            <bug_when>2004-07-13 17:08:59 0000</bug_when>
            <thetext>I now see that my ebuild ignores ${myconf}. Trivial to patch.

&lt;        perl makeunidef.pl -t data -v --nocomments config/* || die
&gt;        perl makeunidef.pl -t data -v --nocomments ${myconf} config/* || die
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>usata@gentoo.org</who>
            <bug_when>2004-07-17 11:14:11 0000</bug_when>
            <thetext>I tested your ebuild and it didn&apos;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&apos;s isn&apos;t?

If cjk USE flag is the only thing I&apos;ll add it to the current ebuild. </thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>chutz@gg3.net</who>
            <bug_when>2004-07-17 12:11:00 0000</bug_when>
            <thetext>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&apos;ve listed only one file, that the file is on a private server, and that that you don&apos;t do any of the things that are listed in the README. So I figured that you&apos;ve prepared the file yourself, because the ebuild didn&apos;t do any of the &quot;compile&quot; 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&apos;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
}</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>usata@gentoo.org</who>
            <bug_when>2004-08-18 07:36:59 0000</bug_when>
            <thetext>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.</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>35358</attachid>
            <date>2004-07-13 17:06 0000</date>
            <desc>latex-unicode.ebuild</desc>
            <filename>latex-ucs-0.1.ebuild</filename>
            <type>text/plain</type>
            <data encoding="base64">IyBDb3B5cmlnaHQgMTk5OS0yMDA0IEdlbnRvbyBUZWNobm9sb2dpZXMsIEluYy4KIyBEaXN0cmli
dXRlZCB1bmRlciB0aGUgdGVybXMgb2YgdGhlIEdOVSBHZW5lcmFsIFB1YmxpYyBMaWNlbnNlIHYy
CiMgJEhlYWRlcjogJAoKaW5oZXJpdCBsYXRleC1wYWNrYWdlCkRFU0NSSVBUSU9OPSJVbmljb2Rl
IHN1cHBvcnQgZm9yIGxhdGV4IgpIT01FUEFHRT0iaHR0cDovL3d3dy51bnJ1aC5kZS9EbmlRL2xh
dGV4L3VuaWNvZGUvdW5pY29kZS50Z3oiClNSQ19VUkk9IgoJaHR0cDovL3d3dy51bnJ1aC5kZS9E
bmlRL2xhdGV4L3VuaWNvZ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