gnutls: add variant +brotli (#46814)
This commit is contained in:
parent
c9de1cbcda
commit
519684978b
@ -38,6 +38,9 @@ class Gnutls(AutotoolsPackage):
|
|||||||
|
|
||||||
variant("zlib", default=True, description="Enable zlib compression support")
|
variant("zlib", default=True, description="Enable zlib compression support")
|
||||||
variant("guile", default=False, description="Enable Guile bindings")
|
variant("guile", default=False, description="Enable Guile bindings")
|
||||||
|
variant(
|
||||||
|
"brotli", default=True, description="Enable brotli compression support", when="@3.7.4:"
|
||||||
|
)
|
||||||
|
|
||||||
# gnutls+guile is currently broken on MacOS. See Issue #11668
|
# gnutls+guile is currently broken on MacOS. See Issue #11668
|
||||||
conflicts("+guile", when="platform=darwin")
|
conflicts("+guile", when="platform=darwin")
|
||||||
@ -54,6 +57,7 @@ class Gnutls(AutotoolsPackage):
|
|||||||
depends_on("libidn2@:2.0", when="@:3.5")
|
depends_on("libidn2@:2.0", when="@:3.5")
|
||||||
depends_on("libidn2")
|
depends_on("libidn2")
|
||||||
depends_on("zlib-api", when="+zlib")
|
depends_on("zlib-api", when="+zlib")
|
||||||
|
depends_on("brotli", when="+brotli")
|
||||||
depends_on("gettext")
|
depends_on("gettext")
|
||||||
|
|
||||||
depends_on("pkgconfig", type="build")
|
depends_on("pkgconfig", type="build")
|
||||||
@ -79,15 +83,9 @@ def configure_args(self):
|
|||||||
args.append("--with-included-unistring")
|
args.append("--with-included-unistring")
|
||||||
args.append("--without-p11-kit") # p11-kit@0.23.1: ...
|
args.append("--without-p11-kit") # p11-kit@0.23.1: ...
|
||||||
|
|
||||||
if spec.satisfies("+zlib"):
|
args += self.with_or_without("zlib")
|
||||||
args.append("--with-zlib")
|
args += self.with_or_without("brotli")
|
||||||
else:
|
args += self.enable_or_disable("guile")
|
||||||
args.append("--without-zlib")
|
|
||||||
|
|
||||||
if spec.satisfies("+guile"):
|
|
||||||
args.append("--enable-guile")
|
|
||||||
else:
|
|
||||||
args.append("--disable-guile")
|
|
||||||
|
|
||||||
if self.run_tests:
|
if self.run_tests:
|
||||||
args.extend(["--enable-tests", "--enable-valgrind-tests", "--enable-full-test-suite"])
|
args.extend(["--enable-tests", "--enable-valgrind-tests", "--enable-full-test-suite"])
|
||||||
|
Loading…
Reference in New Issue
Block a user