file: zstd support (#35041)

This commit is contained in:
Harmen Stoppels 2023-01-20 09:54:19 +01:00 committed by GitHub
parent 8f8394a829
commit 2a55a9ef80
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -31,8 +31,9 @@ class File(AutotoolsPackage):
variant("static", default=True, description="Also build static libraries")
depends_on("bzip2")
depends_on("xz")
depends_on("xz", when="@5.38:")
depends_on("zlib")
depends_on("zstd", when="@5.44:")
@classmethod
def determine_version(cls, exe):
@ -47,6 +48,8 @@ def configure_args(self):
"--enable-zlib",
"--enable-bzlib",
"--enable-xzlib",
"--enable-zstdlib",
"--disable-lzlib",
]
args += self.enable_or_disable("static")
return args