summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Orlitzky <mjo@gentoo.org>2017-01-03 13:48:21 -0500
committerMichael Orlitzky <mjo@gentoo.org>2017-01-03 14:14:02 -0500
commit6e68c5351d74213a94d26626cd82fa478048c130 (patch)
tree18ef91e0ec13cbaafb12687069006e343a62197d /dev-php/jpgraph/files/gentoo_ttf_dir.patch
parentmedia-libs/phonon: Remove 4.7.2 (diff)
downloadgentoo-6e68c5351d74213a94d26626cd82fa478048c130.tar.gz
gentoo-6e68c5351d74213a94d26626cd82fa478048c130.tar.bz2
gentoo-6e68c5351d74213a94d26626cd82fa478048c130.zip
dev-php/jpgraph: new version 4.0.2 fixing a few bugs.
This new version fixes a few outstanding issues with the old 3.x series ebuilds. First, the config file is now installed to /etc, where the user will be able to edit it, and then merely symlinked to /usr/share/php/jpgraph where it used to live. This lets the user configure caching at any time, which brings us to the second improvement: caching is disabled by default, and we make no attempt to configure the web server user or cache directory. This fixes an open bug. Finally, all of the documentation and examples are now installed in the correct place, and no copies wind up in the PHP include directory. Other minor improvements were made, like an update to EAPI=6, and the use of a patch instead of a call to sed. Gentoo-Bug: 520566 Package-Manager: portage-2.3.0
Diffstat (limited to 'dev-php/jpgraph/files/gentoo_ttf_dir.patch')
-rw-r--r--dev-php/jpgraph/files/gentoo_ttf_dir.patch31
1 files changed, 31 insertions, 0 deletions
diff --git a/dev-php/jpgraph/files/gentoo_ttf_dir.patch b/dev-php/jpgraph/files/gentoo_ttf_dir.patch
new file mode 100644
index 000000000000..a10479b3f673
--- /dev/null
+++ b/dev-php/jpgraph/files/gentoo_ttf_dir.patch
@@ -0,0 +1,31 @@
+From fd1fc5e3c72ac4511f86852b1704821c440bdb3d Mon Sep 17 00:00:00 2001
+From: Michael Orlitzky <michael@orlitzky.com>
+Date: Tue, 3 Jan 2017 12:56:18 -0500
+Subject: [PATCH 1/1] Set TTF_DIR to the Gentoo corefonts location.
+
+The default value of TTF_DIR in jpg-config.inc.php points to
+/usr/share/fonts/truetype, a location that does not exist on
+Gentoo. Since JpGraph largely only supports the Microsoft
+corefonts, we point it to /usr/share/fonts/corefonts instead.
+If the user does not have the corefonts installed, this is no
+great loss: neither location exists.
+---
+ src/jpg-config.inc.php | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/jpg-config.inc.php b/src/jpg-config.inc.php
+index ea16c1e..98cbdc7 100755
+--- a/src/jpg-config.inc.php
++++ b/src/jpg-config.inc.php
+@@ -36,7 +36,7 @@
+ //
+ //------------------------------------------------------------------------
+ // define('CACHE_DIR','/tmp/jpgraph_cache/');
+-// define('TTF_DIR','/usr/share/fonts/TrueType/');
++define('TTF_DIR','/usr/share/fonts/corefonts/');
+ // define('MBTTF_DIR','/usr/share/fonts/TrueType/');
+
+ //-------------------------------------------------------------------------
+--
+2.10.2
+