23 lines
802 B
Ruby
23 lines
802 B
Ruby
class RubyInstall < Formula
|
|
desc "Install Ruby, JRuby, Rubinius, MagLev, or mruby"
|
|
homepage "https://github.com/postmodern/ruby-install#readme"
|
|
url "https://github.com/postmodern/ruby-install/archive/v0.6.1.tar.gz"
|
|
sha256 "b3adf199f8cd8f8d4a6176ab605db9ddd8521df8dbb2212f58f7b8273ed85e73"
|
|
|
|
head "https://github.com/postmodern/ruby-install.git"
|
|
|
|
bottle do
|
|
cellar :any_skip_relocation
|
|
sha256 "a9e4545b46128f0d35e25c7e558330a93a8ceaf025410610c795b9904bf241a1" => :sierra
|
|
sha256 "3b0b594e01f951b7161b36b33ae59fd0063ac05212708e6eb107bf70fd508258" => :el_capitan
|
|
sha256 "3b0b594e01f951b7161b36b33ae59fd0063ac05212708e6eb107bf70fd508258" => :yosemite
|
|
end
|
|
|
|
def install
|
|
system "make", "install", "PREFIX=#{prefix}"
|
|
end
|
|
|
|
test do
|
|
system "#{bin}/ruby-install"
|
|
end
|
|
end
|