2009-12-25 21:31:55 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Streamripper < Formula
|
2009-12-25 21:31:55 +00:00
|
|
|
homepage 'http://streamripper.sourceforge.net/'
|
2012-03-05 22:27:31 +00:00
|
|
|
url 'http://downloads.sourceforge.net/sourceforge/streamripper/streamripper-1.64.6.tar.gz'
|
2012-09-03 18:33:56 +00:00
|
|
|
sha1 'bc8a8d3ad045e0772ca691d2063c39efcc0dca45'
|
2009-12-25 21:31:55 +00:00
|
|
|
|
2013-02-10 06:28:18 +00:00
|
|
|
depends_on 'pkg-config' => :build
|
2009-12-25 21:31:55 +00:00
|
|
|
depends_on 'glib'
|
|
|
|
|
2012-03-18 20:33:24 +00:00
|
|
|
fails_with :llvm do
|
|
|
|
build 2335
|
|
|
|
cause "Strange runtime errors with LLVM."
|
|
|
|
end
|
2011-03-21 21:24:22 +00:00
|
|
|
|
2009-12-25 21:31:55 +00:00
|
|
|
def install
|
2012-03-05 22:27:31 +00:00
|
|
|
# the Makefile ignores CPPFLAGS from the environment, which
|
|
|
|
# breaks the build when HOMEBREW_PREFIX is not /usr/local
|
|
|
|
ENV.append_to_cflags ENV.cppflags
|
|
|
|
|
|
|
|
chmod 0755, "./install-sh" # or "make install" fails
|
|
|
|
|
|
|
|
system "./configure", "--prefix=#{prefix}",
|
|
|
|
"--disable-debug",
|
|
|
|
"--disable-dependency-tracking"
|
2009-12-25 21:31:55 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|