aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorJack Nagel2012-03-05 16:27:31 -0600
committerJack Nagel2012-03-05 16:28:33 -0600
commitbc7a97da2710cab502f798984da65116696b0c7b (patch)
tree87c1615c96d94a6463b250d3853786aae22184aa /Library/Formula
parent821be6ae479fd6645c5ac362873f13c06de751e7 (diff)
downloadhomebrew-bc7a97da2710cab502f798984da65116696b0c7b.tar.bz2
streamripper: fix build for non-/usr/local installs
Fixes #10623. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/streamripper.rb13
1 files changed, 10 insertions, 3 deletions
diff --git a/Library/Formula/streamripper.rb b/Library/Formula/streamripper.rb
index 4f01333fe..6ab35681c 100644
--- a/Library/Formula/streamripper.rb
+++ b/Library/Formula/streamripper.rb
@@ -1,8 +1,8 @@
require 'formula'
class Streamripper < Formula
- url 'http://downloads.sourceforge.net/sourceforge/streamripper/streamripper-1.64.6.tar.gz'
homepage 'http://streamripper.sourceforge.net/'
+ url 'http://downloads.sourceforge.net/sourceforge/streamripper/streamripper-1.64.6.tar.gz'
md5 'a37a1a8b8f9228522196a122a1c2dd32'
depends_on 'glib'
@@ -10,8 +10,15 @@ class Streamripper < Formula
fails_with_llvm "Strange runtime errors with LLVM.", :build => 2335
def install
- File.chmod 0755, "./install-sh" # without this 'make install' doesn't seem to work (permission denied)
- system "./configure", "--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking"
+ # 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"
system "make install"
end
end