Last active
August 29, 2015 14:04
-
-
Save jonashaag/92d72fb2934af227694a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'formula' | |
class Libmp3splt < Formula | |
homepage 'http://mp3splt.sourceforge.net' | |
url 'https://downloads.sourceforge.net/project/mp3splt/libmp3splt/0.9.1a/libmp3splt-0.9.1a.tar.gz' | |
sha1 '189ecef22274d599f8503e77da26c7a27264d740' | |
bottle do | |
sha1 "cd939c062ad24486c1414236ed8501b9fc5307de" => :mavericks | |
sha1 "2ea059a18c4bcfc9bfbed32874ad60e363b908e1" => :mountain_lion | |
sha1 "bab1bccca90ffc78f535dc469713267f9eb462cb" => :lion | |
end | |
depends_on 'libtool' => :build | |
depends_on 'pkg-config' => :build | |
depends_on 'gettext' | |
depends_on 'pcre' | |
depends_on 'libid3tag' | |
depends_on 'mad' | |
depends_on 'libvorbis' | |
def install | |
system "./configure", "--disable-debug", | |
"--disable-dependency-tracking", | |
"--prefix=#{prefix}" | |
system "make install" | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'formula' | |
class Mp3splt < Formula | |
homepage 'http://mp3splt.sourceforge.net' | |
url 'https://downloads.sourceforge.net/project/mp3splt/mp3splt/2.6.1a/mp3splt-2.6.1a.tar.gz' | |
sha1 'd93b80d8a62993470332830e5daff344c0d67523' | |
depends_on 'libmp3splt' | |
depends_on 'pkg-config' | |
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment