homebrew-core/Formula/gucharmap.rb
2018-03-21 07:02:45 -07:00

43 lines
1.6 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.4.tar.xz"
sha256 "bb266899266b2f2dcdbaf9f45cafd74c6f4e540132d3f0b068d37343291df001"
revision 1
bottle do
sha256 "ce68b7dd70eadd29a809252189b6d6ff5f76aa148df1c483314946fd6991922e" => :high_sierra
sha256 "620a04f5700067b146dbde3f30ef940a1c718bb8b589fd409d4ff4b7e223155f" => :sierra
sha256 "d4ae8426ee7b26ab5b0ea79df0102ffdc2a670a4e078d9948324ba3529ca3a84" => :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