homebrew-core/Formula/devhelp.rb
2016-06-23 22:00:10 +01:00

35 lines
1.3 KiB
Ruby

class Devhelp < Formula
desc "API documentation browser for GTK+ and GNOME"
homepage "https://wiki.gnome.org/Apps/Devhelp"
url "https://download.gnome.org/sources/devhelp/3.20/devhelp-3.20.0.tar.xz"
sha256 "a23375c2e2b2ef6240994bc2327fcacfd42403af6d872d0cba2e16dd45ca1f1d"
bottle do
sha256 "20c195d75481de422ec0e65b7efa3f6817cc6a603c0f37b9b4c90212df912552" => :el_capitan
sha256 "383468387249e03b2fedaadb308835fa3425b1c27fd9db4cc1ac39c688bb5adf" => :yosemite
sha256 "f33332669eb47d404ea73fbc99fe89e5d33f5044cc8b93acee84f274dc343a32" => :mavericks
end
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
system bin/"devhelp", "--version"
end
end