Last active
August 29, 2015 14:27
-
-
Save fukamachi/4ed64b9f35a4fe518eea to your computer and use it in GitHub Desktop.
This file contains hidden or 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 Chasen < Formula | |
homepage "http://chasen-legacy.osdn.jp" | |
url "http://iij.dl.osdn.jp/chasen-legacy/56305/chasen-2.4.5.tar.gz" | |
sha256 "fd1a7afd73ed14e18b0fe82965c00a6baae383070360a4220fde01338611416a" | |
head "git://git.osdn.jp/gitroot/chasen-legacy/chasen.git" | |
def install | |
system "./configure", "--prefix=#{prefix}" | |
system "make" | |
system "make", "install" | |
end | |
end |
This file contains hidden or 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 Darts < Formula | |
homepage "http://chasen.org/~taku/software/darts/" | |
url "http://chasen.org/~taku/software/darts/src/darts-0.32.tar.gz" | |
sha256 "0dfc0b82f0a05d93b92acf849368e54bf93f1de8ffb31ba0a21e45ab9e269285" | |
def install | |
system "./configure", "--prefix=#{prefix}" | |
system "make" | |
system "make", "install" | |
end | |
end |
This file contains hidden or 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 Ipadic < Formula | |
homepage "http://ipadic.osdn.jp" | |
url "http://iij.dl.osdn.jp/ipadic/24435/ipadic-2.7.0.tar.gz" | |
sha256 "ba2744cc16142159b330075e13eed4565908915ac95a790d38dea540e0963c1c" | |
def install | |
system "./configure", "--prefix=#{prefix}", "--with-chasen-config=#{ENV['HOMEBREW_PREFIX']}/bin/chasen-config" | |
system "mkdir", "-p", "#{ENV['HOMEBREW_PREFIX']}/Cellar/chasen/2.4.5/etc" | |
system "cp", "chasenrc", "#{ENV['HOMEBREW_PREFIX']}/Cellar/chasen/2.4.5/etc" | |
system "make" | |
system "make", "install" | |
prefix.install "matrix.cha", "table.cha", "chadic.da", "chadic.lex", "chadic.dat", "grammar.cha" | |
etc.install "chasenrc" | |
system "perl -pi -e 's!GRAMMAR(\\s+)[^\\)]+!GRAMMAR\\1#{prefix}!' #{etc}/chasenrc" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment