2010-07-28 20:52:26 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Ssss < Formula
|
2010-07-28 20:52:26 +00:00
|
|
|
url 'http://point-at-infinity.org/ssss/ssss-0.5.tar.gz'
|
|
|
|
homepage 'http://point-at-infinity.org/ssss/'
|
2012-09-03 18:33:56 +00:00
|
|
|
sha1 '3f8f5046c2c5c3a2cf1a93f0a9446681852b190e'
|
2010-07-28 20:52:26 +00:00
|
|
|
|
|
|
|
depends_on 'gmp'
|
|
|
|
depends_on 'xmltoman'
|
|
|
|
|
|
|
|
def install
|
2010-09-08 16:07:59 +00:00
|
|
|
inreplace 'Makefile' do |s|
|
2010-07-28 20:52:26 +00:00
|
|
|
# Compile with -DNOMLOCK to avoid warning on every run on OS X.
|
2010-11-22 18:38:18 +00:00
|
|
|
s.gsub! /\-W /, '-W -DNOMLOCK $(CFLAGS) $(LDFLAGS)'
|
2010-09-08 16:07:59 +00:00
|
|
|
s.change_make_var! "CC", ENV.cc
|
2010-07-28 20:52:26 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
ENV.append 'CFLAGS', "-I#{HOMEBREW_PREFIX}/include"
|
|
|
|
system "make"
|
|
|
|
man1.install %w{ ssss.1 }
|
|
|
|
bin.install %w{ ssss-combine ssss-split }
|
|
|
|
end
|
2010-11-22 18:38:18 +00:00
|
|
|
end
|