aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/abcmidi.rb
blob: abf851d6e95b2372492bfc235051a078fa316d82 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
require 'formula'

class Abcmidi < Formula
  homepage 'http://www.ifdo.ca/~seymour/runabc/top.html'
  url 'http://www.ifdo.ca/~seymour/runabc/abcMIDI-2012-10-03.zip'
  version '2012-10-03'
  sha1 'e9c44cac26b348b8302371c3148f06ff6c291424'

  def install
    # configure --prefix flag does not work properly (value is added to path twice).
    # abcmidi author is notified. 2012-06-20
    system "./configure", "--disable-debug",
                          "--prefix="
    system "make install DESTDIR=#{prefix}"
    man.install prefix/'man/man1'
  end

  def test
    system "#{bin}/abc2midi"
  end
end