summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorMatthieu Dorier <mdorier@anl.gov>2023-07-21 14:50:10 -0500
committerGitHub <noreply@github.com>2023-07-21 12:50:10 -0700
commitc5c75e8921c3861c007dc97e9dc26eb4d70ee721 (patch)
tree5f367117f885d8614e45d88441f9b3ec9011c740 /var
parent9c5ae722b2c4c4881bd374bf6fadaa5af658312b (diff)
downloadspack-c5c75e8921c3861c007dc97e9dc26eb4d70ee721.tar.gz
spack-c5c75e8921c3861c007dc97e9dc26eb4d70ee721.tar.bz2
spack-c5c75e8921c3861c007dc97e9dc26eb4d70ee721.tar.xz
spack-c5c75e8921c3861c007dc97e9dc26eb4d70ee721.zip
quickjs: add quickjs package (#39041)
* added quickjs package * edited style of quickjs package
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/quickjs/package.py31
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")