From 6a1b0331a9861bfe307fe1c471bf70690a522bd6 Mon Sep 17 00:00:00 2001 From: Bambi Date: Fri, 4 Mar 2022 11:42:01 +0100 Subject: [PATCH] kakoune: add new package (#29148) --- .../repos/builtin/packages/kakoune/package.py | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 var/spack/repos/builtin/packages/kakoune/package.py diff --git a/var/spack/repos/builtin/packages/kakoune/package.py b/var/spack/repos/builtin/packages/kakoune/package.py new file mode 100644 index 0000000000..ef406214f4 --- /dev/null +++ b/var/spack/repos/builtin/packages/kakoune/package.py @@ -0,0 +1,26 @@ +# 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) + +from spack import * + + +class Kakoune(MakefilePackage): + """mawww's experiment for a better code editor.""" + + homepage = "https://www.kakoune.org" + url = "https://github.com/mawww/kakoune/releases/download/v2021.11.08/kakoune-2021.11.08.tar.bz2" + + maintainers = ['Bambi'] + + version('2021.11.08', sha256='aa30889d9da11331a243a8f40fe4f6a8619321b19217debac8f565e06eddb5f4') + + depends_on('ncurses') + + conflicts('%gcc@:8', when='@2021.11.08', msg='GCC version must be at least 9.0!') + + build_targets = ['all', 'man'] + + def edit(self, spec, prefix): + env['PREFIX'] = prefix