From 23bf27fdf3af7255313d324161d713913b7d1c98 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Fri, 30 Dec 2016 10:27:33 -0500 Subject: [PATCH] gnome-autoar 0.1.1 (new formula) This commit adds a formula for GNOME autoar, which is a convenience library providing GIO-style async wrappers around libarchive. --- Formula/gnome-autoar.rb | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 Formula/gnome-autoar.rb diff --git a/Formula/gnome-autoar.rb b/Formula/gnome-autoar.rb new file mode 100644 index 0000000000..3fa9f31f1e --- /dev/null +++ b/Formula/gnome-autoar.rb @@ -0,0 +1,29 @@ +class GnomeAutoar < Formula + desc "A convenient library for archive handling" + homepage "https://github.com/GNOME/gnome-autoar" + url "https://download.gnome.org/sources/gnome-autoar/0.1/gnome-autoar-0.1.1.tar.xz" + sha256 "f65cb810b562dc038ced739fbf59739fd5df1a8e848636e21f363ded9f349ac9" + + depends_on "pkg-config" + depends_on "libarchive" + depends_on "glib" + depends_on "gtk+3" + + def install + system "./configure", "--disable-debug", + "--disable-dependency-tracking", + "--disable-silent-rules", + "--prefix=#{prefix}", + "--disable-glibtest", + "--disable-schemas-compile" + system "make", "install" + end + + def post_install + system "#{Formula["glib"].opt_bin}/glib-compile-schemas", "#{HOMEBREW_PREFIX}/share/glib-2.0/schemas" + end + + test do + system "false" + end +end