homebrew-core/Formula/bchunk.rb
2015-06-05 14:47:57 +01:00

25 lines
572 B
Ruby

class Bchunk < Formula
desc "Convert CD images from .bin/.cue to .iso/.cdr"
homepage "http://he.fi/bchunk/"
url "http://he.fi/bchunk/bchunk-1.2.0.tar.gz"
sha1 "a328e4665eb5e51df63d8d27d1d75ecc74bdef9e"
def install
system "make"
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"
end
end