Skip to content
This repository
Browse code

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 authored December 15, 2011 mistydemeo committed February 02, 2012

Showing 1 changed file with 41 additions and 0 deletions. Show diff stats Hide diff stats

  1. 41  Library/Formula/par2tbb.rb
41  Library/Formula/par2tbb.rb
... ...
@@ -0,0 +1,41 @@
  1
+require 'formula'
  2
+
  3
+class Par2tbb < Formula
  4
+  url 'http://chuchusoft.com/par2_tbb/par2cmdline-0.4-tbb-20100203.tar.gz'
  5
+  homepage 'http://chuchusoft.com/par2_tbb/'
  6
+  md5 'b1052a08c3c6eac8a7a0605addb161e7'
  7
+
  8
+  depends_on 'tbb'
  9
+
  10
+  def install
  11
+    # par2tbb ships with bad timestamps and
  12
+    # doesn't respect --disable-maintainer-mode
  13
+    # it ships with broken permissions too
  14
+    chmod 0755, 'install-sh'
  15
+
  16
+    # par2tbb expects to link against 10.4 / 10.5 SDKs,
  17
+    # but only 10.6+ are available on Xcode4
  18
+    inreplace 'Makefile.am', /^.*-mmacosx-version.*$/, ''
  19
+
  20
+    # NOTE: fails build with clang; doesn't recognize a x87 instruction
  21
+    #       works with llvm-g++ though.
  22
+    ENV.llvm if ENV.compiler == :clang
  23
+
  24
+    host_triplet = MacOS.prefer_64_bit? ? "x86_64-apple-darwin11" : "i686-apple-darwin11"
  25
+
  26
+    system "./configure", "--disable-debug", "--disable-dependency-tracking",
  27
+                          "--prefix=#{prefix}", "--build=#{host_triplet}",
  28
+                          "--host=#{host_triplet}"
  29
+    system "make install"
  30
+  end
  31
+
  32
+  def caveats
  33
+    <<-EOS.undent
  34
+    par2tbb is a modified fork of par2 and conflicts with its binaries.
  35
+    EOS
  36
+  end
  37
+
  38
+  def test
  39
+    system "par2"
  40
+  end
  41
+end

0 notes on commit 065ede7

Please sign in to comment.
Something went wrong with that request. Please try again.