de7098a9a4
The old url returns a 404 error. Closes Homebrew/homebrew#22742. Signed-off-by: Xiyue Deng <manphiz@gmail.com>
26 lines
896 B
Ruby
26 lines
896 B
Ruby
require 'formula'
|
|
|
|
class Abcmidi < Formula
|
|
homepage 'http://www.ifdo.ca/~seymour/runabc/top.html'
|
|
url 'http://www.ifdo.ca/~seymour/runabc/abcMIDI-2013-09-15.zip'
|
|
version '2013-09-15'
|
|
sha1 '974cfbc10d04e6b6872e361e70a308c1b78e47d9'
|
|
|
|
def install
|
|
# configure creates a "Makefile" file. A "makefile" file already exist in
|
|
# the tarball. On case-sensitive file-systems, the "makefile" file won't
|
|
# be overridden and will be chosen over the "Makefile" file.
|
|
system "rm", "makefile"
|
|
|
|
system "./configure", "--disable-debug", "--prefix=#{prefix}", "--mandir=#{man}"
|
|
# The Makefile is broken when using --prefix (value is added to path twice).
|
|
# abcmidi author is notified (2012-06-20). In the meantime, here's a fix.
|
|
inreplace "Makefile", "$(DESTDIR)${prefix}", "$(DESTDIR)"
|
|
|
|
system "make", "install"
|
|
end
|
|
|
|
def test
|
|
system "#{bin}/abc2midi"
|
|
end
|
|
end
|