[MacPorts] #27887: svg2pdf update
#27887: svg2pdf update -------------------------------+-------------------------------------------- Reporter: ejtttje@… | Owner: macports-tickets@… Type: update | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: | Port: svg2pdf -------------------------------+-------------------------------------------- The svg2pdf 'snapshot' being used is from 2005, and is no longer being developed. (see "out of date" banner on http://webcvs.cairographics.org/svg2pdf/) However, if you follow the link from that banner, there is a newer version from 2007, which was forked out of the cairo test suite. This version is a very thin wrapper about librsvg, which is receiving ongoing maintenance from GNOME. This is a larger dependency tree for svg2pdf, but it works on more modern SVG files. I will also contact the developer (cworth) to see if he will host a release package that can be downloaded instead of a git clone. -- Ticket URL: <https://trac.macports.org/ticket/27887> MacPorts <http://www.macports.org/> Ports system for Mac OS
#27887: svg2pdf update -------------------------------+-------------------------------------------- Reporter: ejtttje@… | Owner: macports-tickets@… Type: update | Status: new Priority: Normal | Milestone: Component: ports | Version: Keywords: haspatch | Port: svg2pdf -------------------------------+-------------------------------------------- Changes (by jmr@…): * keywords: => haspatch * version: 1.9.2 => Comment: Have you tested that +universal actually works? At first glance I don't see how it could. Also note that the initial revision for a new version should be 0. -- Ticket URL: <https://trac.macports.org/ticket/27887#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#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
#27887: svg2pdf update -------------------------------+-------------------------------------------- Reporter: ejtttje@… | Owner: macports-tickets@… Type: update | Status: new Priority: Normal | Milestone: Component: ports | Version: Keywords: haspatch | Port: svg2pdf -------------------------------+-------------------------------------------- Comment(by ryandesign@…): We do have the "replaced_by" keyword. -- Ticket URL: <https://trac.macports.org/ticket/27887#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#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@…): Hmm, this ticket is old, we should do something with it. If we were to drop this port, the rsvg-convert functionality of librsvg isn't as well known, so people might have trouble finding rsvg-convert on their own. Also since librsvg doesn't directly provide a svg2pdf script, using 'replaced_by' isn't 100% appropriate. So I prefer option (a), it will maintain syntactic compatibility with any scripts which are using svg2pdf, yet provide a maintained/modern svg implementation. I don't know Portfile syntax well enough to know how to make it install the script shown above. Can it be stored directly in svg2pdf/files and then somehow referenced from the Portfile to install it? -- Ticket URL: <https://trac.macports.org/ticket/27887#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#27887: svg2pdf update -------------------------------+-------------------------------------------- Reporter: ejtttje@… | Owner: macports-tickets@… Type: update | Status: new Priority: Normal | Milestone: Component: ports | Version: Keywords: haspatch | Port: svg2pdf -------------------------------+-------------------------------------------- Comment(by pixilla@…): How about naming the script rsvg2pdf and adding a note to the svg2pdf port along the lines of "For a more modern alternative install rsvg2pdf, a wrapper for librsvg providing svg2pdf functionality"? -- Ticket URL: <https://trac.macports.org/ticket/27887#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#27887: svg2pdf update -------------------------------+-------------------------------------------- Reporter: ejtttje@… | Owner: macports-tickets@… Type: update | Status: new Priority: Normal | Milestone: Component: ports | Version: Keywords: haspatch | Port: svg2pdf -------------------------------+-------------------------------------------- Changes (by mk@…): * cc: pixilla@… (added) -- Ticket URL: <https://trac.macports.org/ticket/27887#comment:7> MacPorts <http://www.macports.org/> Ports system for Mac OS
#27887: svg2pdf update --------------------------------+------------------------------------------- Reporter: ejtttje@… | Owner: macports-tickets@… Type: update | Status: closed Priority: Normal | Milestone: Component: ports | Version: Resolution: fixed | Keywords: haspatch Port: svg2pdf | --------------------------------+------------------------------------------- Changes (by pixilla@…): * status: new => closed * resolution: => fixed Comment: See r83340. -- Ticket URL: <https://trac.macports.org/ticket/27887#comment:8> MacPorts <http://www.macports.org/> Ports system for Mac OS
#27887: svg2pdf update --------------------------------+------------------------------------------- Reporter: ejtttje@… | Owner: macports-tickets@… Type: update | Status: closed Priority: Normal | Milestone: Component: ports | Version: Resolution: fixed | Keywords: haspatch Port: svg2pdf | --------------------------------+------------------------------------------- Comment(by cal@…): What's the reasoning for installing svg2pdf in ${prefix}/sbin rather than ${prefix}/bin? Shouldn't this be rather placed in bin and marked conflicting with the svg2pdf port? -- Ticket URL: <https://trac.macports.org/ticket/27887#comment:9> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts