homebrew-core/Formula/libvoikko.rb
Juhani Simola 40bbd65187 libvoikko 3.7
Voikko is a spelling and grammar checker, hyphenator and collection of
related linguistic data for Finnish language.

See http://voikko.puimula.org/

Closes Homebrew/homebrew#24827.

Signed-off-by: Misty De Meo <mistydemeo@gmail.com>
2013-12-02 08:30:25 -08:00

27 lines
999 B
Ruby

require 'formula'
class Libvoikko < Formula
homepage 'http://voikko.puimula.org/'
url 'http://www.puimula.org/voikko-sources/libvoikko/libvoikko-3.7.tar.gz'
sha1 '27ad3f72316d3878a0ed7b94a9e855bff66cb81b'
depends_on 'pkg-config' => :build
depends_on 'suomi-malaga-voikko'
def patches
# Fixes compilation issues on OS X 10.9. Both merged upstream:
# https://github.com/voikko/corevoikko/pull/5
# https://github.com/voikko/corevoikko/pull/6
# Note that the upstream commits don't apply cleanly to stable
"https://gist.github.com/osimola/7724611/raw/2dcfddaf4bf7c7e9d940edb1b982d5b5e39bc378/libvoikko-3.7-mavericks.patch"
end
def install
system "./configure", "--disable-debug",
"--disable-dependency-tracking",
"--disable-silent-rules",
"--prefix=#{prefix}",
"--with-dictionary-path=#{HOMEBREW_PREFIX}/lib/voikko"
system "make", "install"
end
end