homebrew-core/Formula/file-roller.rb
2019-09-10 13:45:22 +10: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.32/file-roller-3.32.2.tar.xz"
sha256 "c60a79e0baf74cb1c09a1c8f5ffe0d6e311227ca14ecc5b1156beb3715341a71"
bottle do
sha256 "c6bc1e09f76bda396721491ff062e017d42b21528970a7270373ecfde114362b" => :mojave
sha256 "936c496583296ac7266f76c3ae7069c6e8fe3fbfc6f44469ff6a1660787f39bc" => :high_sierra
sha256 "3aaf7050a5ec238e3800b31ee6c7d979ed2290d9589a59a29a064f18be943bc9" => :sierra
end
depends_on "itstool" => :build
depends_on "meson" => :build
depends_on "ninja" => :build
depends_on "pkg-config" => :build
depends_on "python" => :build
depends_on "adwaita-icon-theme"
depends_on "gtk+3"
depends_on "hicolor-icon-theme"
depends_on "json-glib"
depends_on "libarchive"
depends_on "libmagic"
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