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'
|
2012-10-26 02:33:52 +00:00
|
|
|
sha1 '6453ab5f0ee76800fdfdb5d10fe607250c9ea330'
|
2011-12-16 00:04:42 +00:00
|
|
|
|
2014-05-16 19:10:23 +00:00
|
|
|
depends_on "autoconf" => :build
|
|
|
|
depends_on "automake" => :build
|
|
|
|
depends_on "libtool" => :build
|
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
|
2014-05-16 19:10:23 +00:00
|
|
|
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"
|
2011-12-16 00:04:42 +00:00
|
|
|
end
|
|
|
|
|
2013-09-13 16:31:50 +00:00
|
|
|
test do
|
|
|
|
(testpath/'test.out').write "test"
|
|
|
|
system "#{bin}/par2", 'create', 'test', 'test.out'
|
|
|
|
system "#{bin}/par2", 'verify', 'test.par2'
|
2011-12-16 00:04:42 +00:00
|
|
|
end
|
|
|
|
end
|