aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorJack Nagel2014-05-16 14:10:23 -0500
committerJack Nagel2014-05-16 14:10:23 -0500
commit6c46283d4e0eb6a59f8cea3a8e0c11c0a13d1bfc (patch)
treed611607437278319aed710daceecee4847339364 /Library/Formula
parent4143ca24b35436ab2d15b051fa2fa72481300d4d (diff)
downloadhomebrew-6c46283d4e0eb6a59f8cea3a8e0c11c0a13d1bfc.tar.bz2
part2bb: autoreconf to get updated configure script
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/par2tbb.rb26
1 files changed, 11 insertions, 15 deletions
diff --git a/Library/Formula/par2tbb.rb b/Library/Formula/par2tbb.rb
index a1c247582..b8affea55 100644
--- a/Library/Formula/par2tbb.rb
+++ b/Library/Formula/par2tbb.rb
@@ -5,6 +5,9 @@ class Par2tbb < Formula
url 'http://chuchusoft.com/par2_tbb/par2cmdline-0.4-tbb-20100203.tar.gz'
sha1 '6453ab5f0ee76800fdfdb5d10fe607250c9ea330'
+ depends_on "autoconf" => :build
+ depends_on "automake" => :build
+ depends_on "libtool" => :build
depends_on 'tbb'
conflicts_with "par2",
@@ -15,21 +18,14 @@ class Par2tbb < Formula
end
def install
- # par2tbb ships with bad timestamps and
- # doesn't respect --disable-maintainer-mode
- # it ships with broken permissions too
- chmod 0755, 'install-sh'
-
- # par2tbb expects to link against 10.4 / 10.5 SDKs,
- # but only 10.6+ are available on Xcode4
- inreplace 'Makefile.am', /^.*-mmacosx-version.*$/, ''
-
- host_triplet = MacOS.prefer_64_bit? ? "x86_64-apple-darwin11" : "i686-apple-darwin11"
-
- system "./configure", "--disable-debug", "--disable-dependency-tracking",
- "--prefix=#{prefix}", "--build=#{host_triplet}",
- "--host=#{host_triplet}"
- system "make install"
+ system "autoreconf", "-fvi"
+ # par2tbb expects to link against 10.4 / 10.5 SDKs
+ inreplace "Makefile.in", /^.*-mmacosx-version.*$/, ""
+
+ system "./configure", "--disable-dependency-tracking",
+ "--disable-silent-rules",
+ "--prefix=#{prefix}"
+ system "make", "install"
end
test do