Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions repos/spack_repo/builtin/packages/g2c/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ class G2c(CMakePackage):
maintainers("AlexanderRichert-NOAA", "Hang-Lei-NOAA", "edwardhartnett")

version("develop", branch="develop")
version("2.3.0", sha256="8520a24c066500cfd0d07a05c6b7b0cb92383d1a4737cf6e79d9f4919c8e79ab")
version("2.2.0", sha256="cf0ac8f75aed662ccc64f4c44fbe46a70307bc27cbe95417fdfb6caf75245457")
version("2.1.0", sha256="74e3ef381f0339dc181bc3afaa54c98f76257508375ff664d243d76825006605")
version("2.0.0", sha256="39c23bf1219c60101548c8525e3a879c84119558f768081779d404a8caf4cec9")
version("1.9.0", sha256="5554276e18bdcddf387a08c2dd23f9da310c6598905df6a2a244516c22ded9aa")
Expand Down
36 changes: 32 additions & 4 deletions repos/spack_repo/builtin/packages/wgrib2/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ class Wgrib2(MakefilePackage, CMakePackage):
)

version("develop", branch="develop")
version("3.8.0", sha256="39faebada36da5457c75f0980bb68fa299b221b3e6b335bb7d29006a35830c54")
version("3.7.0", sha256="b741a07710a8195c99a7d50de05bde90182ab4334f5c4a0d6d057c4e20cc6a75")
version("3.6.0", sha256="55913cb58f2b329759de17f5a84dd97ad1844d7a93956d245ec94f4264d802be")
version("3.5.0", sha256="b27b48228442a08bddc3d511d0c6335afca47252ae9f0e41ef6948f804afa3a1")
version("3.4.0", sha256="ecbce2209c09bd63f1bca824f58a60aa89db6762603bda7d7d3fa2148b4a0536")
Expand Down Expand Up @@ -150,6 +152,18 @@ def url_for_version(self, version):
description="Include NCEP g2clib (mainly for testing purposes)",
when="@:3.1",
)
variant(
"g2c_low",
default=True,
description="Include NCEP g2clib (png,jpeg2000)",
when="@3.7:",
)
variant(
"g2c_high",
default=False,
description="Include NCEP g2clib (add -g2clib 2)",
when="@3.7:",
)
variant(
"disable_timezone", default=False, description="Some machines do not support timezones"
)
Expand All @@ -158,8 +172,18 @@ def url_for_version(self, version):
default=False,
description="Some machines do not support the alarm to terminate wgrib2",
)
variant("png", default=True, description="PNG encoding")
variant("jasper", default=True, description="JPEG compression using Jasper")
variant(
"png",
default=True,
description="PNG encoding",
when="@:3.8"
)
variant(
"jasper",
default=True,
description="JPEG compression using Jasper",
when="@:3.8"
)
variant("openmp", default=True, description="OpenMP parallelization")
variant("wmo_validation", default=False, description="WMO validation")
# variant("shared", default=False, description="Enable shared library", when="+lib")
Expand All @@ -172,11 +196,15 @@ def url_for_version(self, version):
conflicts("+netcdf3", when="+netcdf4")
conflicts("+netcdf3", when="+netcdf")
conflicts("+openmp", when="%apple-clang")
conflicts("~g2c_low", when="+g2c_high")

depends_on("c", type="build")
depends_on("fortran", type="build")

depends_on("ip@5.1:", when="@3.5: +ipolates")
depends_on("ip", when="@3.4: +ipolates")
depends_on("ip@5.1:", when="@3.4:3.6 +ipolates")
depends_on("ip@5.2:", when="@3.7: +ipolates")
depends_on("ip@5.2:", when="@develop +ipolates")
depends_on("lapack", when="@3.5: +ipolates")
depends_on("libaec@1.0.6:", when="@3.2: +aec")
# Options to use netcdf3 or netcdf4 merged into a single option with v3.4.0
Expand Down Expand Up @@ -260,7 +288,7 @@ def setup_build_environment(self, env: EnvironmentModifications) -> None:
def build(self, pkg, spec, prefix):
make("-j1")

# Move wgrib2 executable to a tempoary directory
# Move wgrib2 executable to a temporary directory
mkdir("install")
mkdir(join_path("install", "bin"))
move(join_path("wgrib2", "wgrib2"), join_path("install", "bin"))
Expand Down
Loading