Add static-only option for udunits (#38099)

* Add static-only option for udunits

* add maintainer to udunits
This commit is contained in:
Alex Richert 2023-09-13 18:58:55 -04:00 committed by GitHub
parent 6c4f8e62ae
commit cac7f9774a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -12,6 +12,8 @@ class Udunits(AutotoolsPackage):
homepage = "https://www.unidata.ucar.edu/software/udunits"
url = "https://artifacts.unidata.ucar.edu/repository/downloads-udunits/2.2.28/udunits-2.2.28.tar.gz"
maintainers("AlexanderRichert-NOAA")
# Unidata now only provides the latest version of each X.Y branch.
# Older 2.2 versions have been deprecated accordingly but are still
# available in the build cache.
@ -34,6 +36,11 @@ class Udunits(AutotoolsPackage):
depends_on("expat")
variant("shared", default=True, description="Build shared library")
@property
def libs(self):
return find_libraries(["libudunits2"], root=self.prefix, recursive=True, shared=True)
def configure_args(self):
return self.enable_or_disable("shared")