diff options
| author | Jack Nagel | 2012-07-10 16:01:02 -0500 |
|---|---|---|
| committer | Jack Nagel | 2012-08-18 11:12:08 -0500 |
| commit | 4affbabfb7aef915f716531ad0a39eff04ff9933 (patch) | |
| tree | 9aeaede98bc672698de936cd0e180eccb0736324 /Library/Formula | |
| parent | 7cfc6beaefb35910cabbb48d58dc81606c1885ec (diff) | |
| download | homebrew-4affbabfb7aef915f716531ad0a39eff04ff9933.tar.bz2 | |
Replace version strings with Version objects
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/bash.rb | 2 | ||||
| -rw-r--r-- | Library/Formula/lua.rb | 2 | ||||
| -rw-r--r-- | Library/Formula/shapelib.rb | 2 | ||||
| -rw-r--r-- | Library/Formula/sip.rb | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/Library/Formula/bash.rb b/Library/Formula/bash.rb index 60d61e53e..fd8f574e6 100644 --- a/Library/Formula/bash.rb +++ b/Library/Formula/bash.rb @@ -10,7 +10,7 @@ class Bash < Formula depends_on 'readline' def patches - patch_level = version.split('.').last.to_i + patch_level = version.to_s.split('.').last.to_i {'p0' => (1..patch_level).map { |i| "http://ftpmirror.gnu.org/bash/bash-4.2-patches/bash42-%03d" % i }} end diff --git a/Library/Formula/lua.rb b/Library/Formula/lua.rb index 35cd2ccd8..42832313c 100644 --- a/Library/Formula/lua.rb +++ b/Library/Formula/lua.rb @@ -53,7 +53,7 @@ class Lua < Formula # this ensures that this symlinking for lua starts at lib/lua/5.1 and not # below that, thus making luarocks work - (HOMEBREW_PREFIX/"lib/lua"/version.split('.')[0..1].join('.')).mkpath + (HOMEBREW_PREFIX/"lib/lua"/version.to_s.split('.')[0..1].join('.')).mkpath system "make", "macosx", "INSTALL_TOP=#{prefix}", "INSTALL_MAN=#{man1}" system "make", "install", "INSTALL_TOP=#{prefix}", "INSTALL_MAN=#{man1}" diff --git a/Library/Formula/shapelib.rb b/Library/Formula/shapelib.rb index d75a4b083..b5f9fd782 100644 --- a/Library/Formula/shapelib.rb +++ b/Library/Formula/shapelib.rb @@ -25,7 +25,7 @@ class Shapelib < Formula include.install 'shapefil.h' cd lib do - ln_s "libshp.#{version}.dylib", "libshp.#{version.split('.').first}.dylib" + ln_s "libshp.#{version}.dylib", "libshp.#{version.to_s.split('.').first}.dylib" ln_s "libshp.#{version}.dylib", "libshp.dylib" end end diff --git a/Library/Formula/sip.rb b/Library/Formula/sip.rb index 1e142c252..a29f04060 100644 --- a/Library/Formula/sip.rb +++ b/Library/Formula/sip.rb @@ -28,7 +28,7 @@ class Sip < Formula else sip_version = version end - inreplace 'build.py', /@SIP_VERSION@/, (sip_version.gsub '.', ',') + inreplace 'build.py', /@SIP_VERSION@/, (sip_version.to_s.gsub '.', ',') system "python", "build.py", "prepare" # Set --destdir such that the python modules will be in the HOMEBREWPREFIX/lib/pythonX.Y/site-packages |
