2012-01-02 03:31:30 +00:00
|
|
|
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'
|
|
|
|
|
2013-01-07 10:35:04 +00:00
|
|
|
# fixing compile errors with clang
|
|
|
|
# Reported upstream, check if still needed in next version.
|
|
|
|
def patches
|
2013-01-18 04:43:39 +00:00
|
|
|
"https://gist.github.com/raw/4473844/807a208e642953bf95d1a1f3adda4863d189984d/skkdic-expr.c.patch"
|
2013-01-07 10:35:04 +00:00
|
|
|
end
|
2012-01-02 03:31:30 +00:00
|
|
|
|
2013-01-07 10:35:04 +00:00
|
|
|
def install
|
|
|
|
system "./configure", "--prefix=#{prefix}",
|
|
|
|
"--with-skkdic-expr2"
|
2012-01-02 03:31:30 +00:00
|
|
|
|
2013-01-07 10:35:04 +00:00
|
|
|
system "make", "CC=#{ENV.cc}"
|
2012-01-02 03:31:30 +00:00
|
|
|
ENV.j1
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|