From 18efd808da878a137a05bb1e2633b67458577b06 Mon Sep 17 00:00:00 2001 From: Alec Scott Date: Tue, 28 Nov 2023 01:33:46 -0800 Subject: GoPackage: add new build system for Go packages (#41164) Co-authored-by: Tom Scogland Co-authored-by: Wouter Deconinck Co-authored-by: Massimiliano Culpo --- .../repos/builtin/packages/lazygit/package.py | 20 ++++++++++++++++++++ var/spack/repos/builtin/packages/scc/package.py | 22 ++++++++++++++++++++++ 2 files changed, 42 insertions(+) create mode 100644 var/spack/repos/builtin/packages/lazygit/package.py create mode 100644 var/spack/repos/builtin/packages/scc/package.py (limited to 'var') diff --git a/var/spack/repos/builtin/packages/lazygit/package.py b/var/spack/repos/builtin/packages/lazygit/package.py new file mode 100644 index 0000000000..81395262bf --- /dev/null +++ b/var/spack/repos/builtin/packages/lazygit/package.py @@ -0,0 +1,20 @@ +# 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 Lazygit(GoPackage): + """A simple terminal UI for git commands""" + + homepage = "https://github.com/jesseduffield/lazygit" + url = "https://github.com/jesseduffield/lazygit/archive/refs/tags/v0.40.2.tar.gz" + + maintainers("twrs") + + license("MIT") + + version("0.40.2", sha256="146bd63995fcf2f2373bbc2143b3565b7a2be49a1d4e385496265ac0f69e4128") diff --git a/var/spack/repos/builtin/packages/scc/package.py b/var/spack/repos/builtin/packages/scc/package.py new file mode 100644 index 0000000000..b0eae1b3c8 --- /dev/null +++ b/var/spack/repos/builtin/packages/scc/package.py @@ -0,0 +1,22 @@ +# 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 Scc(GoPackage): + """ + Sloc, Cloc and Code: scc is a very fast accurate code counter with + complexity calculations and COCOMO estimates written in pure Go. + """ + + homepage = "https://github.com/boyter/scc" + url = "https://github.com/boyter/scc/archive/refs/tags/v3.1.0.tar.gz" + git = "https://github.com/boyter/scc.git" + + license("MIT") + + version("3.1.0", sha256="bffea99c7f178bc48bfba3c64397d53a20a751dfc78221d347aabdce3422fd20") -- cgit v1.2.3-60-g2f50