The dvisvgm package converts DVI, EPS and PDF files to SVG format.
This package is known to build and work properly using an LFS-11.2 platform.
Download (HTTP): https://github.com/mgieseki/dvisvgm/releases/download/2.14/dvisvgm-2.14.tar.gz
Download MD5 sum: 57f23eefa075556e36de64ea9b61d8fd
Download size: 3.0 MB
Estimated disk space required: 280 MB (41 MB installed, add 949 MB for the tests)
Estimated build time: 1.2 SBU (add 0.7 SBU for the tests, both using parallelism=4)
Brotli-1.0.9, ghostscript-9.56.1 and Potrace-1.16
asciidoc-10.2.0 with xmlto-0.0.28 and libxslt-1.1.36 (see command explanations), dblatex (with the above) and xxHash (the current version is included in the tarball)
User Notes: https://wiki.linuxfromscratch.org/blfs/wiki/dvisvgm
To enable the build system to link to libkpathsea.so
, as the root
user create a symlink from /usr/lib
:
ln -svf $TEXLIVE_PREFIX/lib/libkpathsea.so /usr/lib
The testsuite assumes that a modern version of Python has been installed as plain
python. Changing this
to use python3
requires a sed to one Makefile.in
file.
Install dvisvgm by running the following commands:
sed -i 's/python/&3/' tests/Makefile.in && ./configure \ --bindir=$TEXLIVE_PREFIX/bin/${TEXARCH} \ --mandir=$TEXLIVE_PREFIX/texmf-dist/doc/man \ --with-kpathsea=$TEXLIVE_PREFIX && make
To test the results, issue: make check.
Now, as the root
user:
make install
ln -svf $TEXLIVE_PREFIX/lib/libkpathsea.so /usr/lib: Without this, the program will not link correctly,
--with-kpathsea=$TEXLIVE_PREFIX:
This allows the build system to find the headers for kpathsea