2012-11-04 20:19:53 +00:00
|
|
|
class Chordii < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Text file to music sheet converter"
|
2015-07-07 05:04:22 +00:00
|
|
|
homepage "http://www.vromans.org/johan/projects/Chordii/"
|
|
|
|
url "https://downloads.sourceforge.net/project/chordii/chordii/4.5/chordii-4.5.1.tar.gz"
|
|
|
|
sha256 "16a3fe92a82ca734cb6d08a573e513510acd41d4020a6306ac3769f6af5aa08d"
|
2012-11-04 20:19:53 +00:00
|
|
|
|
2015-07-07 05:55:57 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
|
|
|
sha256 "5592e19ddb7affade8a918992648c87bb92a83e201e28f8afdae87e3e3ba4c2b" => :yosemite
|
|
|
|
sha256 "f828c0158bfa52c9e136c0332ea595e788af14073082847d51bc4c96e6c909ac" => :mavericks
|
|
|
|
sha256 "532cb785f263790e7a314df2a276c2ee73de50fe630df8514586d888c0bb6281" => :mountain_lion
|
|
|
|
end
|
|
|
|
|
2012-11-04 20:19:53 +00:00
|
|
|
def install
|
|
|
|
system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}"
|
2015-07-07 05:04:22 +00:00
|
|
|
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")
|
2012-11-04 20:19:53 +00:00
|
|
|
end
|
|
|
|
end
|