summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMassimiliano Culpo <massimiliano.culpo@gmail.com>2021-03-03 13:30:41 +0100
committerGitHub <noreply@github.com>2021-03-03 13:30:41 +0100
commit796588b2fd2a2dbf788e91bce9a1d247e001b061 (patch)
tree01acd89706763602c5bc9036e9da3acde93c41c7
parent25fb753cd2f69d06b12d8e4949c29d9de3dd321a (diff)
downloadspack-796588b2fd2a2dbf788e91bce9a1d247e001b061.tar.gz
spack-796588b2fd2a2dbf788e91bce9a1d247e001b061.tar.bz2
spack-796588b2fd2a2dbf788e91bce9a1d247e001b061.tar.xz
spack-796588b2fd2a2dbf788e91bce9a1d247e001b061.zip
zig: add new package at v0.7.1 (#22046)
-rw-r--r--etc/spack/defaults/packages.yaml1
-rw-r--r--var/spack/repos/builtin/packages/zig/package.py22
2 files changed, 23 insertions, 0 deletions
diff --git a/etc/spack/defaults/packages.yaml b/etc/spack/defaults/packages.yaml
index bf9148315b..77cbe57ffa 100644
--- a/etc/spack/defaults/packages.yaml
+++ b/etc/spack/defaults/packages.yaml
@@ -50,6 +50,7 @@ packages:
yacc: [bison, byacc]
flame: [libflame, amdlibflame]
uuid: [util-linux-uuid, libuuid]
+ ziglang: [zig]
permissions:
read: world
write: user
diff --git a/var/spack/repos/builtin/packages/zig/package.py b/var/spack/repos/builtin/packages/zig/package.py
new file mode 100644
index 0000000000..c29f71ba28
--- /dev/null
+++ b/var/spack/repos/builtin/packages/zig/package.py
@@ -0,0 +1,22 @@
+# Copyright 2013-2021 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)
+class Zig(CMakePackage):
+ """A general-purpose programming language and toolchain for maintaining
+ robust, optimal, and reusable software.
+ """
+
+ homepage = "https://ziglang.org/"
+ git = "https://github.com/ziglang/zig.git"
+
+ version('0.7.1', tag='0.7.1')
+
+ variant(
+ 'build_type', values=('Release', 'RelWithDebInfo', 'MinSizeRel'),
+ default='Release', description='CMake build type'
+ )
+
+ depends_on('llvm@11.0.0: +all_targets')
+
+ provides('ziglang')