homebrew-core/Formula/abcm2ps.rb

52 lines
1.3 KiB
Ruby
Raw Normal View History

require "formula"
class Abcm2ps < Formula
homepage "http://moinejf.free.fr"
2015-02-06 11:57:49 +00:00
url "http://moinejf.free.fr/abcm2ps-7.8.13.tar.gz"
sha1 "09bbcde58e358c11a5a28de05d48be3a7eb94a4e"
2014-07-31 02:04:17 +00:00
2014-06-29 03:47:43 +00:00
bottle do
2015-02-06 15:08:48 +00:00
sha1 "217a460210f211fcb7f55298d321c54fa3f6aa06" => :yosemite
sha1 "913c288274a40b8d5359384649650de5ec69962f" => :mavericks
sha1 "c714244c5af504abb74c1962c5574b6afac25b61" => :mountain_lion
2014-06-29 03:47:43 +00:00
end
devel do
url "http://moinejf.free.fr/abcm2ps-8.5.2.tar.gz"
sha1 "71362859696c379b371814698d5272964e1aa2bd"
end
depends_on "pkg-config" => :build
depends_on "pango" => :optional
def install
system "./configure", "--prefix=#{prefix}"
system "make", "install"
end
test do
(testpath/"voices.abc").write <<-EOF.undent
X:7
T:Qui Tolis (Trio)
C:Andre Raison
M:3/4
L:1/4
Q:1/4=92
%%staves {(Pos1 Pos2) Trompette}
K:F
%
V:Pos1
%%MIDI program 78
"Positif"x3 |x3|c'>ba|Pga/g/f|:g2a |ba2 |g2c- |c2P=B |c>de |fga |
V:Pos2
%%MIDI program 78
Mf>ed|cd/c/B|PA2d |ef/e/d |:e2f |ef2 |c>BA |GA/G/F |E>FG |ABc- |
V:Trompette
%%MIDI program 56
"Trompette"z3|z3 |z3 |z3 |:Mc>BA|PGA/G/F|PE>EF|PEF/E/D|C>CPB,|A,G,F,-|
EOF
system "#{bin}/abcm2ps", (testpath/"voices")
end
end