homebrew-core/Formula/par2tbb.rb
nibbles 2bits 79115be936 par2tbb: revert sha1
The sha1 for par2tbb was changed in 2814e3a9 but it's not right.
Correct the sha1 to be that of the download tarball. This change
matches the sha1 of the old tarball in my cache from March 20th.

Fixes Homebrew/homebrew#15666

Closes Homebrew/homebrew#15674.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-10-25 21:15:15 -07:00

38 lines
1.1 KiB
Ruby

require 'formula'
class Par2tbb < Formula
homepage 'http://chuchusoft.com/par2_tbb/'
url 'http://chuchusoft.com/par2_tbb/par2cmdline-0.4-tbb-20100203.tar.gz'
sha1 '6453ab5f0ee76800fdfdb5d10fe607250c9ea330'
depends_on 'tbb'
conflicts_with "par2",
:because => "par2tbb and par2 install the same binaries."
fails_with :clang do
build 318
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"
end
def test
system "#{bin}/par2"
end
end