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.31/gtk-doc-1.31.tar.xz"
|
|
sha256 "a51687956d0377ac70904d03fdc73c9e116589b4a01453fa92162442b3657011"
|
|
|
|
bottle do
|
|
cellar :any_skip_relocation
|
|
sha256 "5b643ff2a91cb4390732e534e4a91fd0e386369795eb7f6e6d0d836ea4757474" => :mojave
|
|
sha256 "5b643ff2a91cb4390732e534e4a91fd0e386369795eb7f6e6d0d836ea4757474" => :high_sierra
|
|
sha256 "725eeac0024ce2c6ced11066fe1efc1fa3f7a8ffedb6cd92d77e83fdb00a1d47" => :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"
|
|
uses_from_macos "libxslt"
|
|
|
|
resource "Pygments" do
|
|
url "https://files.pythonhosted.org/packages/7e/ae/26808275fc76bf2832deb10d3a3ed3107bc4de01b85dcccbe525f2cd6d1e/Pygments-2.4.2.tar.gz"
|
|
sha256 "881c4c157e45f30af185c1ffe8d549d48ac9127433f2c380c24b84572ad66297"
|
|
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
|