class FileRoller < Formula desc "GNOME archive manager" homepage "https://wiki.gnome.org/Apps/FileRoller" url "https://download.gnome.org/sources/file-roller/3.26/file-roller-3.26.0.tar.xz" sha256 "75147fe2439178b01e70ca5d7abe10b05e7500249eeaa3caf5d86df94c2afd60" bottle do rebuild 1 sha256 "051a7c8b8e5ce48383f08909e894a332191009ef43a882595d15ec54e421eb23" => :high_sierra sha256 "05c4548d387d5f7059b630f049c7739e6b9fb0d53a985e057bb0f1eaa4454de2" => :sierra sha256 "025c624d012e4238e131215bdfb299a2ac97d7f5b2ba6be5e2bd1ade4d430667" => :el_capitan end depends_on "pkg-config" => :build depends_on "intltool" => :build depends_on "itstool" => :build depends_on "libxml2" => :build depends_on "gtk+3" depends_on "json-glib" depends_on "libmagic" depends_on "libarchive" depends_on "hicolor-icon-theme" depends_on "adwaita-icon-theme" # Add linked-library dependencies depends_on "atk" depends_on "cairo" depends_on "gdk-pixbuf" depends_on "gettext" depends_on "glib" depends_on "pango" def install # forces use of gtk3-update-icon-cache instead of gtk-update-icon-cache. No bugreport should # be filed for this since it only occurs because Homebrew renames gtk+3's gtk-update-icon-cache # to gtk3-update-icon-cache in order to avoid a collision between gtk+ and gtk+3. inreplace "data/Makefile.in", "gtk-update-icon-cache", "gtk3-update-icon-cache" ENV.append "CFLAGS", "-I#{Formula["libmagic"].opt_include}" ENV.append "LIBS", "-L#{Formula["libmagic"].opt_lib}" system "./configure", "--disable-dependency-tracking", "--disable-silent-rules", "--prefix=#{prefix}", "--disable-schemas-compile", "--disable-packagekit", "--enable-magic" 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 system bin/"file-roller", "--help" end end