The Thunar file manager wasn't displaying previews for svg icons. It turns out that graphics/librsvg2 has to be installed as a runtime dependency.
I had the same exact problem on my port, devel/gps. This is what I am doing to fix it:
In reality, what is needed I think is "lib/gdk-pixbuf-2.0/%%GTK2_VERSION%%/loaders/libpixbufloader-svg.so" but this makes the RUN_DEPENDS tricky so I just picked an easy file to pull in the package as a run depends.
When this librsvg2 library is installed, thunar displays svg icons fine.
(In reply to John Marino from comment #0)
By default Thunar does not display any preview, it's deskutils/xfce4-tumbler. It already load gdkpixbuf2, librsvg2 is probably missing.
Feel free to add librsvg2 into deskutils/xfce4-tumbler port.
It's not necessary to use:
Mk/bsd.gnome.mk provides librsvg2 detection, simply adjust USE_GNOME macro.
okay, well, I'm only reporting a problem and suggested a fix. I trust your fix is better, and I'd prefer not to touch your ports right now. I've got some issues with a specific portmgr that I need to iron out first.
I just looked at bsd.gnome.mk, it sets LIB_DEPENDS.
At least for GPS, I need RUN_DEPENDS. It's not a build dependency.
(In reply to John Marino from comment #2)
I looked at source code, tumbler uses mainly gdkpixbuf functions, I prefer to use librsvg2 into USE_GNOME.
A commit references this bug:
Date: Mon Mar 30 18:41:11 UTC 2015
New revision: 382706
Allow Thunar (through tumbler daemon) to display previews for SVG icons.
Submitted by: marino@