diff options
Diffstat (limited to 'var/spack/repos/builtin/packages/verilator/package.py')
-rw-r--r-- | var/spack/repos/builtin/packages/verilator/package.py | 40 |
1 files changed, 23 insertions, 17 deletions
diff --git a/var/spack/repos/builtin/packages/verilator/package.py b/var/spack/repos/builtin/packages/verilator/package.py index e810e93ba4..67b6d0d8d3 100644 --- a/var/spack/repos/builtin/packages/verilator/package.py +++ b/var/spack/repos/builtin/packages/verilator/package.py @@ -33,32 +33,38 @@ class Verilator(AutotoolsPackage): designs with thousands of modules.""" homepage = "https://www.veripool.org/projects/verilator" - url = "https://www.veripool.org/ftp/verilator-3.920.tgz" + url = "https://www.veripool.org/ftp/verilator-3.920.tgz" - version('4.108', sha256='8e8ec1de0bf200b6206035214f9071a5acc64bd2e7134361d564271e48552702') - version('4.020', sha256='abd79fc2a54cab9da33dfccd669bda3baa71e79060abec17517f0b7374dbc31a') - version('3.920', sha256='2b5c38aa432d0766a38475219f9548d64d18104ce8bdcb5d29e42f5da06943ff') - version('3.904', sha256='ea95e08b2d70682ad42e6c2f5ba99f59b2e7b220791214076099cdf6b7a8c1cb') + version("4.108", sha256="8e8ec1de0bf200b6206035214f9071a5acc64bd2e7134361d564271e48552702") + version("4.020", sha256="abd79fc2a54cab9da33dfccd669bda3baa71e79060abec17517f0b7374dbc31a") + version("3.920", sha256="2b5c38aa432d0766a38475219f9548d64d18104ce8bdcb5d29e42f5da06943ff") + version("3.904", sha256="ea95e08b2d70682ad42e6c2f5ba99f59b2e7b220791214076099cdf6b7a8c1cb") - depends_on('bison', type='build') - depends_on('flex') - depends_on('perl', type=('build', 'run')) + depends_on("bison", type="build") + depends_on("flex") + depends_on("perl", type=("build", "run")) def setup_run_environment(self, env): - env.prepend_path('VERILATOR_ROOT', self.prefix) + env.prepend_path("VERILATOR_ROOT", self.prefix) # verilator requires access to its shipped scripts (bin) and include # but the standard make doesn't put it in the correct places - @run_before('install') + @run_before("install") def install_include(self): - install_tree('include', prefix.include) - install_tree('bin', prefix.bin) + install_tree("include", prefix.include) + install_tree("bin", prefix.bin) # we need to fix the CXX and LINK paths, as they point to the spack # wrapper scripts which aren't usable without spack - @run_after('install') + @run_after("install") def patch_cxx(self): - filter_file(r'^CXX\s*=.*', 'CXX = {0}'.format(self.compiler.cxx), - join_path(self.prefix.include, 'verilated.mk')) - filter_file(r'^LINK\s*=.*', 'LINK = {0}'.format(self.compiler.cxx), - join_path(self.prefix.include, 'verilated.mk')) + filter_file( + r"^CXX\s*=.*", + "CXX = {0}".format(self.compiler.cxx), + join_path(self.prefix.include, "verilated.mk"), + ) + filter_file( + r"^LINK\s*=.*", + "LINK = {0}".format(self.compiler.cxx), + join_path(self.prefix.include, "verilated.mk"), + ) |