libcroco does not respect gtk-doc configure flag, so removing variant (#32890)

* libcroco does not respect gtk-doc configure flag, so removing variant
This commit is contained in:
Gregory Lee 2022-10-13 11:51:28 -07:00 committed by GitHub
parent 8ce1574e0c
commit feb1f3aadb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -15,16 +15,18 @@ class Libcroco(AutotoolsPackage):
version("0.6.13", sha256="767ec234ae7aa684695b3a735548224888132e063f92db585759b422570621d4")
version("0.6.12", sha256="ddc4b5546c9fb4280a5017e2707fbd4839034ed1aba5b7d4372212f34f84f860")
variant("doc", default=False, description="Build documentation with gtk-doc")
# libcroco has a --enable-gtk-doc configure flag that appears to be
# ignored as of version 0.6.13. Until that flag is honored, the +doc
# variant is a no-op
# variant("doc", default=False,
# description="Build documentation with gtk-doc")
depends_on("glib")
depends_on("libxml2")
depends_on("gtk-doc", type="build", when="+doc")
depends_on("gtk-doc", type="build")
depends_on("pkgconfig", type="build")
def configure_args(self):
args = ["--enable-gtk-doc=" + ("yes" if self.spec.variants["doc"].value else "no")]
# macOS ld does not support this flag
# https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/libcroco.rb
args.append("--disable-Bsymbolic")
return args
return ["--disable-Bsymbolic"]