Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 518970 | Differences between
and this patch

Collapse All | Expand All

(-)/usr/portage/media-libs/gd/gd-2.0.35-r4.ebuild (-1 / +26 lines)
Lines 12-18 Link Here
12
12
13
LICENSE="gd IJG HPND BSD"
13
LICENSE="gd IJG HPND BSD"
14
SLOT="2"
14
SLOT="2"
15
KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ppc ~ppc64 ~s390 ~sh ~sparc x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd"
15
KEYWORDS="~ppc-aix ~x86-freebsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
16
IUSE="fontconfig jpeg png static-libs truetype xpm zlib"
16
IUSE="fontconfig jpeg png static-libs truetype xpm zlib"
17
17
18
RDEPEND="fontconfig? ( >=media-libs/fontconfig-2.10.92[${MULTILIB_USEDEP}] )
18
RDEPEND="fontconfig? ( >=media-libs/fontconfig-2.10.92[${MULTILIB_USEDEP}] )
Lines 51-56 Link Here
51
}
51
}
52
52
53
multilib_src_configure() {
53
multilib_src_configure() {
54
	# setup a default FONT path that has a chance of existing using corefonts,
55
	# as to make it more useful with e.g. gnuplot
56
	local fontpath="${EPREFIX}/usr/share/fonts/corefonts"
57
	# like with fontconfig, try to use fonts from the host OS, because that's
58
	# beneficial for the user
59
	use prefix && case ${CHOST} in
60
		*-darwin*)
61
			fontpath="${fontpath}:/Library/Fonts:/System/Library/Fonts"
62
		;;
63
		*-solaris*)
64
			[[ -d /usr/X/lib/X11/fonts/TrueType ]] && \
65
				fontpath="${fontpath}:/usr/X/lib/X11/fonts/TrueType"
66
			[[ -d /usr/X/lib/X11/fonts/Type1 ]] && \
67
				fontpath="${fontpath}:/usr/X/lib/X11/fonts/Type1"
68
			# OpenIndiana
69
			[[ -d /usr/share/fonts/X11/Type1 ]] && \
70
				fontpath="${fontpath}:/usr/share/fonts/X11/Type1"
71
		;;
72
		*-linux-gnu)
73
			[[ -d /usr/share/fonts/truetype ]] && \
74
				fontpath="${fontpath}:/usr/share/fonts/truetype"
75
		;;
76
	esac
77
	append-cppflags "-DDEFAULT_FONTPATH=\\\"${fontpath}\\\""
78
54
	export ac_cv_lib_z_deflate=$(usex zlib)
79
	export ac_cv_lib_z_deflate=$(usex zlib)
55
	# we aren't actually {en,dis}abling X here ... the configure
80
	# we aren't actually {en,dis}abling X here ... the configure
56
	# script uses it just to add explicit -I/-L paths which we
81
	# script uses it just to add explicit -I/-L paths which we

Return to bug 518970