From 855de9243e8506b59ea7b2601d543cc4a207c7d8 Mon Sep 17 00:00:00 2001 From: Keisuke KAWAHARA Date: Mon, 7 Jan 2013 19:35:04 +0900 Subject: skktools: fixing compile error when CC=Clang Closes #16937. Signed-off-by: Adam Vandenberg --- Library/Formula/skktools.rb | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'Library/Formula') 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 -- cgit v1.2.3