gtk-doc: install Pygments
Closes #39669. Signed-off-by: FX Coudert <fxcoudert@gmail.com>
This commit is contained in:
parent
bb817bf805
commit
e0e5152de9
1 changed files with 12 additions and 0 deletions
|
@ -3,6 +3,7 @@ class GtkDoc < Formula
|
|||
homepage "https://www.gtk.org/gtk-doc/"
|
||||
url "https://download.gnome.org/sources/gtk-doc/1.30/gtk-doc-1.30.tar.xz"
|
||||
sha256 "a4f6448eb838ccd30d76a33b1fd095f81aea361f03b12c7b23df181d21b7069e"
|
||||
revision 1
|
||||
|
||||
bottle do
|
||||
cellar :any_skip_relocation
|
||||
|
@ -20,7 +21,18 @@ class GtkDoc < Formula
|
|||
depends_on "python"
|
||||
depends_on "source-highlight"
|
||||
|
||||
resource "Pygments" do
|
||||
url "https://files.pythonhosted.org/packages/1d/55/55cd82a72af652d71eb14f318e2d12d2fd14ded43d6fd105e50ed395198c/Pygments-2.4.0.tar.gz"
|
||||
sha256 "31cba6ffb739f099a85e243eff8cb717089fdd3c7300767d9fc34cb8e1b065f5"
|
||||
end
|
||||
|
||||
def install
|
||||
xy = Language::Python.major_minor_version "python3"
|
||||
ENV.prepend_create_path "PYTHONPATH", libexec/"vendor/lib/python#{xy}/site-packages"
|
||||
resource("Pygments").stage do
|
||||
system "python3", *Language::Python.setup_install_args(libexec/"vendor")
|
||||
end
|
||||
|
||||
system "./configure", "--disable-debug",
|
||||
"--disable-dependency-tracking",
|
||||
"--prefix=#{prefix}",
|
||||
|
|
Loading…
Reference in a new issue