From 714c13a4520ebd062e2a23d3b23bc5bc0bdb1791 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Sun, 12 Feb 2012 22:34:19 -0600 Subject: pbzip2: avoid inreplace The inreplace from MacPorts was four years old and no longer applies. Signed-off-by: Jack Nagel --- Library/Formula/pbzip2.rb | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) (limited to 'Library/Formula') diff --git a/Library/Formula/pbzip2.rb b/Library/Formula/pbzip2.rb index e1bf6d10a..61e95788c 100644 --- a/Library/Formula/pbzip2.rb +++ b/Library/Formula/pbzip2.rb @@ -1,21 +1,19 @@ require 'formula' class Pbzip2 < Formula - url 'http://compression.ca/pbzip2/pbzip2-1.1.6.tar.gz' homepage 'http://compression.ca/pbzip2/' + url 'http://compression.ca/pbzip2/pbzip2-1.1.6.tar.gz' md5 '26cc5a0d882198f106e75101ff0544a3' fails_with_llvm :build => 2334 def install - inreplace "Makefile" do |s| - s.change_make_var! 'PREFIX', prefix - s.gsub! "/man/", "/share/man/" - - # Per fink and macport: - s.gsub! "-pthread -lpthread", "" - end + inreplace "Makefile", "$(PREFIX)/man", "$(PREFIX)/share/man" - system "make install" + system "make", "PREFIX=#{prefix}", + "CC=#{ENV.cxx}", + "CFLAGS=#{ENV.cflags}", + "PREFIX=#{prefix}", + "install" end end -- cgit v1.2.3