Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 153028 - dev-tex/tex4ht-1.0.2006_10_24_0142: version bump
Summary: dev-tex/tex4ht-1.0.2006_10_24_0142: version bump
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: TeX project
URL:
Whiteboard:
Keywords:
: 157583 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-10-27 12:33 UTC by Serge Gavrilov
Modified: 2007-10-30 17:52 UTC (History)
3 users (show)

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


Attachments
dev-tex/tex4ht-20070505_p0055.ebuild (bump again) (tex4ht-20070505_p0055.ebuild,1.90 KB, text/plain)
2007-05-09 13:33 UTC, Maxim Loginov
Details
another version bump and oolatex works (tex4ht-20070928_p1435.ebuild,2.35 KB, text/plain)
2007-09-30 15:52 UTC, Gerard Vermeulen
Details
bumped version and added java use flag (tex4ht-20071024_p0140.ebuild,2.59 KB, text/plain)
2007-10-28 20:35 UTC, Gerard Vermeulen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Serge Gavrilov 2006-10-27 12:33:35 UTC
See http://www.cse.ohio-state.edu/~gurari/TeX4ht/bugfixes.html

Now TeX4ht supports Open Document format.
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-12-09 02:11:40 UTC
*** Bug 157583 has been marked as a duplicate of this bug. ***
Comment 2 Maxim Loginov 2007-05-09 13:33:56 UTC
Created attachment 118649 [details]
dev-tex/tex4ht-20070505_p0055.ebuild (bump again)

the newest version, it worsk for me with tetex-3.0_p1-r3
Comment 3 pavel sanda 2007-07-31 12:42:10 UTC
hi, i tried newer version renaming to tex4ht-20070717_p0228.ebuild and 
oolatex doesnt work for me.
error message i get is 
System call: java -classpath //texmf-dist/tex4ht/bin xtpipes -i //texmf-dist/tex4ht/xttl/ -o exam.4oo exam.tmp
Exception in thread "main" java.lang.NoClassDefFoundError: xtpipes

i guess that path //texmf-dist/tex4ht/ bin,xttl should be sed-ed to some 
appropriate location, but havent found that yet.
Comment 4 Gerard Vermeulen 2007-09-30 15:49:53 UTC
oolatex depends on some java classes.

Ebuild modifications are:
- add >=virtual/jdk-1.5 to DEPEND
- add >=virtual/jre-1.5 to RDEPEND
- add an extra sed statement to make oolatex find the compiled java files
  (see item 14 of http://www.cse.ohio-state.edu/~gurari/TeX4ht/uupdate.html)
- compile the java files
- install the compiled java files
- install the .4xt files (also needed by oolatex)
- replace has_tetex_3 with latex-package_has_tetex_3 (I do not understand why it
  is needed, but on my system it is).

I tested oolatex on a non-trivial tex file and it works.
Comment 5 Gerard Vermeulen 2007-09-30 15:52:17 UTC
Created attachment 132247 [details]
another version bump and oolatex works
Comment 6 Alexis Ballier gentoo-dev 2007-10-16 22:32:54 UTC
hmmm, would it be possible to make java optional ?
java is not supported on all architectures, this would restrict tex4ht :/

I suppose that would mean not installing jh* binaries; but oolatex wouldn't work
Comment 7 Gerard Vermeulen 2007-10-17 17:33:42 UTC
Yes, java could be made optional but I would not install oolatex in case that java has not been installed (I stumbled on the oolatex bug when trying to convert a latex file to open document from LyX).

I can modify the ebuild if you like.

When fixing oolatex I was wondering if it is possible to use use gcj instead
instead of a default java (I suppose that gcj is more portable than the other
java's). I can give it a try when the gcj invokation resembles the javac invokation (I am an ebuild and a java newbie).  
Comment 8 Alexis Ballier gentoo-dev 2007-10-28 18:51:09 UTC
(In reply to comment #7)
> Yes, java could be made optional but I would not install oolatex in case that
> java has not been installed (I stumbled on the oolatex bug when trying to
> convert a latex file to open document from LyX).
> 
> I can modify the ebuild if you like.

Yes, please :)
I didn't check what exactly needs java, neither where the class files are (they shouldnt be installed if java is not wanted).

> When fixing oolatex I was wondering if it is possible to use use gcj instead
> instead of a default java (I suppose that gcj is more portable than the other
> java's). I can give it a try when the gcj invokation resembles the javac
> invokation (I am an ebuild and a java newbie).  

I don't know much about gcj (even less than about java...), but I don't think we can assume it's present on the system, it would require to check if gcc has been built with the gcj useflag.
Comment 9 Gerard Vermeulen 2007-10-28 20:35:35 UTC
Created attachment 134572 [details]
bumped version and added java use flag

Here you are:
1. the java classes are only compiled when the java use flag is enabled.
2. the /usr/bin/oo* scripts are not installed when the java use flag is disabled
3. the compiled java files and helper (xml) files are only installed when the java
   use flag is enabled.
4. add a message that the ODF converters require the java use flag.

Gerard
Comment 10 Alexis Ballier gentoo-dev 2007-10-30 17:52:39 UTC
thanks Gerard, it's now bumped. I'll make it installable with texlive as it's currently not possible.

I've done small modifications to match gentoo way of handling java stuff (thanks to wltjr), and renamed ht to ht.tex4ht in order to avoid collision with hteditor.