forked from thommyhh/homebrew-boneyard
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdevhelp.rb
29 lines (25 loc) · 1015 Bytes
/
devhelp.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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.22/devhelp-3.22.0.tar.xz"
sha256 "59cae02e12d238cc5fc3f049d779895ba89701426d9173f5b534d4ab90c5ffb0"
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