skktools: fixing compile error when CC=Clang

Closes #16937.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
Keisuke KAWAHARA authored and Adam Vandenberg committed 2013-01-08 20:23:47 -08:00
1 parent 3ecc01e8e6
commit 855de9243e
1 file changed
+9 -7
+9 -7
View File
@@ -8,15 +8,17 @@ class Skktools < Formula
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 "./configure", "--prefix=#{prefix}",
"--with-skkdic-expr2"
# replace Makefile Target
inreplace 'Makefile' do |s|
s.gsub! 'TARGETS = skkdic-expr$(EXEEXT)', 'TARGETS = skkdic-expr$(EXEEXT) skkdic-expr2$(EXEEXT)'
end
system "make"
system "make", "CC=#{ENV.cc}"
ENV.j1
system "make install"
end