Skip to content

Commit

Permalink
gucharmap 3.16.2 (new formula)
Browse files Browse the repository at this point in the history
Closes Homebrew/legacy-homebrew#43047.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
  • Loading branch information
tschoonj authored and MikeMcQuaid committed Aug 20, 2015
1 parent 65661af commit 31508af
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions 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

0 comments on commit 31508af

Please sign in to comment.