aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorFrizlab2013-04-03 06:39:26 +0200
committerAdam Vandenberg2013-04-04 08:57:25 -0700
commite3302e440f2c7428209feab2e79adf1d4d887de0 (patch)
tree1258b25067eb54a1bfe9be0743963824c75f92de /Library/Formula
parent67e7160b65cfc729cc8207bd81977c1b541f7270 (diff)
downloadhomebrew-e3302e440f2c7428209feab2e79adf1d4d887de0.tar.bz2
abcmidi 2013-03-26
Closes #18925. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/abcmidi.rb22
1 files changed, 14 insertions, 8 deletions
diff --git a/Library/Formula/abcmidi.rb b/Library/Formula/abcmidi.rb
index 82fea8fe6..27a34d9c5 100644
--- a/Library/Formula/abcmidi.rb
+++ b/Library/Formula/abcmidi.rb
@@ -2,16 +2,22 @@ require 'formula'
class Abcmidi < Formula
homepage 'http://www.ifdo.ca/~seymour/runabc/top.html'
- url 'http://www.ifdo.ca/~seymour/runabc/abcMIDI-2012-12-25.zip'
- version '2012-12-25'
- sha1 '5c07824fab43e4057be671dc94afa4335cde05f1'
+ url 'http://www.ifdo.ca/~seymour/runabc/abcMIDI-2013-03-26.zip'
+ version '2013-03-26'
+ sha1 '723ef4745255681ce274c0ff2109a22b1be2ed88'
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'
+ # 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