Files
chromebrew/packages/ruby.rb
Chris Thurber 45df1bc33d Update ruby.rb
2017-12-15 22:26:44 -05:00

29 lines
863 B
Ruby

require 'package'
class Ruby < Package
description 'Ruby is a dynamic, open source programming language with a focus on simplicity and productivity.'
homepage 'https://www.ruby-lang.org/en/'
version '2.4.2'
source_url 'https://cache.ruby-lang.org/pub/ruby/ruby-2.4.2.tar.xz'
source_sha256 '748a8980d30141bd1a4124e11745bb105b436fb1890826e0d2b9ea31af27f735'
depends_on 'readline'
depends_on 'ncurses'
depends_on 'zlibpkg' => :build
depends_on 'openssl' => :build
# at run-time, system's gmp, openssl, readline and zlibpkg are possible to use
def self.build
system "CC='gcc' ./configure --prefix=#{CREW_PREFIX} --libdir=#{CREW_LIB_PREFIX} --enable-shared"
system "make"
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
def self.check
system "TMPDIR=/usr/local/tmp make check"
end
end