2014-08-17 16:33:57 +00:00
|
|
|
require "formula"
|
2012-10-23 09:02:08 +00:00
|
|
|
|
|
|
|
class Shmcat < Formula
|
2014-08-17 16:33:57 +00:00
|
|
|
homepage "http://shmcat.sourceforge.net/"
|
|
|
|
url "https://downloads.sourceforge.net/project/shmcat/shmcat-1.7.tar.bz2"
|
|
|
|
sha1 "30f6bc931859e1544e783edc84f137e9c4a0b5f6"
|
2012-10-23 09:02:08 +00:00
|
|
|
|
2014-08-17 16:33:57 +00:00
|
|
|
option "with-ftok", "Build the ftok utility"
|
|
|
|
option "with-nls", "Use Native Language Support"
|
2012-10-23 09:02:08 +00:00
|
|
|
|
2014-08-17 16:33:57 +00:00
|
|
|
depends_on "gettext" if build.with? "nls"
|
2012-10-23 09:02:08 +00:00
|
|
|
|
|
|
|
def install
|
|
|
|
args = %W[
|
|
|
|
--disable-dependency-tracking
|
|
|
|
--prefix=#{prefix}
|
|
|
|
]
|
2014-03-06 20:40:26 +00:00
|
|
|
args << "--disable-ftok" if build.without? "ftok"
|
|
|
|
if build.with? "nls"
|
2014-08-17 16:33:57 +00:00
|
|
|
gettext = Formula["gettext"]
|
2012-10-23 09:02:08 +00:00
|
|
|
args << "--with-libintl-prefix=#{gettext.include}"
|
|
|
|
else
|
|
|
|
args << "--disable-nls"
|
|
|
|
end
|
|
|
|
|
|
|
|
system "./configure", *args
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|