2011-03-10 05:11:03 +00:00
|
|
|
class Bchunk < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Convert CD images from .bin/.cue to .iso/.cdr"
|
2015-01-05 20:13:12 +00:00
|
|
|
homepage "http://he.fi/bchunk/"
|
|
|
|
url "http://he.fi/bchunk/bchunk-1.2.0.tar.gz"
|
2015-08-03 12:55:31 +00:00
|
|
|
sha256 "afdc9d5e38bdd16f0b8b9d9d382b0faee0b1e0494446d686a08b256446f78b5d"
|
2009-09-28 12:55:41 +00:00
|
|
|
|
|
|
|
def install
|
|
|
|
system "make"
|
2015-01-05 20:13:12 +00:00
|
|
|
bin.install "bchunk"
|
|
|
|
man1.install "bchunk.1"
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
(testpath/"foo.cue").write <<-EOS.undent
|
|
|
|
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 File.exist? testpath/"foo01.iso"
|
2009-09-28 12:55:41 +00:00
|
|
|
end
|
|
|
|
end
|