From cbcc6e265d42ee34e28ec38e6d6470760e0af0dd Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Thu, 9 Feb 2012 22:12:16 -0600 Subject: hping: style cleanups Signed-off-by: Jack Nagel --- Library/Formula/hping.rb | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'Library/Formula') diff --git a/Library/Formula/hping.rb b/Library/Formula/hping.rb index 7a1ddde3a..341295f76 100644 --- a/Library/Formula/hping.rb +++ b/Library/Formula/hping.rb @@ -1,8 +1,8 @@ require 'formula' class Hping < Formula - url 'http://www.hping.org/hping3-20051105.tar.gz' homepage 'http://www.hping.org/' + url 'http://www.hping.org/hping3-20051105.tar.gz' md5 'ca4ea4e34bcc2162aedf25df8b2d1747' version '3.20051105' @@ -21,14 +21,13 @@ class Hping < Formula # Compile fails with tcl support; TCL on OS X is 32-bit only system "./configure", "--no-tcl" - inreplace 'Makefile' do |s| - s.change_make_var! "INSTALL_PATH", prefix - s.change_make_var! "INSTALL_MANPATH", man - end - # Target folders need to exist before installing sbin.mkpath man8.mkpath - system "make install" + system "make", "CC=#{ENV.cc}", + "COMPILE_TIME=#{ENV.cflags}", + "INSTALL_PATH=#{prefix}", + "INSTALL_MANPATH=#{man}", + "install" end end -- cgit v1.2.3