diff options
author | iarspider <iarspider@gmail.com> | 2022-12-01 17:11:14 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-01 09:11:14 -0700 |
commit | 8420c610fa593699731a3a4b957a00f9baaeba0d (patch) | |
tree | ab3113a91203e44f864b81be53340f1ec7e7db32 | |
parent | b139cab687c9fcb1dc11b39f5bb2ec91b76c3dbc (diff) | |
download | spack-8420c610fa593699731a3a4b957a00f9baaeba0d.tar.gz spack-8420c610fa593699731a3a4b957a00f9baaeba0d.tar.bz2 spack-8420c610fa593699731a3a4b957a00f9baaeba0d.tar.xz spack-8420c610fa593699731a3a4b957a00f9baaeba0d.zip |
gnuplot: make readline optional (#34179)
* gnuplot: make readline optional
* Update package.py
Co-authored-by: iarspider <iarspider@users.noreply.github.com>
-rw-r--r-- | var/spack/repos/builtin/packages/gnuplot/package.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/var/spack/repos/builtin/packages/gnuplot/package.py b/var/spack/repos/builtin/packages/gnuplot/package.py index 6a2175c6a9..9dbc40905e 100644 --- a/var/spack/repos/builtin/packages/gnuplot/package.py +++ b/var/spack/repos/builtin/packages/gnuplot/package.py @@ -51,9 +51,10 @@ class Gnuplot(AutotoolsPackage): description="Enable PBM (Portable Bit Map) and other older bitmap terminals", ) variant("qt", default=False, description="Build with QT") + variant("readline", default=True, description="Build with readline") # required dependencies - depends_on("readline") + depends_on("readline", when="+readline") depends_on("pkgconfig", type="build") depends_on("libxpm") depends_on("iconv") @@ -79,9 +80,10 @@ class Gnuplot(AutotoolsPackage): "--disable-silent-rules", # Per upstream: "--with-tutorial is horribly out of date." "--without-tutorial", - "--with-readline=%s" % spec["readline"].prefix, ] + options += self.with_or_without("readline", "prefix") + if "+pbm" in spec: options.append("--with-bitmap-terminals") else: |