Update grib-util package.py (#40120)
This commit is contained in:
		| @@ -13,9 +13,11 @@ class GribUtil(CMakePackage): | ||||
| 
 | ||||
|     homepage = "https://github.com/NOAA-EMC/NCEPLIBS-grib_util" | ||||
|     url = "https://github.com/NOAA-EMC/NCEPLIBS-grib_util/archive/refs/tags/v1.2.3.tar.gz" | ||||
|     git = "https://github.com/NOAA-EMC/NCEPLIBS-grib_util" | ||||
| 
 | ||||
|     maintainers("AlexanderRichert-NOAA", "Hang-Lei-NOAA", "edwardhartnett") | ||||
| 
 | ||||
|     version("develop", branch="develop") | ||||
|     version("1.2.4", sha256="f021d6df3186890b0b1781616dabf953581d71db63e7c2913360336985ccaec7") | ||||
|     version("1.2.3", sha256="b17b08e12360bb8ad01298e615f1b4198e304b0443b6db35fe990a817e648ad5") | ||||
| 
 | ||||
| @@ -24,13 +26,22 @@ class GribUtil(CMakePackage): | ||||
|     depends_on("jasper") | ||||
|     depends_on("libpng") | ||||
|     depends_on("zlib-api") | ||||
|     depends_on("w3emc", when="@1.2.4:") | ||||
|     depends_on("w3emc +extradeps", when="@1.2.4:") | ||||
|     depends_on("w3emc precision=4,d", when="^w3emc@2.10:") | ||||
|     depends_on("w3nco", when="@:1.2.3") | ||||
|     depends_on("g2") | ||||
|     depends_on("bacio") | ||||
|     depends_on("ip@:3.3.3") | ||||
|     depends_on("ip") | ||||
|     depends_on("ip@:3.3.3", when="@:1.2.4") | ||||
|     depends_on("sp") | ||||
| 
 | ||||
|     def cmake_args(self): | ||||
|         args = [self.define_from_variant("OPENMP", "openmp")] | ||||
|         args = [ | ||||
|             self.define_from_variant("OPENMP", "openmp"), | ||||
|             self.define("BUILD_TESTING", self.run_tests), | ||||
|         ] | ||||
|         return args | ||||
| 
 | ||||
|     def check(self): | ||||
|         with working_dir(self.builder.build_directory): | ||||
|             make("test") | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Alex Richert
					Alex Richert