homebrew-core/Formula/mp3splt.rb
Jaime Marquínez Ferrándiz 74c83fa9f6 Batch convert http download urls from SourceForge to https
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2014-03-02 09:16:53 -08:00

20 lines
619 B
Ruby

require 'formula'
class Mp3splt < Formula
homepage 'http://mp3splt.sourceforge.net'
url 'https://downloads.sourceforge.net/project/mp3splt/mp3splt/2.5.1/mp3splt-2.5.1.tar.gz'
sha1 '75551f12f349312d2e8fcc58bbadab134e9e3a99'
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"
end
end