Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

New formula: par2tbb

Note that par2tbb conflicts with the original par2 formula.

Closes #9132.

Signed-off-by: Misty De Meo <mistydemeo@gmail.com>
  • Loading branch information...
commit 065ede7278b0f04ac1be571e86cec140fe3251f6 1 parent e800e25
Diogo Franco Kovensky authored mistydemeo committed
Showing with 41 additions and 0 deletions.
  1. +41 −0 Library/Formula/par2tbb.rb
41 Library/Formula/par2tbb.rb
View
@@ -0,0 +1,41 @@
+require 'formula'
+
+class Par2tbb < Formula
+ url 'http://chuchusoft.com/par2_tbb/par2cmdline-0.4-tbb-20100203.tar.gz'
+ homepage 'http://chuchusoft.com/par2_tbb/'
+ md5 'b1052a08c3c6eac8a7a0605addb161e7'
+
+ depends_on 'tbb'
+
+ 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.*$/, ''
+
+ # NOTE: fails build with clang; doesn't recognize a x87 instruction
+ # works with llvm-g++ though.
+ ENV.llvm if ENV.compiler == :clang
+
+ 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"
+ end
+
+ def caveats
+ <<-EOS.undent
+ par2tbb is a modified fork of par2 and conflicts with its binaries.
+ EOS
+ end
+
+ def test
+ system "par2"
+ end
+end
Please sign in to comment.
Something went wrong with that request. Please try again.