Skip to content

Instantly share code, notes, and snippets.

@twittoru
Forked from lapis25/gist:583235
Created January 18, 2011 14:30
Show Gist options
  • Save twittoru/784492 to your computer and use it in GitHub Desktop.
Save twittoru/784492 to your computer and use it in GitHub Desktop.
C/Migemo のconfigureがprefixをうまく受けいれてくれず、/usr/local 直下に作ろうとするので改変。これでsudoしないでもinstallできる。 prefixを変更したらMakefileの解釈がおかしいのかディレクトリつくるまえにinstallしようとするので先にディレクトリつくるように。
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