abcmidi 2014-11-18

Closes Homebrew/homebrew#34883.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
Baptiste Fontaine 2014-12-11 13:28:08 +01:00 committed by Jack Nagel
parent f76d3993db
commit 43387718e4

View file

@ -2,9 +2,9 @@ require 'formula'
class Abcmidi < Formula
homepage 'http://www.ifdo.ca/~seymour/runabc/top.html'
url 'http://www.ifdo.ca/~seymour/runabc/abcMIDI-2014-04-24.zip'
version '2014-04-24'
sha1 'be1922399afacb85a2f61296d86fbec5faab993b'
url 'http://www.ifdo.ca/~seymour/runabc/abcMIDI-2014-11-18.zip'
version '2014-11-18'
sha1 '8a4ab723c689300535f0e7eeb7c1dc50629018f3'
def install
# configure creates a "Makefile" file. A "makefile" file already exist in
@ -21,6 +21,25 @@ class Abcmidi < Formula
end
test do
system "#{bin}/abc2midi"
(testpath/"balk.abc").write <<-EOF.undent
X: 1
T: Abdala
F: http://www.youtube.com/watch?v=YMf8yXaQDiQ
L: 1/8
M: 2/4
K:Cm
Q:1/4=180
%%MIDI bassprog 32 % 32 Acoustic Bass
%%MIDI program 23 % 23 Tango Accordian
%%MIDI bassvol 69
%%MIDI gchord fzfz
|:"G"FDEC|D2C=B,|C2=B,2 |C2D2 |\
FDEC |D2C=B,|C2=B,2 |A,2G,2 :|
|:=B,CDE |D2C=B,|C2=B,2 |C2D2 |\
=B,CDE |D2C=B,|C2=B,2 |A,2G,2 :|
|:C2=B,2 |A,2G,2| C2=B,2|A,2G,2 :|
EOF
system "#{bin}/abc2midi", (testpath/"balk.abc")
end
end