Permalink
Browse files

sdl: remove unneeded inreplace method

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
  • Loading branch information...
1 parent 30d2ffb commit 985ba51eccb0950ff4a2ac0fa6a789fba7c04a35 @jacknagel jacknagel committed Apr 15, 2012
Showing with 4 additions and 8 deletions.
  1. +4 −8 Library/Formula/sdl.rb
View
@@ -12,19 +12,15 @@ class Sdl < Formula
depends_on "libtool" => :build
end
- # we have to do this because most build scripts assume that all sdl modules
- # are installed to the same prefix. Consequently SDL stuff cannot be
- # keg-only but I doubt that will be needed.
- def self.use_homebrew_prefix files
- inreplace files, '@prefix@', HOMEBREW_PREFIX
- end
-
def options
[['--universal', 'Build universal binaries.']]
end
def install
- Sdl.use_homebrew_prefix %w[sdl.pc.in sdl-config.in]
+ # we have to do this because most build scripts assume that all sdl modules
+ # are installed to the same prefix. Consequently SDL stuff cannot be
+ # keg-only but I doubt that will be needed.
+ inreplace %w[sdl.pc.in sdl-config.in], '@prefix@', HOMEBREW_PREFIX
ENV.universal_binary if ARGV.build_universal?

0 comments on commit 985ba51

Please sign in to comment.