2012-10-23 09:02:08 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Shmcat < Formula
|
|
|
|
homepage 'http://shmcat.sourceforge.net/'
|
2013-01-01 19:21:26 +00:00
|
|
|
url 'http://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"
|
|
|
|
|
|
|
|
depends_on 'gettext' if build.include? 'with-nls'
|
|
|
|
|
|
|
|
def install
|
|
|
|
args = %W[
|
|
|
|
--disable-dependency-tracking
|
|
|
|
--prefix=#{prefix}
|
|
|
|
]
|
|
|
|
args << "--disable-ftok" unless build.include? 'with-ftok'
|
|
|
|
if build.include? 'with-nls'
|
|
|
|
gettext = Formula.factory('gettext')
|
|
|
|
args << "--with-libintl-prefix=#{gettext.include}"
|
|
|
|
else
|
|
|
|
args << "--disable-nls"
|
|
|
|
end
|
|
|
|
|
|
|
|
system "./configure", *args
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|