[MacPorts] #27887: svg2pdf update
MacPorts
noreply at macports.org
Mon Jan 24 17:42:23 PST 2011
#27887: svg2pdf update
-------------------------------+--------------------------------------------
Reporter: ejtttje@… | Owner: macports-tickets@…
Type: update | Status: new
Priority: Normal | Milestone:
Component: ports | Version:
Keywords: haspatch | Port: svg2pdf
-------------------------------+--------------------------------------------
Comment(by ejtttje@…):
The svg2pdf author replied to me, and declined to provide a dedicated
svg2pdf package because it turns out there is already a 'rsvg-convert'
tool bundled with librsvg. I confirmed this is already available in
MacPorts, and produces byte-identical output to the svg2pdf update I
attached above, but also accepts additional arguments for controlling
zoom, background, etc. Considering rsvg-convert is a supported tool of
the main librsvg library, it clearly seems to be the preferable route vs.
this unmaintained version.
So, I see two options:
a. Convert this svg2pdf port to a dependance on librsvg with a simple
wrapper script, e.g.:
{{{
#!/bin/sh
if [ $# -lt 2 -o "$1" = "-h" -o "$1" = "--help" ] ; then
echo "FAIL: usage: $0 input_file.svg output_file.pdf"
exit 255;
fi
rsvg-convert -f pdf -o "$2" "$1"
}}}
b. Remove this port, perhaps with some kind of reference or alias to
librsvg's tool (I don't think MacPorts has such a thing?)
--
Ticket URL: <https://trac.macports.org/ticket/27887#comment:2>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list