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
This commit is contained in:
Dave Keeshan 2023-12-01 18:48:52 +00:00 committed by GitHub
parent ab50aa61db
commit a543fd79f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 projects 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. Veribles 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)