51 lines
1.8 KiB
Ruby
51 lines
1.8 KiB
Ruby
class GtkDoc < Formula
|
|
desc "GTK+ documentation tool"
|
|
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
|
|
sha256 "b4c6a1d8576e0a796c9522b461e2485ffb98a3af35844401e8c5d3b862c20a69" => :mojave
|
|
sha256 "b4c6a1d8576e0a796c9522b461e2485ffb98a3af35844401e8c5d3b862c20a69" => :high_sierra
|
|
sha256 "661963cd595945cff961721ac28f0498a04b31dda962dc6e4a3734240db8a0c7" => :sierra
|
|
end
|
|
|
|
depends_on "itstool" => :build
|
|
depends_on "pkg-config" => :build
|
|
depends_on "docbook"
|
|
depends_on "docbook-xsl"
|
|
depends_on "gettext"
|
|
depends_on "libxml2"
|
|
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}",
|
|
"--with-highlight=source-highlight",
|
|
"--with-xml-catalog=#{etc}/xml/catalog"
|
|
system "make"
|
|
system "make", "install"
|
|
|
|
bin.env_script_all_files(libexec/"bin", :PYTHONPATH => ENV["PYTHONPATH"])
|
|
end
|
|
|
|
test do
|
|
system bin/"gtkdoc-scan", "--module=test"
|
|
system bin/"gtkdoc-mkdb", "--module=test"
|
|
end
|
|
end
|