aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/bcwipe.rb
diff options
context:
space:
mode:
authorJack Nagel2012-02-09 22:36:58 -0600
committerJack Nagel2012-02-09 22:37:18 -0600
commitaef78026680c79c1f999c9c431b9cb3d4197180b (patch)
tree72ef91c178f7a480b046d6b6b9e743e60465470b /Library/Formula/bcwipe.rb
parente17e92cd766f9a8e630cc6f0b884dc6072fcd72d (diff)
downloadhomebrew-aef78026680c79c1f999c9c431b9cb3d4197180b.tar.bz2
bcwipe: avoid inreplace
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Formula/bcwipe.rb')
-rw-r--r--Library/Formula/bcwipe.rb14
1 files changed, 5 insertions, 9 deletions
diff --git a/Library/Formula/bcwipe.rb b/Library/Formula/bcwipe.rb
index 6cc35040b..e52e7abf7 100644
--- a/Library/Formula/bcwipe.rb
+++ b/Library/Formula/bcwipe.rb
@@ -1,23 +1,19 @@
require 'formula'
class Bcwipe < Formula
- url 'http://www.jetico.com/linux/BCWipe-1.9-8.tar.gz'
homepage 'http://www.jetico.com/linux/bcwipe-help/'
+ url 'http://www.jetico.com/linux/BCWipe-1.9-8.tar.gz'
md5 'b8ecc0a62856e7c752020bdfafc89c75'
def install
- system "./configure", "--disable-debug", "--disable-dependency-tracking", "--prefix=#{prefix}"
-
- # Remove bad arch flags
- inreplace 'Makefile' do |s|
- s.change_make_var! 'CFLAGS', ENV.cflags
- s.change_make_var! 'LDFLAGS', ENV.ldflags
- end
+ system "./configure", "--disable-debug",
+ "--disable-dependency-tracking",
+ "--prefix=#{prefix}"
# This does not get detected properly.
# Should be reported upstream!
inreplace "config.h", "/* #undef HAVE_GETTIMEOFDAY */", "#define HAVE_GETTIMEOFDAY 1"
- system "make install"
+ system "make", "CFLAGS=#{ENV.cflags}", "LDFLAGS=#{ENV.ldflags}", "install"
end
end