ruby 2.4
* remove tcl/tk support https://bugs.ruby-lang.org/issues/8539 * remove unnecessary patches.
This commit is contained in:
parent
f45e21ce75
commit
959329b8ad
1 changed files with 5 additions and 30 deletions
|
@ -1,21 +1,8 @@
|
|||
class Ruby < Formula
|
||||
desc "Powerful, clean, object-oriented scripting language"
|
||||
homepage "https://www.ruby-lang.org/"
|
||||
|
||||
stable do
|
||||
url "https://cache.ruby-lang.org/pub/ruby/2.3/ruby-2.3.3.tar.bz2"
|
||||
sha256 "882e6146ed26c6e78c02342835f5d46b86de95f0dc4e16543294bc656594cc5b"
|
||||
|
||||
# Reverts an upstream commit which incorrectly tries to install headers
|
||||
# into SDKROOT, if defined
|
||||
# See https://bugs.ruby-lang.org/issues/11881
|
||||
# The issue has been fixed on HEAD as of 1 Jan 2016, but has not been
|
||||
# backported to the 2.3 branch yet and patch is still required.
|
||||
patch do
|
||||
url "https://raw.githubusercontent.com/Homebrew/formula-patches/ba8cc6b88e6b7153ac37739e5a1a6bbbd8f43817/ruby/mkconfig.patch"
|
||||
sha256 "929c618f74e89a5e42d899a962d7d2e4af75716523193af42626884eaba1d765"
|
||||
end
|
||||
end
|
||||
url "https://cache.ruby-lang.org/pub/ruby/2.4/ruby-2.4.0.tar.bz2"
|
||||
sha256 "440bbbdc49d08d3650f340dccb35986d9399177ad69a204def56e5d3954600cf"
|
||||
|
||||
bottle do
|
||||
sha256 "ecad7a8204378568faccc24bef41076b40d6ce3ab1958e679f09ca344ac9dad1" => :sierra
|
||||
|
@ -23,21 +10,14 @@ class Ruby < Formula
|
|||
sha256 "7f9a5afa469631f8b2c4fc914043ef2fcc2f69b790cec7a9707c80549a7f23ad" => :yosemite
|
||||
end
|
||||
|
||||
devel do
|
||||
url "https://cache.ruby-lang.org/pub/ruby/2.4/ruby-2.4.0-preview3.tar.xz"
|
||||
version "2.4.0-beta3"
|
||||
sha256 "b14be2b5c80bff0d6894ae2b37afdb17a968413e70236ec860f3e2d670b4c317"
|
||||
end
|
||||
|
||||
head do
|
||||
url "http://svn.ruby-lang.org/repos/ruby/trunk/"
|
||||
depends_on "autoconf" => :build
|
||||
end
|
||||
|
||||
option :universal
|
||||
option "with-suffix", "Suffix commands with '23'"
|
||||
option "with-suffix", "Suffix commands with '24'"
|
||||
option "with-doc", "Install documentation"
|
||||
option "with-tcltk", "Install with Tcl/Tk support"
|
||||
|
||||
depends_on "pkg-config" => :build
|
||||
depends_on "readline" => :recommended
|
||||
|
@ -46,7 +26,6 @@ class Ruby < Formula
|
|||
depends_on "libffi" => :optional
|
||||
depends_on "libyaml"
|
||||
depends_on "openssl"
|
||||
depends_on :x11 if build.with? "tcltk"
|
||||
|
||||
def install
|
||||
# otherwise `gem` command breaks
|
||||
|
@ -68,14 +47,10 @@ class Ruby < Formula
|
|||
end
|
||||
|
||||
args << "--program-suffix=#{program_suffix}" if build.with? "suffix"
|
||||
args << "--with-out-ext=tk" if build.without? "tcltk"
|
||||
args << "--disable-install-doc" if build.without? "doc"
|
||||
args << "--disable-dtrace" unless MacOS::CLT.installed?
|
||||
args << "--without-gmp" if build.without? "gmp"
|
||||
|
||||
# Reported upstream: https://bugs.ruby-lang.org/issues/10272
|
||||
args << "--with-setjmp-type=setjmp" if MacOS.version == :lion
|
||||
|
||||
paths = [
|
||||
Formula["libyaml"].opt_prefix,
|
||||
Formula["openssl"].opt_prefix,
|
||||
|
@ -124,11 +99,11 @@ class Ruby < Formula
|
|||
end
|
||||
|
||||
def abi_version
|
||||
"2.3.0"
|
||||
"2.4.0"
|
||||
end
|
||||
|
||||
def program_suffix
|
||||
build.with?("suffix") ? "23" : ""
|
||||
build.with?("suffix") ? "24" : ""
|
||||
end
|
||||
|
||||
def rubygems_bindir
|
||||
|
|
Loading…
Reference in a new issue