homebrew-core/Formula/skktools.rb
2013-01-17 22:43:39 -06:00

25 lines
707 B
Ruby

require 'formula'
class Skktools < Formula
homepage 'http://openlab.jp/skk/index-j.html'
url 'http://openlab.ring.gr.jp/skk/tools/skktools-1.3.2.tar.gz'
sha256 'cd1cc9d6d9674d70bbc69f52ac1d1a99a8067dd113a0fa1d50685a29e58a6791'
depends_on 'pkg-config' => :build
depends_on 'glib'
# fixing compile errors with clang
# Reported upstream, check if still needed in next version.
def patches
"https://gist.github.com/raw/4473844/807a208e642953bf95d1a1f3adda4863d189984d/skkdic-expr.c.patch"
end
def install
system "./configure", "--prefix=#{prefix}",
"--with-skkdic-expr2"
system "make", "CC=#{ENV.cc}"
ENV.j1
system "make install"
end
end