aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorRob Olson2011-07-10 11:49:47 -0700
committerAdam Vandenberg2011-07-10 14:07:26 -0700
commitf3cdc91d3dc941162b5c46ba169bd6a8be591613 (patch)
tree5f89bd2b68aecbc975a21a73349d7bc2baf89096 /Library/Formula
parentf4973591d0a6e2a6133e255fca395643fdc99b64 (diff)
downloadhomebrew-f3cdc91d3dc941162b5c46ba169bd6a8be591613.tar.bz2
Pianobar 2011.07.09
Instead of forcing c99 use gcc in c99 mode Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/pianobar.rb18
1 files changed, 5 insertions, 13 deletions
diff --git a/Library/Formula/pianobar.rb b/Library/Formula/pianobar.rb
index 8db451b6f..cfe8b23c7 100644
--- a/Library/Formula/pianobar.rb
+++ b/Library/Formula/pianobar.rb
@@ -1,10 +1,10 @@
require 'formula'
class Pianobar < Formula
- url 'https://github.com/PromyLOPh/pianobar/zipball/2011.04.27'
- version '2011.04.27'
+ url 'https://github.com/PromyLOPh/pianobar/zipball/2011.07.09'
+ version '2011.07.09'
homepage 'https://github.com/PromyLOPh/pianobar/'
- md5 '1e83f851e92792bd6e59decc4a6b3662'
+ md5 '5a19a10c83c1bf42ee4360e1a9773dfd'
head 'https://github.com/PromyLOPh/pianobar.git'
@@ -17,16 +17,8 @@ class Pianobar < Formula
fails_with_llvm "Reports of this not compiling on Xcode 4"
def install
- ENV.delete 'CFLAGS' # Pianobar uses c99 instead of gcc; remove our gcc flags.
-
- # Enable 64-bit builds if needed
- w_flag = MacOS.prefer_64_bit? ? "-W64" : ""
- # Help non-default install paths
- lib_path = HOMEBREW_PREFIX.to_s == "/usr/local" ? "" : " -I#{HOMEBREW_PREFIX}/include -L#{HOMEBREW_PREFIX}/lib"
-
- inreplace "Makefile" do |s|
- s.gsub! "-O2 -DNDEBUG", "-O2 -DNDEBUG #{w_flag} #{lib_path}"
- end
+ # Force GCC into c99 mode
+ ENV.append 'CFLAGS', "-std=c99"
system "make", "PREFIX=#{prefix}"
system "make", "install", "PREFIX=#{prefix}"