shmcat 1.5
Closes Homebrew/homebrew#15615. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
parent
5791b3efb6
commit
bd05a53ef7
1 changed files with 29 additions and 0 deletions
29
Formula/shmcat.rb
Normal file
29
Formula/shmcat.rb
Normal file
|
@ -0,0 +1,29 @@
|
|||
require 'formula'
|
||||
|
||||
class Shmcat < Formula
|
||||
homepage 'http://shmcat.sourceforge.net/'
|
||||
url 'http://heanet.dl.sourceforge.net/project/shmcat/shmcat-1.5.tar.bz2'
|
||||
sha1 'ab0aa596eccfc0343f5863cc4ceb874f91ad9d09'
|
||||
|
||||
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
|
Loading…
Reference in a new issue