blob: d3bdf9ded985cb94d76f2c960d0429b6b728a323 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
require 'formula'
class Shmcat < Formula
homepage 'http://shmcat.sourceforge.net/'
url 'http://downloads.sourceforge.net/project/shmcat/shmcat-1.6.tar.bz2'
sha1 '13650adef363bf9c7c97602036cf6c3241f1a86d'
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
|