bison: remove unnessisary deps, add variant for colored output (#42209)

This commit is contained in:
Alec Scott 2024-02-28 12:32:40 -08:00 committed by GitHub
parent 49b38e3a78
commit 17bfc41841
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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.