aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/skktools.rb
blob: a873f943d7d881eb2b431b673d08fe40018a6463 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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/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