summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlec Scott <hi@alecbcs.com>2024-02-28 12:32:40 -0800
committerGitHub <noreply@github.com>2024-02-28 12:32:40 -0800
commit17bfc418415cbe4f69fd772b61b89ce7370d2b81 (patch)
treebfdfbec7c20a1379a2ef778a3d572e23b6cd196c
parent49b38e3a78930a44826f561c2f37b501aee50bad (diff)
downloadspack-17bfc418415cbe4f69fd772b61b89ce7370d2b81.tar.gz
spack-17bfc418415cbe4f69fd772b61b89ce7370d2b81.tar.bz2
spack-17bfc418415cbe4f69fd772b61b89ce7370d2b81.tar.xz
spack-17bfc418415cbe4f69fd772b61b89ce7370d2b81.zip
bison: remove unnessisary deps, add variant for colored output (#42209)
-rw-r--r--var/spack/repos/builtin/packages/bison/package.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/var/spack/repos/builtin/packages/bison/package.py b/var/spack/repos/builtin/packages/bison/package.py
index 838dd47a3f..709e890567 100644
--- a/var/spack/repos/builtin/packages/bison/package.py
+++ b/var/spack/repos/builtin/packages/bison/package.py
@@ -50,15 +50,15 @@ class Bison(AutotoolsPackage, GNUMirrorPackage):
version("3.0.4", sha256="b67fd2daae7a64b5ba862c66c07c1addb9e6b1b05c5f2049392cfd8a2172952e")
version("2.7", sha256="19bbe7374fd602f7a6654c131c21a15aebdc06cc89493e8ff250cb7f9ed0a831")
+ variant("color", default=False, description="Enable experimental colored output", when="@3.4:")
+
# https://lists.gnu.org/archive/html/bug-bison/2019-08/msg00008.html
patch("parallel.patch", when="@3.4.2")
provides("yacc")
- depends_on("gettext", when="@3.4:")
- depends_on("diffutils", type="build")
- depends_on("m4", type=("build", "run"))
- depends_on("perl", type="build")
+ depends_on("gettext", when="+color")
+ depends_on("m4@1.4.6:", type=("build", "run"))
patch("pgi.patch", when="@3.0.4")
# The NVIDIA compilers do not currently support some GNU builtins.