casacore-measures: new package, fix wget dependency (#46125)
Co-authored-by: Bernhard Kaindl <bernhard.kaindl@cloud.com>
This commit is contained in:
parent
ff4e311e72
commit
f49b10ee43
@ -0,0 +1,29 @@
|
|||||||
|
# Copyright 2013-2024 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 CasacoreMeasures(Package):
|
||||||
|
"""Install casacore measures tables, and a tool to maintain them."""
|
||||||
|
|
||||||
|
homepage = "https://gitlab.com/dsa-2000/rcp/casacore-measures"
|
||||||
|
url = "https://gitlab.com/dsa-2000/rcp/casacore-measures/-/archive/v1.0.0/casacore-measures-v1.0.0.tar.gz"
|
||||||
|
git = "https://gitlab.com/dsa-2000/rcp/casacore-measures.git"
|
||||||
|
|
||||||
|
maintainers("mpokorny")
|
||||||
|
|
||||||
|
license("AGPL-3.0-or-later", checked_by="mpokorny")
|
||||||
|
|
||||||
|
version("main", branch="main")
|
||||||
|
version("1.0.0", sha256="2bcd891bc0bd67749d93ec5b0fe92d8c1cbb73253465dd0410a3ab5493b3cee5")
|
||||||
|
|
||||||
|
depends_on("wget", type=("build", "run"))
|
||||||
|
|
||||||
|
def install(self, spec, prefix):
|
||||||
|
mkdirp(self.prefix.bin)
|
||||||
|
install("bin/update_measures", self.prefix.bin)
|
||||||
|
mkdirp(self.prefix.share.data)
|
||||||
|
update = Executable(self.prefix.bin.update_measures)
|
||||||
|
update()
|
@ -40,6 +40,8 @@ class Wget(AutotoolsPackage, GNUMirrorPackage):
|
|||||||
|
|
||||||
depends_on("gnutls", when="ssl=gnutls")
|
depends_on("gnutls", when="ssl=gnutls")
|
||||||
depends_on("openssl", when="ssl=openssl")
|
depends_on("openssl", when="ssl=openssl")
|
||||||
|
# OpenSSL 3.0 is not supported by wget, openssl@3.1: works:
|
||||||
|
conflicts("openssl@3.0", when="ssl=openssl")
|
||||||
|
|
||||||
depends_on("gettext", type="build")
|
depends_on("gettext", type="build")
|
||||||
depends_on("python@3:", type="build", when="+python")
|
depends_on("python@3:", type="build", when="+python")
|
||||||
|
Loading…
Reference in New Issue
Block a user