Skip to content

Instantly share code, notes, and snippets.

@koshigoe
Created January 6, 2012 04:50
Show Gist options
  • Save koshigoe/1569046 to your computer and use it in GitHub Desktop.
Save koshigoe/1569046 to your computer and use it in GitHub Desktop.
require 'formula'
# $ sudo install -d -o $(whoami) /etc/mecab
# OR
# $ sudo chown $(whoami) /etc/mecab
class MecabNaistJdic < Formula
url 'http://sourceforge.jp/frs/redir.php?m=iij&f=%2Fnaist-jdic%2F48487%2Fmecab-naist-jdic-0.6.3-20100801.tar.gz'
homepage 'http://sourceforge.jp/projects/naist-jdic/'
md5 '30af2251331b9d6141748caf033821e3'
# depends_on 'cmake' => :build
def install
system "./configure", "--disable-debug", "--disable-dependency-tracking",
"--prefix=#{prefix}"
# system "cmake . #{std_cmake_parameters}"
system "make install"
end
def test
# This test will fail and we won't accept that! It's enough to just
# replace "false" with the main program this formula installs, but
# it'd be nice if you were more thorough. Test the test with
# `brew test redir.php?m=iij&f=%2Fnaist-jdic%2F48487%2Fmecab-naist-jdic`. Remove this comment before submitting
# your pull request!
system "false"
end
end
require 'formula'
class MysqlftppcMecab < Formula
url 'http://downloads.sourceforge.net/project/mysqlftppc/mysqlftppc/1.6.1/mysqlftppc-mecab-1.6.1.tar.gz'
homepage 'http://sourceforge.net/apps/mediawiki/mysqlftppc/index.php?title=Mecab-j'
md5 '16c6351ad78757de550ae255584fa0e1'
# depends_on 'cmake' => :build
depends_on 'icu4c' => :build
depends_on 'mecab' => :build
def install
system "./configure", "--disable-debug", "--disable-dependency-tracking",
"--prefix=#{prefix}", "--enable-utf8-only", "--with-icu-dir=/usr/local/Cellar/icu4c/4.4.1"
# system "cmake . #{std_cmake_parameters}"
system "make install"
end
def test
# This test will fail and we won't accept that! It's enough to just
# replace "false" with the main program this formula installs, but
# it'd be nice if you were more thorough. Test the test with
# `brew test mysqlftppc-mecab`. Remove this comment before submitting
# your pull request!
system "false"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment