aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2012-02-12 22:34:19 -0600
committerJack Nagel2012-02-12 22:35:01 -0600
commit714c13a4520ebd062e2a23d3b23bc5bc0bdb1791 (patch)
tree376b12ab7ded4501feabc2a5fc9d1fcc9fe41c2a /Library
parent19a75570343671d5991b1a22adc6a74e2113ef30 (diff)
downloadhomebrew-714c13a4520ebd062e2a23d3b23bc5bc0bdb1791.tar.bz2
pbzip2: avoid inreplace
The inreplace from MacPorts was four years old and no longer applies. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/pbzip2.rb16
1 files changed, 7 insertions, 9 deletions
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