diff options
| author | Jack Nagel | 2012-04-15 15:31:05 -0500 |
|---|---|---|
| committer | Jack Nagel | 2012-04-15 15:31:05 -0500 |
| commit | 985ba51eccb0950ff4a2ac0fa6a789fba7c04a35 (patch) | |
| tree | 60a26511b09c02e783435187faf4423fc78221dc /Library/Formula | |
| parent | 30d2ffb8f51cd7a0f28e704bfca7f00eec282151 (diff) | |
| download | homebrew-985ba51eccb0950ff4a2ac0fa6a789fba7c04a35.tar.bz2 | |
sdl: remove unneeded inreplace method
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/sdl.rb | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/Library/Formula/sdl.rb b/Library/Formula/sdl.rb index f6555c920..055aec1b5 100644 --- a/Library/Formula/sdl.rb +++ b/Library/Formula/sdl.rb @@ -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? |
