-
-
Save twittoru/784492 to your computer and use it in GitHub Desktop.
C/Migemo のconfigureがprefixをうまく受けいれてくれず、/usr/local 直下に作ろうとするので改変。これでsudoしないでもinstallできる。 prefixを変更したらMakefileの解釈がおかしいのかディレクトリつくるまえにinstallしようとするので先にディレクトリつくるように。
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'formula' | |
class Cmigemo <Formula | |
url 'http://www.kaoriya.net/dist/var/cmigemo-1.3c.tar.bz2' | |
homepage 'http://www.kaoriya.net/#CMIGEMO' | |
md5 '0b9d2feff4cfdc673cc1947fe54191ed' | |
version '1.3c' | |
depends_on 'nkf' | |
def install | |
system "./configure" | |
inreplace ['config.mk'], 'prefix = /usr/local', "prefix = #{prefix}" | |
# system "cmake . #{std_cmake_parameters}" | |
system "make osx" | |
system "make osx-dict" | |
Dir.chdir('dict') do | |
system "make utf-8" | |
end | |
system "make -f compile/Make_osx.mak install-mkdir" | |
system "make osx-install" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment