homebrew-core/Formula/libvoikko.rb

36 lines
1.3 KiB
Ruby
Raw Normal View History

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'
2014-07-03 21:27:44 +00:00
bottle do
cellar :any
sha1 "db25afc7130491bbf3e5097c04a0eca8d7a2915d" => :mavericks
sha1 "0663d391a2962d6245a89e17afd2a45b7c4a5460" => :mountain_lion
sha1 "2fa799be5ce26948edc2c5c4c7e74c181aee9dc6" => :lion
end
depends_on 'pkg-config' => :build
depends_on 'suomi-malaga-voikko'
2014-03-17 02:35:21 +00:00
# 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
patch do
2014-04-26 19:48:32 +00:00
url "https://gist.githubusercontent.com/osimola/7724611/raw/2dcfddaf4bf7c7e9d940edb1b982d5b5e39bc378/libvoikko-3.7-mavericks.patch"
2014-03-17 02:35:21 +00:00
sha1 "532d0a3097569c966b2632a5b876d9082b4a2c49"
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