mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-05-01 03:00:26 -04:00
21 lines
425 B
Ruby
21 lines
425 B
Ruby
require 'package'
|
|
|
|
class Ruby_latest < Package
|
|
version '2.4.0'
|
|
source_url 'http://cache.ruby-lang.org/pub/ruby/ruby-2.4.0.tar.xz'
|
|
source_sha1 '038804bbd0e77508dd2510b729a9f3b325489b2e'
|
|
|
|
depends_on 'readline'
|
|
depends_on 'zlibpkg'
|
|
depends_on 'openssl'
|
|
|
|
def self.build
|
|
system "CC='gcc' ./configure"
|
|
system "make"
|
|
end
|
|
|
|
def self.install
|
|
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
|
|
end
|
|
end
|