diff options
Diffstat (limited to 'graphics/dvisvgm')
-rw-r--r-- | graphics/dvisvgm/README | 42 | ||||
-rw-r--r-- | graphics/dvisvgm/c-std.h.diff | 14 | ||||
-rw-r--r-- | graphics/dvisvgm/dvisvgm.SlackBuild | 27 | ||||
-rw-r--r-- | graphics/dvisvgm/dvisvgm.info | 14 | ||||
-rw-r--r-- | graphics/dvisvgm/slack-desc | 19 |
5 files changed, 79 insertions, 37 deletions
diff --git a/graphics/dvisvgm/README b/graphics/dvisvgm/README index 7ad9bb195c..59e0991ba0 100644 --- a/graphics/dvisvgm/README +++ b/graphics/dvisvgm/README @@ -1,11 +1,33 @@ -dvisvgm is a fast DVI to SVG converter +dvisvgm is a fast DVI (and EPS) to SVG converter -The command-line utility dvisvgm is a tool for TeX/LaTeX users. It converts DVI -and EPS files to the XML-based scalable vector graphics format SVG. In contrast -to bitmap graphics, vector graphics are arbitrarily scalable without loss of -quality. - -All modern web browsers support a large amount of the current SVG standard 1.1. -Furthermore, SVG files can also be displayed with the Java-based Squiggle SVG -browser which is part of the Apache Batik project, and the free vector -graphics editor Inkscape. +The command-line utility dvisvgm is a tool for TeX/LaTeX users. It +converts DVI and EPS files to the XML-based scalable vector graphics +format SVG. The latest releases support standard DVI files (format 2) as +well as DVI output created by pTeX in vertical mode (format 3), and XeTeX +(format 5 and 6, also known as XDV). + http://dvisvgm.bplaced.net +dvisvgm version 1.6 is present in SlackBuild texlive-2014052 +This separate package presents an updated version 1.11 of dvisvgm +offereing various bugfixes and the following main features: +* Complete font support including virtual fonts, evaluation of font +encodings, CMap files, sub-font definitions and font maps. +* Glyph outlines of all required fonts are embedded into the generated +SVG files. +* Glyph outlines of fonts that are not available in a vector format are +generated on-the-fly by vectorizing METAFONT's bitmap output. +* dvisvgm allows to replace font definitions by paths so that +applications without SVG font support are enabled to render dvisvgm's +output properly. +* Computes tight bounding boxes for the generated graphics, but supports +common paper formats and arbitrary user-defined sizes as well. +* Option --eps allows to convert EPS files to SVG. +* Intersections of clipping paths can be computed directly instead of +delegating this task to the SVG renderer. This increases the +compatibility of the generated SVG files. +* Approximates PostScript color gradient fills not directly supported by +SVG 1.1. +* Optionally creates compressed SVGZ files. +* Provides options for applying page transformations, like translation, +rotation, scaling, and skewing. +* Evaluates color, emTeX, tpic, hyperref/HyperTeX, PDF mapfile, and +PostScript specials. diff --git a/graphics/dvisvgm/c-std.h.diff b/graphics/dvisvgm/c-std.h.diff new file mode 100644 index 0000000000..7f8d403523 --- /dev/null +++ b/graphics/dvisvgm/c-std.h.diff @@ -0,0 +1,14 @@ +--- c-std.h 2010-05-17 22:01:37.000000000 +0200 ++++ c-std.h.new 2015-11-19 10:18:18.000000000 +0100 +@@ -93,9 +93,9 @@ + #else + #ifndef WIN32 + /* `popen' and `pclose' are part of POSIX.2, not POSIX.1. So +- STDC_HEADERS isn't enough. */ ++ STDC_HEADERS isn't enough. + extern FILE *popen (); +-extern int pclose (); ++extern int pclose (); */ + #endif /* not WIN32 */ + #endif /* not VMS */ + diff --git a/graphics/dvisvgm/dvisvgm.SlackBuild b/graphics/dvisvgm/dvisvgm.SlackBuild index cdf1dfc053..ee54426624 100644 --- a/graphics/dvisvgm/dvisvgm.SlackBuild +++ b/graphics/dvisvgm/dvisvgm.SlackBuild @@ -1,7 +1,8 @@ #!/bin/sh - # Slackware build script for dvisvgm - +# SlackBuild Version: 151119 +# Copyright 2015 Igor ( igor29768 AT gmail.com ) +# Based on the SlackBuild script by Rudson Alves (rudsonalves@yahoo.com.br) # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -22,7 +23,7 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=dvisvgm -VERSION=${VERSION:-1.4} +VERSION=${VERSION:-1.12} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -69,18 +70,22 @@ find -L . \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; # Libkpathsea check... -if [ ! -e /usr/include/kpathsea ]; then -# ln -s /usr/share/texmf/include/kpathsea /usr/include/kpathsea - export CPPFLAGS="${CPPFLAGS} -I/usr/share/texmf/include/" +# If Slackware tetex is installed +if [ -d /usr/share/texmf/include/kpathsea ] && [ ! -e /usr/include/kpathsea ]; then + cp -r /usr/share/texmf/include/kpathsea/ $TMP/$PRGNAM-$VERSION + cd kpathsea + patch -i $CWD/c-std.h.diff + cd .. + export CPPFLAGS+="$SLKCFLAGS -I$TMP/$PRGNAM-$VERSION" fi -if [ ! -e /usr/lib${LIBDIRSUFFIX}/libkpathsea.a ]; then -# ln -s /usr/share/texmf/lib/libkpathsea.a /usr/lib${LIBDIRSUFFIX}/libkpathsea.a -# ln -s /usr/share/texmf/lib/libkpathsea.la /usr/lib${LIBDIRSUFFIX}/libkpathsea.la - export LIBS="${LIBS} -l/usr/share/texmf/lib/" - export LDFLAGS="${LDFLAGS} -L/usr/share/texmf/lib/" +if [ ! -e /usr/lib${LIBDIRSUFFIX}/libkpathsea.la ] && [ -e /usr/share/texmf/lib/libkpathsea.la ]; then + LIBS+=" -l/usr/share/texmf/lib/" + export LDFLAGS+=" -L/usr/share/texmf/lib/" fi +echo "CPPFLAGS=$CPPFLAGS LIBS=$LIBS LDFLAGS=$LDFLAGS" + CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ ./configure \ diff --git a/graphics/dvisvgm/dvisvgm.info b/graphics/dvisvgm/dvisvgm.info index 92ee744c02..b6310baec1 100644 --- a/graphics/dvisvgm/dvisvgm.info +++ b/graphics/dvisvgm/dvisvgm.info @@ -1,10 +1,10 @@ PRGNAM="dvisvgm" -VERSION="1.4" -HOMEPAGE="http://dvisvgm.sourceforge.net/" -DOWNLOAD="http://sourceforge.net/projects/dvisvgm/files/dvisvgm/old-releases/1.4/dvisvgm-1.4.tar.gz" -MD5SUM="5ba576bbd664f8b04e4db1e4efd3a541" +VERSION="1.12" +HOMEPAGE="http://dvisvgm.bplaced.net" +DOWNLOAD="https://github.com/mgieseki/dvisvgm/releases/download/1.12/dvisvgm-1.12.tar.gz" +MD5SUM="a6b3870156cdbdb1eadc543a3f7d5b8d" DOWNLOAD_x86_64="" MD5SUM_x86_64="" -REQUIRES="potrace" -MAINTAINER="Rudson Alves" -EMAIL="rudsonalves@yahoo.com.br" +REQUIRES="freetype ghostscript potrace tetex|texlive zlib" +MAINTAINER="Igor" +EMAIL="igor29768@gmail.com" diff --git a/graphics/dvisvgm/slack-desc b/graphics/dvisvgm/slack-desc index 254f94df58..87e0630264 100644 --- a/graphics/dvisvgm/slack-desc +++ b/graphics/dvisvgm/slack-desc @@ -6,14 +6,15 @@ # customary to leave one space after the ':' except on otherwise blank lines. |-----handy-ruler------------------------------------------------------| -dvisvgm: dvisvgm (converts DVI files to the XML-based scalable SVG) -dvisvgm: -dvisvgm: dvisvgm a tool for TeX/LaTeX users to converts DVI files to the -dvisvgm: XML-based scalable vector graphics format SVG. SVG files can be -dvisvgm: displayed with Adobe's old SVG browser plug-in or the Java-based -dvisvgm: Squiggle SVG browser from the Apache Batik project, for example. -dvisvgm: A subset of the current SVG standard 1.1 is also supported by most -dvisvgm: Web browsers as well as the free vector graphics editor Inkscape.' -dvisvgm: +dvisvgm: dvisvgm (converts DVI and EPS files to SVG -Scalable Vector Graphics) dvisvgm: +dvisvgm: dvisvgm a tool for TeX/LaTeX users to converts DVI and +dvisvgm: EPS files to the XML-based scalable vector graphics format SVG +dvisvgm: version 1.1. +dvisvgm: It currently supports standard DVI files (format 2) as well as +dvisvgm: DVI output created by pTeX in vertical mode (format 3), and +dvisvgm: XeTeX (format 5 and 6, also known as XDV). +dvisvgm: Option --eps allows to convert EPS files to SVG. +dvisvgm: +dvisvgm: http://dvisvgm.bplaced.net dvisvgm: |