2012-06-19 20:19:41 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Abcmidi < Formula
|
|
|
|
homepage 'http://www.ifdo.ca/~seymour/runabc/top.html'
|
2013-11-29 02:21:02 +00:00
|
|
|
url 'http://www.ifdo.ca/~seymour/runabc/abcMIDI-2013-11-26.zip'
|
|
|
|
version '2013-11-26'
|
|
|
|
sha1 '3e743b2a89404ad5a7d7f51c48cc2a32ba50654b'
|
2012-06-19 20:19:41 +00:00
|
|
|
|
|
|
|
def install
|
2013-04-03 04:39:26 +00:00
|
|
|
# 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"
|
2012-06-19 20:19:41 +00:00
|
|
|
end
|
|
|
|
|
2014-02-23 21:31:41 +00:00
|
|
|
test do
|
2012-06-19 20:19:41 +00:00
|
|
|
system "#{bin}/abc2midi"
|
|
|
|
end
|
|
|
|
end
|