aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/ssss.rb
diff options
context:
space:
mode:
authorAdam Vandenberg2014-08-02 09:20:30 -0700
committerAdam Vandenberg2014-08-02 09:21:05 -0700
commitcd0f294b492707e71afa2e6ee61858e713b51284 (patch)
tree4c2927cbc3588cb59ba047a6cf5df214bad78451 /Library/Formula/ssss.rb
parentcaa7c30f0080bcfad9fa30788e96e3ac3e9ec2bb (diff)
downloadhomebrew-cd0f294b492707e71afa2e6ee61858e713b51284.tar.bz2
ssss: modernize
The CC replacement was invalid, and superenv removes the need for setting include paths manually.
Diffstat (limited to 'Library/Formula/ssss.rb')
-rw-r--r--Library/Formula/ssss.rb20
1 files changed, 9 insertions, 11 deletions
diff --git a/Library/Formula/ssss.rb b/Library/Formula/ssss.rb
index b2bcb5d9e..88ac52875 100644
--- a/Library/Formula/ssss.rb
+++ b/Library/Formula/ssss.rb
@@ -1,23 +1,21 @@
-require 'formula'
+require "formula"
class Ssss < Formula
- homepage 'http://point-at-infinity.org/ssss/'
- url 'http://point-at-infinity.org/ssss/ssss-0.5.tar.gz'
- sha1 '3f8f5046c2c5c3a2cf1a93f0a9446681852b190e'
+ homepage "http://point-at-infinity.org/ssss/"
+ url "http://point-at-infinity.org/ssss/ssss-0.5.tar.gz"
+ sha1 "3f8f5046c2c5c3a2cf1a93f0a9446681852b190e"
- depends_on 'gmp'
- depends_on 'xmltoman'
+ depends_on "gmp"
+ depends_on "xmltoman"
def install
- inreplace 'Makefile' do |s|
+ inreplace "Makefile" do |s|
# Compile with -DNOMLOCK to avoid warning on every run on OS X.
- s.gsub! /\-W /, '-W -DNOMLOCK $(CFLAGS) $(LDFLAGS)'
- s.change_make_var! "CC", ENV.cc
+ s.gsub! /\-W /, "-W -DNOMLOCK $(CFLAGS) $(LDFLAGS)"
end
- ENV.append 'CFLAGS', "-I#{HOMEBREW_PREFIX}/include"
system "make"
- man1.install 'ssss.1'
+ man1.install "ssss.1"
bin.install %w{ ssss-combine ssss-split }
end
end