the Fink project is an effort to port
popular Unix programs to Mac OS X
Package: tex4ht
Version: 20071001
Revision: 5
Depends: ghostscript | ghostscript-nox, tetex-base, imagemagick | imagemagick-nox
BuildDepends: libjpeg8, libpng14, libtiff, libxml2, gdbm3, expat1, tcltk-dev, libkpathsea6
Source:http://www.cse.ohio-state.edu/~gurari/TeX4ht/fix/tex4ht-1.0.2007_10_01_0348.tar.gz
Source2: http://www.latex-project.org/lppl/lppl-1-3a.txt
Source-MD5: fa5fe2e3b953644446954566c20cde17
Source2-MD5: d8418ee9cb69385dac8a7b5cc0181469
PatchScript: <<
#!/bin/sh -ex
perl -pi -e '
s|~/tex4ht.dir/texmf/tex4ht/ht-fonts|%p/share/%n/ht-fonts|g
' bin/unix/* texmf/tex/generic/tex4ht/mkht-scripts.4ht texmf/tex4ht/base/unix/tex4ht.env
perl -pi -e '
s,^tpath/tex/texmf,t%p/share/texmf-dist,g;
s,^Gconvert zz%%%%4.ps(.*0 ),Gconvert $1zz%%%%4.ps ,g
' texmf/tex4ht/base/unix/tex4ht.env
<<
CompileScript:<<
#!/bin/sh -ex
pushd src
CFLAGS='-O3 -I%p/include -DKPATHSEA -DHAVE_STRING_H -DHAVE_DIRENT_H -DENVFILE="%p/share/%n/tex4ht.env"'
LDFLAGS=%p/lib/libkpathsea.a
cc -c $CFLAGS tex4ht.c
cc -c $CFLAGS t4ht.c
cc -o tex4ht tex4ht.o $LDFLAGS
cc -o t4ht t4ht.o $LDFLAGS
popd
head -n 28 src/t4ht.c > LICENSE
<<
InstallScript:<<
mkdir -p %i/etc/texmf.local/tex/%n
mkdir -p %i/share/%n/bin %i/share/%n/ht-fonts %i/share/doc/%n
mkdir -p %i/bin
cp -p src/*.c temp/*.tex texmf/tex4ht/base/unix/* %i/share/%n/
cp -p texmf/tex/generic/tex4ht/* %i/etc/texmf.local/tex/%n/
cp -pR texmf/tex4ht/ht-fonts/* %i/share/%n/ht-fonts/
cp src/t*4ht %i/bin/
cp bin/unix/* %i/share/%n/bin/
cd bin/unix; for HT in ht*; do ln -s %p/share/%n/bin/$HT %i/bin/$HT; done
<<
DocFiles: LICENSE ../lppl-1-3a.txt
PostInstScript: if [ -f %p/bin/mktexlsr ]; then %p/bin/mktexlsr %p/etc/texmf.local; fi
PostRmScript: if [ -f %p/bin/mktexlsr ]; then %p/bin/mktexlsr %p/etc/texmf.local; fi
Description: TeX to Hypertext translator
DescDetail: <<
TeX4ht is a highly configurable TeX-based authoring system for
producing hypertext. It interacts with TeX-based applications
through style files and postprocessors, leaving the processing
of the source files to the native TeX compiler. Consequently,
TeX4ht can handle the features of TeX-based systems in general,
and of the LaTeX and AMS style files in particular.
<<
DescPort: <<
There are no configure or Makefile scripts.
Everything has to be done by hand.
This version has KPATHSEA enabled, so searching the texmf hierarchy
should be rather automatic.
The upstream mk4ht script has typos and needs patching.
<<
DescUsage: <<
The basic usage is "httex texfile.tex" or "htlatex latexfile.tex".
The htlatex, httex, and httexi scripts convert from LaTeX, TeX, and TeXinfo
to html.
Additional conversion scripts can be found in the directory
%p/share/tex4ht/bin/.
The configuration file %p/share/tex4ht/tex4ht.env can be adapted
to your needs. If you want to modify it, place a copy either into
your home directory under the name .tex4ht or into
your working directory under the name tex4ht.env and modify the copy.
The order of precedence is
./tex4ht.env -> ~/.tex4ht -> %p/share/tex4ht/tex4ht.env
<<
License: OSI-Approved
Maintainer: Martin Costabel
Homepage: http://www.cse.ohio-state.edu/~gurari/TeX4ht/mn.html