2011-12-16 00:04:42 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Par2tbb < Formula
|
|
|
|
homepage 'http://chuchusoft.com/par2_tbb/'
|
2012-07-28 16:02:46 +00:00
|
|
|
url 'http://chuchusoft.com/par2_tbb/par2cmdline-0.4-tbb-20100203.tar.gz'
|
|
|
|
sha1 '2fcdc932b5d7b4b1c68c4a4ca855ca913d464d2f'
|
2011-12-16 00:04:42 +00:00
|
|
|
|
|
|
|
depends_on 'tbb'
|
|
|
|
|
2012-07-30 17:26:52 +00:00
|
|
|
conflicts_with "par2",
|
|
|
|
:because => "par2tbb and par2 install the same binaries."
|
2012-07-28 16:02:46 +00:00
|
|
|
|
2012-03-18 20:33:24 +00:00
|
|
|
fails_with :clang do
|
|
|
|
build 318
|
|
|
|
end
|
|
|
|
|
2011-12-16 00:04:42 +00:00
|
|
|
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
|
2012-05-05 21:49:00 +00:00
|
|
|
system "#{bin}/par2"
|
2011-12-16 00:04:42 +00:00
|
|
|
end
|
|
|
|
end
|