Add static-only option for udunits (#38099)
* Add static-only option for udunits * add maintainer to udunits
This commit is contained in:
parent
6c4f8e62ae
commit
cac7f9774a
@ -12,6 +12,8 @@ class Udunits(AutotoolsPackage):
|
|||||||
homepage = "https://www.unidata.ucar.edu/software/udunits"
|
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"
|
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.
|
# Unidata now only provides the latest version of each X.Y branch.
|
||||||
# Older 2.2 versions have been deprecated accordingly but are still
|
# Older 2.2 versions have been deprecated accordingly but are still
|
||||||
# available in the build cache.
|
# available in the build cache.
|
||||||
@ -34,6 +36,11 @@ class Udunits(AutotoolsPackage):
|
|||||||
|
|
||||||
depends_on("expat")
|
depends_on("expat")
|
||||||
|
|
||||||
|
variant("shared", default=True, description="Build shared library")
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def libs(self):
|
def libs(self):
|
||||||
return find_libraries(["libudunits2"], root=self.prefix, recursive=True, shared=True)
|
return find_libraries(["libudunits2"], root=self.prefix, recursive=True, shared=True)
|
||||||
|
|
||||||
|
def configure_args(self):
|
||||||
|
return self.enable_or_disable("shared")
|
||||||
|
Loading…
Reference in New Issue
Block a user