homebrew-core/Formula/gucharmap.rb
2017-09-11 22:07:10 +02:00

41 lines
1.5 KiB
Ruby

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.1.tar.xz"
sha256 "51a2bf91c4590ea2159f828156864f088a0bd4c12e7a1c396002a23d48b2d5e2"
bottle do
sha256 "79efd3d1fc9980a07fe04e5c2856bf130766a95c7e85c00e197e7495a128feff" => :sierra
sha256 "871580eca0eae53d748d1292430d3f28214b99a2af0ea79ea7c2d7c66059f9c7" => :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