summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorGeorge Hartzell <hartzell@alerce.com>2016-12-01 17:38:00 -0800
committerbecker33 <becker33@llnl.gov>2016-12-01 17:38:00 -0800
commitc01f78e51538f75c4cec6f696df4f129ea43d18d (patch)
tree0810f079a1fb81b9b7ddfb53e6b470278f9e2b10 /var
parent8dae60c5f026e2ec58ae43cdf5292293ecb50ee4 (diff)
downloadspack-c01f78e51538f75c4cec6f696df4f129ea43d18d.tar.gz
spack-c01f78e51538f75c4cec6f696df4f129ea43d18d.tar.bz2
spack-c01f78e51538f75c4cec6f696df4f129ea43d18d.tar.xz
spack-c01f78e51538f75c4cec6f696df4f129ea43d18d.zip
Make X11 font install dir the font search default (#2203)
* Make X11 font install dir the font search default We install the X11 fonts into `/share/fonts` beneath the font-util installation prefix, but that directory is not one of the places that the font subsystem searches. This commit makes the fontconfig package depend on the font-util package, and then it makes ```python spec['font-util'].prefix + "/share/fonts" ``` be the fontconfig default font location. Before this change, plots drawn by R have bounding boxes where font glyphs should be. After this change fonts appear as expected. * Enrich description string (trigger new CI run) Improve the docstring for the package. Also interested in the side effect of triggering another CI run to see if the recent flake8 fix lets this PR run clean. * Flake8 cleanups
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/fontconfig/package.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/var/spack/repos/builtin/packages/fontconfig/package.py b/var/spack/repos/builtin/packages/fontconfig/package.py
index 99c9b1f15d..655eb7cf06 100644
--- a/var/spack/repos/builtin/packages/fontconfig/package.py
+++ b/var/spack/repos/builtin/packages/fontconfig/package.py
@@ -26,7 +26,7 @@ from spack import *
class Fontconfig(AutotoolsPackage):
- """Fontconfig customizing font access"""
+ """Fontconfig is a library for configuring/customizing font access"""
homepage = "http://www.freedesktop.org/wiki/Software/fontconfig/"
url = "http://www.freedesktop.org/software/fontconfig/release/fontconfig-2.11.1.tar.gz"
@@ -35,7 +35,12 @@ class Fontconfig(AutotoolsPackage):
depends_on('freetype')
depends_on('libxml2')
depends_on('pkg-config', type='build')
+ depends_on('font-util', type='build')
def configure_args(self):
- args = ["--enable-libxml2", "--disable-docs"]
+ args = ["--prefix=%s" % prefix,
+ "--enable-libxml2",
+ "--disable-docs",
+ "--with-default-fonts=%s" %
+ spec['font-util'].prefix + "/share/fonts"]
return args