From 31508af2cb2f6227cd13fe3fea000eb0e8748c3f Mon Sep 17 00:00:00 2001 From: Tom Schoonjans Date: Tue, 18 Aug 2015 09:44:26 +0200 Subject: [PATCH] gucharmap 3.16.2 (new formula) Closes Homebrew/homebrew#43047. Signed-off-by: Mike McQuaid --- Formula/gucharmap.rb | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 Formula/gucharmap.rb diff --git a/Formula/gucharmap.rb b/Formula/gucharmap.rb new file mode 100644 index 0000000000000..de26408face48 --- /dev/null +++ b/Formula/gucharmap.rb @@ -0,0 +1,33 @@ +class Gucharmap < Formula + desc "GNOME Character Map, based on the Unicode Character Database" + homepage "https://live.gnome.org/Gucharmap" + url "https://download.gnome.org/sources/gucharmap/3.16/gucharmap-3.16.2.tar.xz" + sha256 "0a3fa996ae271c8f4812a7d8dc573ece0c000d63185b4865fa99387455e1b13d" + + depends_on "pkg-config" => :build + depends_on "intltool" => :build + depends_on "itstool" => :build + depends_on "desktop-file-utils" => :build + depends_on "gtk+3" + + def install + ENV.append_path "PYTHONPATH", "#{Formula["libxml2"].opt_lib}/python2.7/site-packages" + system "./configure", "--disable-debug", + "--disable-dependency-tracking", + "--disable-silent-rules", + "--prefix=#{prefix}", + "--disable-Bsymbolic", + "--disable-schemas-compile", + "--enable-introspection=no" + system "make" + 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 "#{bin}/gucharmap", "--version" + end +end