Commit 161752a0 authored by Damian Montero's avatar Damian Montero Committed by GitHub

Merge pull request #1423 from uberhacker/add-chruby-package

Add chruby package
parents 37acddd4 2e669edb
require 'package'
class Chruby < Package
description 'Changes the current Ruby'
homepage 'https://github.com/postmodern/chruby'
version '0.3.9'
source_url 'https://github.com/postmodern/chruby/archive/v0.3.9.tar.gz'
source_sha256 '7220a96e355b8a613929881c091ca85ec809153988d7d691299e0a16806b42fd'
binary_url ({
})
binary_sha256 ({
})
def self.build
system "make"
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
def self.postinstall
puts
puts "To finish the installation, execute the following:".lightblue
puts "echo 'if [ -f #{CREW_PREFIX}/share/chruby/chruby.sh ]; then' >> ~/.bashrc".lightblue
puts "echo ' source #{CREW_PREFIX}/share/chruby/chruby.sh' >> ~/.bashrc".lightblue
puts "echo 'fi' >> ~/.bashrc".lightblue
puts "source ~/.bashrc".lightblue
puts
end
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment