homebrew-core/Formula/ssss.rb

24 lines
618 B
Ruby
Raw Normal View History

require 'formula'
2011-03-10 05:11:03 +00:00
class Ssss < Formula
homepage 'http://point-at-infinity.org/ssss/'
2013-01-28 05:18:05 +00:00
url 'http://point-at-infinity.org/ssss/ssss-0.5.tar.gz'
sha1 '3f8f5046c2c5c3a2cf1a93f0a9446681852b190e'
depends_on 'gmp'
depends_on 'xmltoman'
def install
inreplace 'Makefile' do |s|
# 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)'
s.change_make_var! "CC", ENV.cc
end
ENV.append 'CFLAGS', "-I#{HOMEBREW_PREFIX}/include"
system "make"
2013-01-28 05:18:05 +00:00
man1.install 'ssss.1'
bin.install %w{ ssss-combine ssss-split }
end
2010-11-22 18:38:18 +00:00
end