summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Keeshan <96727608+davekeeshan@users.noreply.github.com>2023-12-01 18:48:52 +0000
committerGitHub <noreply@github.com>2023-12-01 10:48:52 -0800
commita543fd79f1a614c72e423a355a6a792c6583c2e0 (patch)
tree7bb2a2a85967872e04ce998c9fad78724ab36154
parentab50aa61db858ca1d5c86da8a45e8eb499ad4d19 (diff)
downloadspack-a543fd79f1a614c72e423a355a6a792c6583c2e0.tar.gz
spack-a543fd79f1a614c72e423a355a6a792c6583c2e0.tar.bz2
spack-a543fd79f1a614c72e423a355a6a792c6583c2e0.tar.xz
spack-a543fd79f1a614c72e423a355a6a792c6583c2e0.zip
verible: add new package (#41270)
* Add initial version of verible to spack * Update to use explict url path for each release, as the release tagh includes extra data, also added the bottom most point of gcc, gcc9
-rw-r--r--var/spack/repos/builtin/packages/verible/package.py56
1 files changed, 56 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/verible/package.py b/var/spack/repos/builtin/packages/verible/package.py
new file mode 100644
index 0000000000..273610c707
--- /dev/null
+++ b/var/spack/repos/builtin/packages/verible/package.py
@@ -0,0 +1,56 @@
+# Copyright 2013-2023 Lawrence Livermore National Security, LLC and other
+# Spack Project Developers. See the top-level COPYRIGHT file for details.
+#
+# SPDX-License-Identifier: (Apache-2.0 OR MIT)
+
+from spack.package import *
+
+
+class Verible(Package):
+ """The Verible project’s main mission is to parse SystemVerilog
+ (IEEE 1800-2017) (as standardized in the [SV-LRM]) for a wide variety of
+ applications, including developer tools.
+
+ It was born out of a need to parse un-preprocessed source files, which is
+ suitable for single-file applications like style-linting and formatting.
+ In doing so, it can be adapted to parse preprocessed source files, which
+ is what real compilers and toolchains require.
+
+ The spirit of the project is that no-one should ever have to develop a
+ SystemVerilog parser for their own application, because developing a
+ standard-compliant parser is an enormous task due to the syntactic
+ complexity of the language. Verible’s parser is also regularly tested
+ against an ever-growing suite of (tool-independent) language compliance
+ tests at https://symbiflow.github.io/sv-tests/.
+
+ A lesser (but notable) objective is that the language-agnostic components
+ of Verible be usable for rapidly developing language support tools for
+ other languages."""
+
+ homepage = "https://chipsalliance.github.io/verible"
+ git = "https://github.com/chipsalliance/verible.git"
+
+ version("master", branch="master")
+
+ version(
+ "0.0.3430",
+ sha256="580ab39c82da9f67523658c0bb0859e2b6c662f7c06855859f476eeedd92a7e0",
+ url="https://github.com/chipsalliance/verible/archive/refs/tags/v0.0-3430-g060bde0f.tar.gz",
+ )
+ version(
+ "0.0.3428",
+ sha256="2b83497662b890f875bfe859175aa8e4b87db6e6a177ad08a0694002b8767cb0",
+ url="https://github.com/chipsalliance/verible/archive/refs/tags/v0.0-3428-gcfcbb82b.tar.gz",
+ )
+
+ maintainers("davekeeshan")
+
+ depends_on("flex", type="build")
+ depends_on("bison", type="build")
+ depends_on("bazel", type="build")
+
+ conflicts("%gcc@:8", msg="Only works with gcc9 and above")
+
+ def install(self, spec, prefix):
+ bazel("build", "-c", "opt", "//...")
+ bazel("run", "-c", "opt", ":install", "--", prefix.bin)