2012-10-23 09:02:08 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Shmcat < Formula
|
|
|
|
homepage 'http://shmcat.sourceforge.net/'
|
2014-02-27 14:19:55 +00:00
|
|
|
url 'https://downloads.sourceforge.net/project/shmcat/shmcat-1.6.tar.bz2'
|
2012-12-06 17:24:44 +00:00
|
|
|
sha1 '13650adef363bf9c7c97602036cf6c3241f1a86d'
|
2012-10-23 09:02:08 +00:00
|
|
|
|
|
|
|
option 'with-ftok', "Build the ftok utility"
|
|
|
|
option 'with-nls', "Use Native Language Support"
|
|
|
|
|
2014-03-06 20:40:26 +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-02-25 06:56:46 +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
|