homebrew-core/Formula/devhelp.rb

36 lines
1.3 KiB
Ruby
Raw Normal View History

2015-12-09 09:39:20 +00:00
class Devhelp < Formula
desc "API documentation browser for GTK+ and GNOME"
homepage "https://wiki.gnome.org/Apps/Devhelp"
2016-06-22 19:01:20 +00:00
url "https://download.gnome.org/sources/devhelp/3.20/devhelp-3.20.0.tar.xz"
sha256 "a23375c2e2b2ef6240994bc2327fcacfd42403af6d872d0cba2e16dd45ca1f1d"
2015-12-09 09:39:20 +00:00
2015-12-09 10:34:04 +00:00
bottle do
sha256 "0a8fceef8356c847134a86553a469af6c4e48f72b9e8e9b6576e4bcfe80eca79" => :el_capitan
sha256 "3f052f305449b5f24d004c1b2561b3fa59c2354d2fb2b54ba61189e115fb91b9" => :yosemite
sha256 "81fd4026bae8091f1d8485b69189de7cb4184e87f4dadff8a779100c4d19534d" => :mavericks
end
2015-12-09 09:39:20 +00:00
depends_on "pkg-config" => :build
depends_on "intltool" => :build
depends_on "webkitgtk"
depends_on "hicolor-icon-theme"
depends_on "gnome-icon-theme"
def install
system "./configure", "--disable-dependency-tracking",
"--disable-silent-rules",
"--disable-schemas-compile",
"--prefix=#{prefix}"
system "make", "install"
end
def post_install
system "#{Formula["glib"].opt_bin}/glib-compile-schemas", "#{HOMEBREW_PREFIX}/share/glib-2.0/schemas"
system "#{Formula["gtk+3"].opt_bin}/gtk3-update-icon-cache", "-f", "-t", "#{HOMEBREW_PREFIX}/share/icons/hicolor"
end
test do
2016-06-22 19:01:20 +00:00
system bin/"devhelp", "--version"
2015-12-09 09:39:20 +00:00
end
end