aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/mpg123.rb
diff options
context:
space:
mode:
authorAdam Vandenberg2010-02-19 11:19:01 -0800
committerAdam Vandenberg2010-02-21 23:37:49 -0800
commitaad4dc23ece5869165b23f9637475503d2491db8 (patch)
tree733f6c214af986df9db5c04728588fadaae2fbb2 /Library/Formula/mpg123.rb
parenta6caeff4507f4502f5b9d9435ba009564e7c0669 (diff)
downloadhomebrew-aad4dc23ece5869165b23f9637475503d2491db8.tar.bz2
Use more inreplace features.
Update formulas to make more idiomatic use of "inreplace", including its new ability to take a list of files to act on.
Diffstat (limited to 'Library/Formula/mpg123.rb')
-rw-r--r--Library/Formula/mpg123.rb12
1 files changed, 5 insertions, 7 deletions
diff --git a/Library/Formula/mpg123.rb b/Library/Formula/mpg123.rb
index 6d2bdae90..18e060f4e 100644
--- a/Library/Formula/mpg123.rb
+++ b/Library/Formula/mpg123.rb
@@ -28,13 +28,11 @@ class Mpg123 <Formula
system "./configure", *args
# ./configure incorrectly detects 10.5 as 10.4. Cut that crap out.
- ['', 'src/', 'src/output/', 'src/libmpg123/'].each do |path|
- inreplace "#{path}Makefile", # CFLAGS
- "-mmacosx-version-min=10.4 -isysroot /Developer/SDKs/MacOSX10.4u.sdk", ""
-
- inreplace "#{path}Makefile", # LDFLAGS
- "LDFLAGS = -Wl,-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk -Wl,-classic_linker -Wl,-read_only_relocs,suppress",
- "LDFLAGS = -Wl,-read_only_relocs,suppress"
+ ['.', 'src', 'src/output', 'src/libmpg123'].each do |path|
+ inreplace "#{path}/Makefile" do |s|
+ s.gsub! "-mmacosx-version-min=10.4 -isysroot /Developer/SDKs/MacOSX10.4u.sdk", ""
+ s.change_make_var! "LDFLAGS", "-Wl,-read_only_relocs,suppress"
+ end
end
system "make install"