summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArne Becker <101113822+EbiArnie@users.noreply.github.com>2024-01-18 00:58:31 +0000
committerGitHub <noreply@github.com>2024-01-18 01:58:31 +0100
commit308761d5f99fb04e330b550c184ceb61225b37c3 (patch)
tree7c647b867136fe3a0dce4c9aec1d8428086ae360
parentded778004ead8c8f2cc7637ffc0e61820ef8f0ab (diff)
downloadspack-308761d5f99fb04e330b550c184ceb61225b37c3.tar.gz
spack-308761d5f99fb04e330b550c184ceb61225b37c3.tar.bz2
spack-308761d5f99fb04e330b550c184ceb61225b37c3.tar.xz
spack-308761d5f99fb04e330b550c184ceb61225b37c3.zip
unison: update to 2.53.3, deprecate old versions we can't build in spack (#41777)
- Use MakefilePackage and simplified package.py - Deprecate old versions - they did not build for me with OCaml 4.13.1 that is currently in Spack. Also, the changes from the previous versions seem to be quite significant.
-rw-r--r--var/spack/repos/builtin/packages/unison/package.py27
1 files changed, 18 insertions, 9 deletions
diff --git a/var/spack/repos/builtin/packages/unison/package.py b/var/spack/repos/builtin/packages/unison/package.py
index 7ec1641e68..5888b674ec 100644
--- a/var/spack/repos/builtin/packages/unison/package.py
+++ b/var/spack/repos/builtin/packages/unison/package.py
@@ -6,7 +6,7 @@
from spack.package import *
-class Unison(Package):
+class Unison(MakefilePackage):
"""Unison is a file-synchronization tool for OSX, Unix, and
Windows. It allows two replicas of a collection of files and
directories to be stored on different hosts (or different disks
@@ -20,19 +20,28 @@ class Unison(Package):
license("GPL-3.0-or-later")
- version("2.51.2", sha256="a2efcbeab651be6df69cc9b253011a07955ecb91fb407a219719451197849d5e")
- version("2.48.15v4", sha256="f8c7e982634bbe1ed6510fe5b36b6c5c55c06caefddafdd9edc08812305fdeec")
+ version("2.53.3", sha256="aaea04fc5bc76dcfe8627683c9659ee4c194d4f992cc8aaa15bbb2820fc8de46")
+ version(
+ "2.51.2",
+ sha256="a2efcbeab651be6df69cc9b253011a07955ecb91fb407a219719451197849d5e",
+ deprecated=True,
+ )
+ version(
+ "2.48.15v4",
+ sha256="f8c7e982634bbe1ed6510fe5b36b6c5c55c06caefddafdd9edc08812305fdeec",
+ deprecated=True,
+ )
- depends_on("ocaml@4.10.0:~force-safe-string", type="build")
+ depends_on("ocaml@4.10.0:~force-safe-string", type=("build", "link"))
- patch("large.patch", level=0)
- patch("4.08-compatibility.patch", when="^ocaml@4.08:")
+ with when("@:2.51.2"):
+ patch("large.patch", level=0)
+ patch("4.08-compatibility.patch", when="^ocaml@4.08:")
parallel = False
- def install(self, spec, prefix):
- make("UISTYLE=text DEBUGGING=false THREADS=true")
+ build_targets = ["UISTYLE=text", "DEBUGGING=false", "THREADS=true"]
+ def install(self, spec, prefix):
mkdirp(prefix.bin)
install("src/unison", prefix.bin)
- set_executable(join_path(prefix.bin, "unison"))