From 8d0ddb75ed7cf234b0bad28f0e913a11ecc17f7d Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Fri, 10 Feb 2012 00:00:19 -0600 Subject: xa: avoid inreplace Signed-off-by: Jack Nagel --- Library/Formula/xa.rb | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'Library') diff --git a/Library/Formula/xa.rb b/Library/Formula/xa.rb index 07febca76..dfa9a6896 100644 --- a/Library/Formula/xa.rb +++ b/Library/Formula/xa.rb @@ -1,16 +1,14 @@ require 'formula' class Xa < Formula - url 'http://www.floodgap.com/retrotech/xa/dists/xa-2.3.5.tar.gz' homepage 'http://www.floodgap.com/retrotech/xa/' + url 'http://www.floodgap.com/retrotech/xa/dists/xa-2.3.5.tar.gz' md5 'edd15aa8674fb86225faf34e56d5cab2' def install - inreplace 'Makefile' do |s| - s.change_make_var! 'DESTDIR', prefix - end - - system "make" - system "make install" + system "make", "CC=#{ENV.cc}", + "CFLAGS=#{ENV.cflags}", + "DESTDIR=#{prefix}", + "install" end end -- cgit v1.2.3