diff options
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/ssss.rb | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/Library/Formula/ssss.rb b/Library/Formula/ssss.rb new file mode 100644 index 000000000..3e86b2fca --- /dev/null +++ b/Library/Formula/ssss.rb @@ -0,0 +1,27 @@ +require 'formula' + +class Ssss <Formula + url 'http://point-at-infinity.org/ssss/ssss-0.5.tar.gz' + homepage 'http://point-at-infinity.org/ssss/' + md5 '24227252aa195a146d09de1df10357a1' + + depends_on 'gmp' + depends_on 'xmltoman' + + def install + + inreplace 'Makefile' do |contents| + # Compile with -DNOMLOCK to avoid warning on every run on OS X. + contents.gsub! /\-W/, '-W -DNOMLOCK $(CFLAGS) $(LDFLAGS)' + contents.change_make_var! "CC", ENV.cc + end + + ENV.append 'CFLAGS', "-I#{HOMEBREW_PREFIX}/include" + system "make" + prefix.install %w{ HISTORY LICENSE THANKS } + man1.install %w{ ssss.1 } + bin.install %w{ ssss-combine ssss-split } + end + +end + |
