homebrew-core/Formula/chordii.rb
2017-09-05 11:52:56 -07:00

32 lines
1.1 KiB
Ruby

class Chordii < Formula
desc "Text file to music sheet converter"
homepage "https://www.vromans.org/johan/projects/Chordii/"
url "https://downloads.sourceforge.net/project/chordii/chordii/4.5/chordii-4.5.3.tar.gz"
sha256 "140d24a8bc8c298e8db1b9ca04cf02890951aa048a656adb7ee7212c42ce8d06"
bottle do
cellar :any_skip_relocation
sha256 "5eed38c2781095a1ea852e8407d791ee09c87f06e8d596e49e3abb685f8234ad" => :sierra
sha256 "99c022cf0741bca48fd78d1bc5b5f0488e720321133a1357412d2342527a1dd8" => :el_capitan
sha256 "02cca7ec07939f7b29f1f2c844d250caaa9b7ba7d19e51f9e3eeb636d51b72d4" => :yosemite
end
def install
system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}"
system "make", "install"
end
test do
(testpath/"homebrew.cho").write <<-EOS.undent
{title:Homebrew}
{subtitle:I can't write lyrics. Send help}
[C]Thank [G]You [F]Everyone,
[C]We couldn't maintain [F]Homebrew without you,
[G]Here's an appreciative song from us to [C]you.
EOS
system bin/"chordii", "--output=#{testpath}/homebrew.ps", "homebrew.cho"
assert File.exist?("homebrew.ps")
end
end