Support static case for find_libraries() in xz (#38100)

* Update xz

* add maintainer to xz

* [@spackbot] updating style on behalf of AlexanderRichert-NOAA
This commit is contained in:
Alex Richert 2023-09-13 22:34:11 -04:00 committed by GitHub
parent af7b4c5a2f
commit e5d227e73d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -22,6 +22,8 @@ class Xz(MSBuildPackage, AutotoolsPackage, SourceforgePackage):
sourceforge_mirror_path = "lzmautils/files/xz-5.2.5.tar.bz2" sourceforge_mirror_path = "lzmautils/files/xz-5.2.5.tar.bz2"
list_url = "https://tukaani.org/xz/old.html" list_url = "https://tukaani.org/xz/old.html"
maintainers("AlexanderRichert-NOAA")
executables = [r"^xz$"] executables = [r"^xz$"]
version("5.4.1", sha256="dd172acb53867a68012f94c17389401b2f274a1aa5ae8f84cbfb8b7e383ea8d3") version("5.4.1", sha256="dd172acb53867a68012f94c17389401b2f274a1aa5ae8f84cbfb8b7e383ea8d3")
@ -61,7 +63,12 @@ def flag_handler(self, name, flags):
@property @property
def libs(self): def libs(self):
return find_libraries(["liblzma"], root=self.prefix, recursive=True) return find_libraries(
["liblzma"],
root=self.prefix,
recursive=True,
shared=self.spec.satisfies("libs=shared"),
)
@classmethod @classmethod
def determine_version(cls, exe): def determine_version(cls, exe):