gtk-doc: rebuild

* gtk-doc: migrate to python@3.11
* gtk-doc: update resources and dependencies

Closes #119006.

Co-authored-by: Michael Cho <cho-m@tuta.io>
Signed-off-by: Branch Vincent <19800529+branchvincent@users.noreply.github.com>
Signed-off-by: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com>
master
ryenus 2022-12-26 14:52:22 +08:00 committed by BrewTestBot
parent d98b1e6335
commit b6fa0cb2f1
No known key found for this signature in database
GPG Key ID: 82D7D104050B0F0F
1 changed files with 8 additions and 11 deletions

View File

@ -32,7 +32,9 @@ class GtkDoc < Formula
depends_on "docbook"
depends_on "docbook-xsl"
depends_on "libxml2"
depends_on "python@3.10"
depends_on "pygments"
depends_on "python@3.11"
depends_on "six" # for anytree
uses_from_macos "libxslt"
@ -42,25 +44,20 @@ class GtkDoc < Formula
end
resource "lxml" do
url "https://files.pythonhosted.org/packages/e5/21/a2e4517e3d216f0051687eea3d3317557bde68736f038a3b105ac3809247/lxml-4.6.3.tar.gz"
sha256 "39b78571b3b30645ac77b95f7c69d1bffc4cf8c3b157c435a34da72e78c82468"
end
resource "Pygments" do
url "https://files.pythonhosted.org/packages/ba/6e/7a7c13c21d8a4a7f82ccbfe257a045890d4dbf18c023f985f565f97393e3/Pygments-2.9.0.tar.gz"
sha256 "a18f47b506a429f6f4b9df81bb02beab9ca21d0a5fee38ed15aef65f0545519f"
url "https://files.pythonhosted.org/packages/06/5a/e11cad7b79f2cf3dd2ff8f81fa8ca667e7591d3d8451768589996b65dec1/lxml-4.9.2.tar.gz"
sha256 "2455cfaeb7ac70338b3257f41e21f0724f4b5b0c0e7702da67ee6c3640835b67"
end
def install
# To avoid recording pkg-config shims path
ENV.prepend_path "PATH", Formula["pkg-config"].bin
venv = virtualenv_create(libexec, "python3.10")
venv = virtualenv_create(libexec, "python3.11")
venv.pip_install resources
ENV.prepend_path "PATH", libexec/"bin"
system "meson", *std_meson_args, "build", "-Dtests=false", "-Dyelp_manual=false"
system "meson", "compile", "-C", "build", "-v"
system "meson", "setup", "build", *std_meson_args, "-Dtests=false", "-Dyelp_manual=false"
system "meson", "compile", "-C", "build", "--verbose"
system "meson", "install", "-C", "build"
end