diff options
author | Brian Vanderwende <vanderwb@ucar.edu> | 2023-09-18 13:40:22 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-18 12:40:22 -0700 |
commit | 4d8f9ff3e8e4a36c1731b74ed189933096f5e2d4 (patch) | |
tree | 88ee63e151c01b3394a484195b788dde29d88f55 /var | |
parent | 60ce6c7302cb0531ce8a6cdd8e0fb60937dfe31a (diff) | |
download | spack-4d8f9ff3e8e4a36c1731b74ed189933096f5e2d4.tar.gz spack-4d8f9ff3e8e4a36c1731b74ed189933096f5e2d4.tar.bz2 spack-4d8f9ff3e8e4a36c1731b74ed189933096f5e2d4.tar.xz spack-4d8f9ff3e8e4a36c1731b74ed189933096f5e2d4.zip |
xxdiff: add new package (#40021)
* Add new package xxdiff
* style fixes
* Versioning updates to match best practices
* Full hash and flex, bison as build deps
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/xxdiff/package.py | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/xxdiff/package.py b/var/spack/repos/builtin/packages/xxdiff/package.py new file mode 100644 index 0000000000..f0b2705b29 --- /dev/null +++ b/var/spack/repos/builtin/packages/xxdiff/package.py @@ -0,0 +1,35 @@ +# 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 Xxdiff(MakefilePackage): + """Graphical File And Directories Comparator And Merge Tool.""" + + homepage = "https://furius.ca/xxdiff/" + git = "https://github.com/blais/xxdiff.git" + + maintainers("vanderwb") + + version("master", branch="master") + version("2023-01-10", commit="604300ea9875611726ba885fb14f872b964df579") + + depends_on("flex@2.5.31:", type="build") + depends_on("bison", type="build") + depends_on("qt@5:", type=("build", "link", "run")) + + def edit(self, spec, prefix): + env["QMAKE"] = "qmake" + + def build(self, spec, prefix): + with working_dir("src"): + # Create the makefile + make("-f", "Makefile.bootstrap") + make() + + def install(self, spec, prefix): + mkdir(prefix.bin) + install("bin/xxdiff", prefix.bin) |