Created attachment 308531 [details, diff] Patch adding dvisvgm dependency when svg USE flag is set. I recieved the following error when trying to build an SVG using asymptote: $ asy -f svg Circ-test.asy ... Cannot execute dvisvgm Please put in a file config.asy: import settings; dvisvgm="LOCATION"; where LOCATION specifies the location of dvisvgm. Alternatively, set the environment variable ASYMPTOTE_DVISVGM or use the command line option -dvisvgm="LOCATION". For further details, see http://asymptote.sourceforge.net/doc/Configuring.html http://asymptote.sourceforge.net/doc/Search-paths.html /usr/share/asymptote/plain_shipout.asy: 82.10: runtime: shipout failed make: *** [Circ-test.svg] Error 1 It seams to me that media-gfx/asymptote should depend on app-text/dvisvgm if the svg USE flag is set.
media-gfx/asymptote does not support IUSE=svg right now, so adjusting the Summary accordingly.
Comment on attachment 308531 [details, diff] Patch adding dvisvgm dependency when svg USE flag is set. If you add IUSE=svg then you should also assume that the build system will exclude SVG support when the USE flag is disabled.
> If you add IUSE=svg then you should also assume that the build system will > exclude SVG support when the USE flag is disabled. This is just an optional run-time dependence. asymptote can produce many formats, some via imagemagick convert (USE=imagemagick), svg via dvisvgm (USE=svg), etc. If imagemagick or dvisvgm is not installed, it is still possible to use asymptote; if a user wants to produce a format not supported in this case, it gives an error message. What do you mean by disabling svg support? Producing a better error message when asked to generate an svg file? I don't think this is so important. In such a case, with USE=-imagemagick support for a bunch of other formats has to be "disabled" too (by producing error messages?). So, I just applied the proposed patch. I think it is good enough. Otherwise, as I said, some "disabling" of support of various formats should be done for other optional runtime dependencies, too.