--- /usr/portage/media-libs/gd/gd-2.0.35-r4.ebuild 2014-07-28 08:01:24.000000000 -0600 +++ gd-2.0.35-r4.ebuild 2014-08-03 17:42:06.561034837 -0600 @@ -51,6 +51,31 @@ } multilib_src_configure() { + # setup a default FONT path that has a chance of existing using corefonts, + # as to make it more useful with e.g. gnuplot + local fontpath="${EPREFIX}/usr/share/fonts/corefonts" + # like with fontconfig, try to use fonts from the host OS, because that's + # beneficial for the user + use prefix && case ${CHOST} in + *-darwin*) + fontpath+=":/Library/Fonts:/System/Library/Fonts" + ;; + *-solaris*) + [[ -d /usr/X/lib/X11/fonts/TrueType ]] && \ + fontpath+=":/usr/X/lib/X11/fonts/TrueType" + [[ -d /usr/X/lib/X11/fonts/Type1 ]] && \ + fontpath+=":/usr/X/lib/X11/fonts/Type1" + # OpenIndiana + [[ -d /usr/share/fonts/X11/Type1 ]] && \ + fontpath+=":/usr/share/fonts/X11/Type1" + ;; + *-linux-gnu) + [[ -d /usr/share/fonts/truetype ]] && \ + fontpath+=":/usr/share/fonts/truetype" + ;; + esac + append-cppflags "-DDEFAULT_FONTPATH=\\\"${fontpath}\\\"" + export ac_cv_lib_z_deflate=$(usex zlib) # we aren't actually {en,dis}abling X here ... the configure # script uses it just to add explicit -I/-L paths which we