2017-11-13 10:33:40 +00:00
|
|
|
class Bchunk < Formula
|
|
|
|
desc "Convert CD images from .bin/.cue to .iso/.cdr"
|
|
|
|
homepage "http://he.fi/bchunk/"
|
2017-11-14 07:50:10 +00:00
|
|
|
url "http://he.fi/bchunk/bchunk-1.2.2.tar.gz"
|
|
|
|
sha256 "e7d99b5b60ff0b94c540379f6396a670210400124544fb1af985dd3551eabd89"
|
|
|
|
head "https://github.com/hessu/bchunk.git"
|
2017-11-13 10:33:40 +00:00
|
|
|
|
|
|
|
bottle do
|
|
|
|
cellar :any_skip_relocation
|
2017-11-14 07:58:10 +00:00
|
|
|
sha256 "d6183607b5b987345ee3380263819f1d5e12f2f3cc9f6fd55accfbf92c26d5ef" => :high_sierra
|
|
|
|
sha256 "95ef5fddc2234902187dde834690fb5957bd99ce11403e3d0f8881a705bb8f27" => :sierra
|
|
|
|
sha256 "665af973709071e982939f37ba39c79c6e41f7f18277d65670475ba9d8315f94" => :el_capitan
|
2017-11-13 10:33:40 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
def install
|
|
|
|
system "make"
|
|
|
|
bin.install "bchunk"
|
|
|
|
man1.install "bchunk.1"
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
(testpath/"foo.cue").write <<~EOS
|
|
|
|
foo.bin BINARY
|
|
|
|
TRACK 01 MODE1/2352
|
|
|
|
INDEX 01 00:00:00
|
|
|
|
EOS
|
|
|
|
|
|
|
|
touch testpath/"foo.bin"
|
|
|
|
|
|
|
|
system "#{bin}/bchunk", "foo.bin", "foo.cue", "foo"
|
|
|
|
assert_predicate testpath/"foo01.iso", :exist?
|
|
|
|
end
|
|
|
|
end
|