47 lines
1.6 KiB
Ruby
47 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.4.tar.xz"
|
|
sha256 "1b3b2cbfcb444e0d150bfd063add9d5181c8ab24f0593e5a8894399297214017"
|
|
|
|
bottle do
|
|
sha256 "8b17b99e5d48751f0bc6b6aca8f433b1a27b3b14dc491fc4b992f3ef93d3192c" => :catalina
|
|
sha256 "c2448cca2f099e780ba104dcf4277d9d61b2b66373b9da0052a0fb5c6ab7c5c2" => :mojave
|
|
sha256 "c4aedb8c7462a868b9957ad62e10ada5eefc25432105e2f9709b768e55ef3289" => :high_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
|