homebrew-core/Formula/file-roller.rb
2018-03-13 09:21:07 +01:00

46 lines
1.6 KiB
Ruby

class FileRoller < Formula
desc "GNOME archive manager"
homepage "https://wiki.gnome.org/Apps/FileRoller"
url "https://download.gnome.org/sources/file-roller/3.28/file-roller-3.28.0.tar.xz"
sha256 "c17139b46dd4c566ae70a7e3cb930b16e46597c7f9931757fcab900e5015f696"
bottle do
sha256 "3fddc816c4cf74e2279e386a7fbccdb94b5833eac2254836ba939e3f7e24092f" => :high_sierra
sha256 "220069c1e8a5720f5609be2e2c175bc0bd3d2f94a1356536323052486f0551e3" => :sierra
sha256 "e941c0933f7777391a8b1a3721368182f9aea4e97611150ec84e4abcc7a02654" => :el_capitan
end
depends_on "meson" => :build
depends_on "python" => :build
depends_on "ninja" => :build
depends_on "pkg-config" => :build
depends_on "itstool" => :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"
def install
ENV.append "CFLAGS", "-I#{Formula["libmagic"].opt_include}"
ENV.append "LIBS", "-L#{Formula["libmagic"].opt_lib}"
# stop meson_post_install.py from doing what needs to be done in the post_install step
ENV["DESTDIR"] = ""
mkdir "build" do
system "meson", "--prefix=#{prefix}", "-Dpackagekit=false", ".."
system "ninja"
system "ninja", "install"
end
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