diff options
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/skktools.rb | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/Library/Formula/skktools.rb b/Library/Formula/skktools.rb index 968b3897d..a873f943d 100644 --- a/Library/Formula/skktools.rb +++ b/Library/Formula/skktools.rb @@ -8,15 +8,17 @@ class Skktools < Formula depends_on 'pkg-config' => :build depends_on 'glib' - def install - system "./configure", "--prefix=#{prefix}", "--with-skkdic-expr2" + # 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 - # replace Makefile Target - inreplace 'Makefile' do |s| - s.gsub! 'TARGETS = skkdic-expr$(EXEEXT)', 'TARGETS = skkdic-expr$(EXEEXT) skkdic-expr2$(EXEEXT)' - end + def install + system "./configure", "--prefix=#{prefix}", + "--with-skkdic-expr2" - system "make" + system "make", "CC=#{ENV.cc}" ENV.j1 system "make install" end |
