diff options
-rw-r--r-- | var/spack/repos/builtin/packages/quickjs/package.py | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/quickjs/package.py b/var/spack/repos/builtin/packages/quickjs/package.py new file mode 100644 index 0000000000..b690950952 --- /dev/null +++ b/var/spack/repos/builtin/packages/quickjs/package.py @@ -0,0 +1,31 @@ +# 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 Quickjs(MakefilePackage): + """QuickJS is a small and embeddable Javascript engine.""" + + homepage = "https://bellard.org/quickjs/" + git = "https://github.com/bellard/quickjs.git" + url = "https://bellard.org/quickjs/quickjs-2021-03-27.tar.xz" + + version("master", branch="master") + version( + "2021-03-27", sha256="a45bface4c3379538dea8533878d694e289330488ea7028b105f72572fe7fe1a" + ) + version( + "2020-11-08", sha256="2e9d63dab390a95ed365238f21d8e9069187f7ed195782027f0ab311bb64187b" + ) + version( + "2020-09-06", sha256="0021a3e8cdc6b61e225411d05e2841d2437e1ccf4b4cabb9a5f7685ebfb57717" + ) + + def edit(self, spec, prefix): + makefile = FileFilter("Makefile") + makefile.filter("prefix=/usr/local", "prefix={}".format(prefix)) + makefile.filter("lib/quickjs", "lib") |