mirror of
https://github.com/mistydemeo/tigerbrew.git
synced 2026-11-27 11:29:53 -05:00
* Added a definition for 1.9.3-p385 Closes #17636. Signed-off-by: Misty De Meo <mistydemeo@gmail.com>
23 lines
600 B
Ruby
23 lines
600 B
Ruby
require 'formula'
|
|
|
|
class RubyBuild < Formula
|
|
homepage 'https://github.com/sstephenson/ruby-build'
|
|
url 'https://github.com/sstephenson/ruby-build/tarball/v20130206'
|
|
sha1 '2a19a3420f831ba896aac161c8bb18c65ef272ab'
|
|
|
|
head 'https://github.com/sstephenson/ruby-build.git'
|
|
|
|
option "without-rbenv", "Don't install as an rbenv plugin"
|
|
|
|
depends_on 'rbenv' unless build.include? 'without-rbenv'
|
|
|
|
def install
|
|
ENV['PREFIX'] = prefix
|
|
system "./install.sh"
|
|
|
|
unless build.include? 'without-rbenv'
|
|
ln_sf opt_prefix, "#{HOMEBREW_PREFIX}/var/lib/rbenv/plugins/#{name}"
|
|
end
|
|
end
|
|
end
|