2013-04-03 14:20:03 +00:00
|
|
|
class Abcm2ps < Formula
|
2014-05-18 22:56:30 +00:00
|
|
|
homepage "http://moinejf.free.fr"
|
2015-04-17 18:12:21 +00:00
|
|
|
url "http://moinejf.free.fr/abcm2ps-7.8.14.tar.gz"
|
|
|
|
sha256 "31c55865a914d56c12e2b7cbeaf5e4a09b47bbe79f1c7b5cd1576a16f3753d07"
|
2014-07-31 02:04:17 +00:00
|
|
|
|
2014-06-29 03:47:43 +00:00
|
|
|
bottle do
|
2015-04-17 18:40:20 +00:00
|
|
|
sha256 "3f3cbc0a52593625dd5d14cfc4678f92dcfcbf13a88bb3f51d8dd2544137b396" => :yosemite
|
|
|
|
sha256 "11dc20c7dc6bc5e71df0cc7df303df3027de9663f3c7cdc1425151b8007081dc" => :mavericks
|
|
|
|
sha256 "904a9114ad88c9482bc8c3b7d9366ce3f2bde2e3ee324da54f9c5e70932d6c7e" => :mountain_lion
|
2014-06-29 03:47:43 +00:00
|
|
|
end
|
|
|
|
|
2014-05-18 22:56:30 +00:00
|
|
|
devel do
|
2015-05-16 23:02:18 +00:00
|
|
|
url "http://moinejf.free.fr/abcm2ps-8.7.8.tar.gz"
|
|
|
|
sha256 "f9120e8ffd8e9eba3095fc800c7cceca5017eadeedcc2e1e19d7c59082201cbc"
|
2014-05-18 22:56:30 +00:00
|
|
|
end
|
|
|
|
|
2014-08-25 00:53:36 +00:00
|
|
|
depends_on "pkg-config" => :build
|
2014-05-18 22:56:30 +00:00
|
|
|
depends_on "pango" => :optional
|
2013-04-03 14:20:03 +00:00
|
|
|
|
|
|
|
def install
|
|
|
|
system "./configure", "--prefix=#{prefix}"
|
2014-05-18 22:56:30 +00:00
|
|
|
system "make", "install"
|
2013-04-03 14:20:03 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
2014-12-11 12:15:37 +00:00
|
|
|
(testpath/"voices.abc").write <<-EOF.undent
|
|
|
|
X:7
|
|
|
|
T:Qui Tolis (Trio)
|
2014-12-17 23:28:02 +00:00
|
|
|
C:Andre Raison
|
2014-12-11 12:15:37 +00:00
|
|
|
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")
|
2013-04-03 14:20:03 +00:00
|
|
|
end
|
|
|
|
end
|