45 lines
1.3 KiB
Ruby
45 lines
1.3 KiB
Ruby
class Abcm2ps < Formula
|
|
desc "ABC music notation software"
|
|
homepage "http://moinejf.free.fr"
|
|
url "https://github.com/leesavide/abcm2ps/archive/v8.14.2.tar.gz"
|
|
sha256 "496bbd6eb36e6f5ab45c56373d288329853a9c905d49cf35606eb09bc40a356b"
|
|
|
|
bottle do
|
|
sha256 "320058bf265c30f579e84da0c55fcd7bb1344ce5e7a55d5115acf98cca3a6273" => :mojave
|
|
sha256 "0a50d0b42377150386ae72402d6916f66d361f66fbed186b9c914abcff0a1c5a" => :high_sierra
|
|
sha256 "440e63459d4348940210433dc760c8434b3d3d884dfb9e2c785d7ad3c8637f5b" => :sierra
|
|
end
|
|
|
|
depends_on "pkg-config" => :build
|
|
|
|
def install
|
|
system "./configure", "--prefix=#{prefix}"
|
|
system "make", "install"
|
|
end
|
|
|
|
test do
|
|
(testpath/"voices.abc").write <<~EOS
|
|
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,-|
|
|
EOS
|
|
|
|
system "#{bin}/abcm2ps", testpath/"voices"
|
|
assert_predicate testpath/"Out.ps", :exist?
|
|
end
|
|
end
|