Skip to content

Instantly share code, notes, and snippets.

@tnoda
Created October 28, 2012 06:35
Show Gist options
  • Save tnoda/3967883 to your computer and use it in GitHub Desktop.
Save tnoda/3967883 to your computer and use it in GitHub Desktop.
A private cmigemo formula.
require 'formula'
class Cmigemo < Formula
homepage 'http://www.kaoriya.net/software/cmigemo'
url 'http://cmigemo.googlecode.com/files/cmigemo-default-src-20110227.zip'
md5 '6e9b6f6ec96d4eb8bdd18e52b91e1b85'
depends_on 'nkf'
def patches
DATA
end
def install
File.chmod(0755, "./configure")
system "./configure", "--prefix=#{prefix}"
system "make osx"
system "make osx-dict"
cd 'dict' do
system "make utf-8"
end
mkdir "#{prefix}/lib"
mkdir "#{prefix}/share"
mkdir "#{prefix}/share/migemo"
mkdir "#{prefix}/share/migemo/cp932"
mkdir "#{prefix}/share/migemo/euc-jp"
mkdir "#{prefix}/share/migemo/utf-8"
system "make osx-install"
system "install_name_tool -change libmigemo.1.dylib #{prefix}/lib/libmigemo.1.dylib #{prefix}/bin/cmigemo"
end
end
@tnoda
Copy link
Author

tnoda commented Oct 28, 2012

Overwritten by the pull request Homebrew/legacy-homebrew#15343

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment