Support static case for find_libraries() in xz (#38100)
* Update xz * add maintainer to xz * [@spackbot] updating style on behalf of AlexanderRichert-NOAApull/38831/head^2
parent
af7b4c5a2f
commit
e5d227e73d
|
@ -22,6 +22,8 @@ class Xz(MSBuildPackage, AutotoolsPackage, SourceforgePackage):
|
|||
sourceforge_mirror_path = "lzmautils/files/xz-5.2.5.tar.bz2"
|
||||
list_url = "https://tukaani.org/xz/old.html"
|
||||
|
||||
maintainers("AlexanderRichert-NOAA")
|
||||
|
||||
executables = [r"^xz$"]
|
||||
|
||||
version("5.4.1", sha256="dd172acb53867a68012f94c17389401b2f274a1aa5ae8f84cbfb8b7e383ea8d3")
|
||||
|
@ -61,7 +63,12 @@ class Xz(MSBuildPackage, AutotoolsPackage, SourceforgePackage):
|
|||
|
||||
@property
|
||||
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
|
||||
def determine_version(cls, exe):
|
||||
|
|
Loading…
Reference in New Issue