bcwipe: avoid inreplace
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
parent
3cb5f281aa
commit
c08740c439
1 changed files with 5 additions and 9 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue