diff options
author | Alex Richert <82525672+AlexanderRichert-NOAA@users.noreply.github.com> | 2023-09-13 18:58:55 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-13 15:58:55 -0700 |
commit | cac7f9774a8d6ea78777f75370dfcf8db0466a41 (patch) | |
tree | 3c1775e999dda3348ba500c8a02234701fc3b23a /var | |
parent | 6c4f8e62aeef70e6d4196b0c94b842e35d2886e5 (diff) | |
download | spack-cac7f9774a8d6ea78777f75370dfcf8db0466a41.tar.gz spack-cac7f9774a8d6ea78777f75370dfcf8db0466a41.tar.bz2 spack-cac7f9774a8d6ea78777f75370dfcf8db0466a41.tar.xz spack-cac7f9774a8d6ea78777f75370dfcf8db0466a41.zip |
Add static-only option for udunits (#38099)
* Add static-only option for udunits
* add maintainer to udunits
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/udunits/package.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/udunits/package.py b/var/spack/repos/builtin/packages/udunits/package.py index 3b7b2fb840..7c503328f9 100644 --- a/var/spack/repos/builtin/packages/udunits/package.py +++ b/var/spack/repos/builtin/packages/udunits/package.py @@ -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") |