aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/ruby-odbc.rb
diff options
context:
space:
mode:
authorAdam Vandenberg2010-02-15 14:46:58 -0800
committerAdam Vandenberg2010-02-15 14:46:58 -0800
commit5a5aa0158dd05502510f63ceba206877bffb2b80 (patch)
tree778bb4a5e1ea69a0b617192f84d610ead3d83926 /Library/Formula/ruby-odbc.rb
parentb7a88b7e77bf6acc08a9178302a7cf2437509e26 (diff)
downloadhomebrew-5a5aa0158dd05502510f63ceba206877bffb2b80.tar.bz2
ruby-odbc - use change_make_var
Diffstat (limited to 'Library/Formula/ruby-odbc.rb')
-rw-r--r--Library/Formula/ruby-odbc.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/Library/Formula/ruby-odbc.rb b/Library/Formula/ruby-odbc.rb
index a1369ea3a..5f8de60f3 100644
--- a/Library/Formula/ruby-odbc.rb
+++ b/Library/Formula/ruby-odbc.rb
@@ -16,8 +16,10 @@ class RubyOdbc < Formula
#
# The following modifications to the Makefile ensure that it is installed
# within your homebrew directories.
- inreplace 'Makefile', /^prefix = .*$/, "prefix = #{prefix}"
- inreplace 'Makefile', /^sitearchdir = .*$/, "sitearchdir = #{prefix}/lib"
+ inreplace 'Makefile' do |s|
+ s.change_make_var! "prefix", prefix
+ s.change_make_var! "sitearchdir", lib
+ end
system 'make'
system 'make install'