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/10.0/gucharmap-10.0.2.tar.xz" sha256 "331e053078d6834ad6d2a2ffc10c063050564c04777a69caa10d4ebd69683493" bottle do sha256 "29860173c63557342001b0e64b01a4238a086f779a1fcd176f9baee9cd397e25" => :high_sierra sha256 "0f59f6ccc2384d6186f20b35823c47f7e624153fc485e7f11f8e27efcb3ac763" => :sierra sha256 "e9b317c19ad7a426987d2f48deae43f63c8573a19cc06eee9f1384969086f211" => :el_capitan end depends_on "pkg-config" => :build depends_on "intltool" => :build depends_on "itstool" => :build depends_on "desktop-file-utils" => :build depends_on "coreutils" => :build depends_on "gtk+3" def install ENV["WGET"] = "curl" 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", "--with-unicode-data=download" system "make", "WGETFLAGS=--remote-name --remote-time --connect-timeout 30 --retry 8" 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