aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2013-02-17 21:29:46 -0600
committerJack Nagel2013-02-17 21:29:46 -0600
commitf1bdb025932267ef58c651e2d418df1e0de27219 (patch)
tree8c996c00683adde9419212fd3ba50cf9416934d5 /Library
parent344c8d0d830a6fb7839a0844550e26b589d9b3e5 (diff)
downloadhomebrew-f1bdb025932267ef58c651e2d418df1e0de27219.tar.bz2
mp3splt: fix use of getline()
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/mp3splt.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/Library/Formula/mp3splt.rb b/Library/Formula/mp3splt.rb
index cda965be2..07e917950 100644
--- a/Library/Formula/mp3splt.rb
+++ b/Library/Formula/mp3splt.rb
@@ -8,6 +8,11 @@ class Mp3splt < Formula
depends_on 'libmp3splt'
def install
+ # Use of getline(); see https://sourceforge.net/p/mp3splt/bugs/149/
+ if MacOS.version <= :snow_leopard
+ inreplace 'src/freedb.c', /getline\(&(.+, )&(.+, .+\) == )-1/, 'fgets(\1\2NULL'
+ end
+
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}"
system "make install"