From 8296788730cb0c95c278d6f68b469fef2dc49b9c Mon Sep 17 00:00:00 2001 From: Daniele Colombo <68348680+dacolombo@users.noreply.github.com> Date: Thu, 3 Apr 2025 19:15:10 +0200 Subject: [PATCH] deconwolf: new package (#49801) * deconwolf: add new package * fix deconwolf patch: add full_index=1 * deconwolf: fix spack license string * deconwolf: add commit to version Co-authored-by: Alec Scott * deconwolf: use url before git Co-authored-by: Alec Scott --------- Co-authored-by: Alec Scott --- .../builtin/packages/deconwolf/package.py | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 var/spack/repos/builtin/packages/deconwolf/package.py diff --git a/var/spack/repos/builtin/packages/deconwolf/package.py b/var/spack/repos/builtin/packages/deconwolf/package.py new file mode 100644 index 00000000000..b1c5050580c --- /dev/null +++ b/var/spack/repos/builtin/packages/deconwolf/package.py @@ -0,0 +1,33 @@ +# Copyright Spack Project Developers. See COPYRIGHT file for details. +# +# SPDX-License-Identifier: (Apache-2.0 OR MIT) + + +from spack.package import * + + +class Deconwolf(CMakePackage): + """deconwolf is a software for 3-D deconvolution of fluorescent wide-field images.""" + + homepage = "https://deconwolf.fht.org/" + url = "https://github.com/elgw/deconwolf/archive/refs/tags/v0.4.5.tar.gz" + git = "https://github.com/elgw/deconwolf.git" + + maintainers("dacolombo") + + license("GPL-3.0-only") + + version("0.4.5", tag="v0.4.5", commit="ca062c49eedd6bf60fcd9804df467e64cfc3c113") + + patch( + "https://github.com/elgw/deconwolf/commit/c5f28dd3d6ef532b6963127e551da1d7b4f33f83.patch?full_index=1", + sha256="d67096f7d2c7ddc764884e3cb09b0a6bbbca7eca5253512e73bc8d7eff89a1fc", + when="@0.4.5", + ) + + depends_on("cmake@3.22:") + depends_on("fftw@3") + depends_on("libtiff") + depends_on("gsl") + depends_on("libpng@1.6:") + depends_on("opencl")