2015-08-31 08:17:20 +00:00
|
|
|
class Baobab < Formula
|
|
|
|
desc "Gnome disk usage analyzer"
|
|
|
|
homepage "https://wiki.gnome.org/Apps/Baobab"
|
2016-11-07 20:49:58 +00:00
|
|
|
url "https://download.gnome.org/sources/baobab/3.22/baobab-3.22.1.tar.xz"
|
|
|
|
sha256 "5bebcb1797888503d75c9985404e534940c211ffc37e5c7de09eed058dfc97ff"
|
2015-08-31 08:17:20 +00:00
|
|
|
|
2015-08-31 11:21:18 +00:00
|
|
|
bottle do
|
2016-11-07 23:07:21 +00:00
|
|
|
sha256 "de3c9c770606c2e3bc883c78bd9dcffd286a64f5882845bbc0758ff3c3735977" => :sierra
|
|
|
|
sha256 "c91340e2c91856f881cf60daa1701e9dfce4b59d153df90ceefb16f4ca49530d" => :el_capitan
|
|
|
|
sha256 "1d50a95ac3721eb492c40bfe108e8c3daebd313108536446d6eb6e65710417ae" => :yosemite
|
2015-08-31 11:21:18 +00:00
|
|
|
end
|
|
|
|
|
2015-08-31 08:17:20 +00:00
|
|
|
depends_on "pkg-config" => :build
|
|
|
|
depends_on "intltool" => :build
|
|
|
|
depends_on "itstool" => :build
|
|
|
|
depends_on "libxml2" => ["with-python", :build]
|
2016-09-24 15:45:48 +00:00
|
|
|
depends_on :python => :build if MacOS.version <= :snow_leopard
|
2015-08-31 08:17:20 +00:00
|
|
|
depends_on "vala" => :build
|
|
|
|
depends_on "gtk+3"
|
|
|
|
depends_on "hicolor-icon-theme"
|
|
|
|
depends_on "gnome-icon-theme"
|
|
|
|
|
|
|
|
def install
|
|
|
|
system "./configure", "--disable-dependency-tracking",
|
|
|
|
"--disable-silent-rules",
|
|
|
|
"--prefix=#{prefix}",
|
|
|
|
"--disable-schemas-compile"
|
|
|
|
ENV.append_path "PYTHONPATH", "#{Formula["libxml2"].opt_lib}/python2.7/site-packages"
|
|
|
|
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 18:23:31 +00:00
|
|
|
assert_match version.to_s, shell_output("#{bin}/baobab --version")
|
2015-08-31 08:17:20 +00:00
|
|
|
end
|
|
|
|
end
|