mirror of
https://github.com/mistydemeo/tigerbrew.git
synced 2026-11-30 20:49:48 -05:00
skktools: fixing compile error when CC=Clang
Closes #16937. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
1 parent
3ecc01e8e6
commit
855de9243e
1 file changed
+9
-7
@@ -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
|
||||
|
||||
Reference in new issue
Block a user