Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 524120
Collapse All | Expand All

(-)jpgraph-3.0.7-r1.ebuild (-2 / +3 lines)
Lines 16-22 Link Here
16
IUSE="truetype +examples"
16
IUSE="truetype +examples"
17
17
18
DEPEND=""
18
DEPEND=""
19
RDEPEND="truetype? ( media-fonts/corefonts )
19
RDEPEND="truetype? ( media-fonts/corefonts 
20
		    dev-lang/php[gd,truetype] )
20
	dev-lang/php[gd]
21
	dev-lang/php[gd]
21
	"
22
	"
22
S="${WORKDIR}"
23
S="${WORKDIR}"
Lines 64-70 Link Here
64
	# make jpgraph use the correct directory for the corefonts if the truetype USE flag is set
65
	# make jpgraph use the correct directory for the corefonts if the truetype USE flag is set
65
66
66
	if use truetype ; then
67
	if use truetype ; then
67
		sed -i "s|.*define('TTF_DIR','/usr/X11R6/lib/X11/fonts/truetype/');|define('TTF_DIR','/usr/share/fonts/corefonts/');|" src/jpg-config.inc.php \
68
		sed -i "s|.*define('TTF_DIR','/usr/share/fonts/truetype/');|define('TTF_DIR','/usr/share/fonts/corefonts/');|" src/jpg-config.inc.php \
68
			|| die "sed failed in patch 3"
69
			|| die "sed failed in patch 3"
69
	fi
70
	fi
70
71

Return to bug 524120