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-09-30 08:20:37 +00:00
|
|
|
url "https://download.gnome.org/sources/devhelp/3.22/devhelp-3.22.0.tar.xz"
|
|
|
|
sha256 "59cae02e12d238cc5fc3f049d779895ba89701426d9173f5b534d4ab90c5ffb0"
|
2015-12-09 09:39:20 +00:00
|
|
|
|
2015-12-09 10:34:04 +00:00
|
|
|
bottle do
|
2016-09-30 11:00:35 +00:00
|
|
|
sha256 "92f3c878dfaa3ce20cd2c29c9a5a8ccb128c0c2ab2f3440355a1fbbe441f97f0" => :sierra
|
|
|
|
sha256 "b375e414ba006a49497ac7cbda0dd94f5647a2e0d5fb1043e18f43d225694171" => :el_capitan
|
|
|
|
sha256 "54e284e4ee6e6ea75b75762fda2e095cc37846b64fc39b54c579afe479b906c1" => :yosemite
|
2015-12-09 10:34:04 +00:00
|
|
|
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
|