Skip to content
This repository was archived by the owner on Sep 30, 2025. It is now read-only.

Commit 5cec698

Browse files
authored
Merge pull request #64 from MikeMcQuaid/portable-ruby-2.3.7
portable-ruby 2.3.7
2 parents 4b163b3 + 6e51967 commit 5cec698

File tree

8 files changed

+29
-48
lines changed

8 files changed

+29
-48
lines changed

.travis.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ matrix:
33
fast_finish: true
44
include:
55
- os: osx
6-
osx_image: xcode8.3
6+
osx_image: xcode9.4
77
rvm: system
88
- os: linux
99
sudo: required
1010
dist: trusty
11-
rvm: 2.3.3
11+
rvm: 2.3.7
1212

1313
before_install:
1414
- export HOMEBREW_DEVELOPER=1
@@ -31,6 +31,7 @@ before_install:
3131
PATH=$HOME/.linuxbrew/bin:$HOME/.linuxbrew/sbin:$PATH;
3232
export HOMEBREW_BUILD_FROM_SOURCE=1;
3333
fi
34+
- brew update
3435
- HOMEBREW_TAP_DIR="$(brew --repo "$TRAVIS_REPO_SLUG")"
3536
- mkdir -p "$HOMEBREW_TAP_DIR"
3637
- rm -rf "$HOMEBREW_TAP_DIR"

Formula/portable-berkeley-db.rb

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,14 @@
33
class PortableBerkeleyDb < PortableFormula
44
desc "High performance key/value database"
55
homepage "https://www.oracle.com/technology/products/berkeley-db/index.html"
6-
url "https://download.oracle.com/berkeley-db/db-6.2.32.tar.gz"
7-
sha256 "a9c5e2b004a5777aa03510cfe5cd766a4a3b777713406b02809c17c8e0e7a8fb"
6+
# Requires registration to download so we mirror it
7+
url "https://dl.bintray.com/homebrew/mirror/berkeley-db-18.1.25.tar.gz"
8+
sha256 "2ea8b8bc0611d9b4c2b9fee84a4a312dddfec007067af6e02ed46a26354181bb"
89

910
def install
1011
# BerkeleyDB dislikes parallel builds
1112
ENV.deparallelize
12-
13+
1314
# --enable-compat185 is necessary because our build shadows
1415
# the system berkeley db 1.x
1516
args = %W[

Formula/portable-libyaml.rb

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,19 @@
11
require File.expand_path("../../Abstract/portable-formula", __FILE__)
22

33
class PortableLibyaml < PortableFormula
4-
desc "Portable libyaml"
5-
homepage "http://pyyaml.org/wiki/LibYAML"
6-
url "http://pyyaml.org/download/libyaml/yaml-0.1.7.tar.gz"
7-
mirror "https://mirrors.kernel.org/debian/pool/main/liby/libyaml/libyaml_0.1.7.orig.tar.gz"
8-
sha256 "8088e457264a98ba451a90b8661fcb4f9d6f478f7265d48322a196cec2480729"
4+
desc "YAML Parser"
5+
homepage "https://github.com/yaml/libyaml"
6+
url "https://github.com/yaml/libyaml/archive/0.2.1.tar.gz"
7+
mirror "https://mirrors.kernel.org/debian/pool/main/liby/libyaml/libyaml_0.2.1.orig.tar.gz"
8+
sha256 "1d2aeb87f7d317f1496e4c39410d913840714874a354970300f375eec9303dc4"
9+
10+
depends_on "autoconf" => :build
11+
depends_on "automake" => :build
12+
depends_on "libtool" => :build
913

1014
def install
1115
ENV.universal_binary if build.with? "universal"
16+
system "./bootstrap"
1217
system "./configure", "--disable-dependency-tracking",
1318
"--prefix=#{prefix}",
1419
"--enable-static",

Formula/portable-ncurses.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
require File.expand_path("../../Abstract/portable-formula", __FILE__)
22

33
class PortableNcurses < PortableFormula
4-
desc "Portable ncurses"
4+
desc "Text-based UI library"
55
homepage "https://www.gnu.org/s/ncurses/"
66
url "https://ftp.gnu.org/gnu/ncurses/ncurses-6.1.tar.gz"
77
mirror "https://ftpmirror.gnu.org/ncurses/ncurses-6.1.tar.gz"

Formula/portable-openssl.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
require File.expand_path("../../Abstract/portable-formula", __FILE__)
22

33
class PortableOpenssl < PortableFormula
4-
desc "Portable OpenSSL"
4+
desc "SSL/TLS cryptography library"
55
homepage "https://openssl.org/"
66
url "https://www.openssl.org/source/openssl-1.0.2o.tar.gz"
77
mirror "https://dl.bintray.com/homebrew/mirror/openssl-1.0.2o.tar.gz"

Formula/portable-readline.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
require File.expand_path("../../Abstract/portable-formula", __FILE__)
22

33
class PortableReadline < PortableFormula
4-
desc "Portable readline"
4+
desc "Library for command-line editing"
55
homepage "https://tiswww.case.edu/php/chet/readline/rltop.html"
66
url "https://ftpmirror.gnu.org/readline/readline-7.0.tar.gz"
77
mirror "https://ftp.gnu.org/gnu/readline/readline-7.0.tar.gz"

Formula/portable-ruby.rb

Lines changed: 8 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
require File.expand_path("../../Abstract/portable-formula", __FILE__)
22

33
class PortableRuby < PortableFormula
4-
desc "Portable ruby"
4+
desc "Powerful, clean, object-oriented scripting language"
55
homepage "https://www.ruby-lang.org/"
6-
# This isn't the latest 2.3.3 but is the version shipped in macOS 10.13.
7-
url "https://cache.ruby-lang.org/pub/ruby/2.3/ruby-2.3.3.tar.bz2"
8-
mirror "http://cache.ruby-lang.org/pub/ruby/2.3/ruby-2.3.3.tar.bz2"
9-
sha256 "882e6146ed26c6e78c02342835f5d46b86de95f0dc4e16543294bc656594cc5b"
10-
revision 2
6+
# This is the version shipped in macOS 10.13.6.
7+
url "https://cache.ruby-lang.org/pub/ruby/2.3/ruby-2.3.7.tar.bz2"
8+
mirror "http://cache.ruby-lang.org/pub/ruby/2.3/ruby-2.3.7.tar.bz2"
9+
sha256 "18b12fafaf37d5f6c7139c1b445355aec76baa625a40300598a6c8597fc04d8e"
1110

1211
bottle do
1312
cellar :any_skip_relocation
@@ -28,23 +27,6 @@ class PortableRuby < PortableFormula
2827
depends_on "portable-zlib" => :build
2928
end
3029

31-
# Fixes the static build: https://bugs.ruby-lang.org/issues/13413
32-
# This has been backported into the 2.3 branch, but isn't in the
33-
# release we're building.
34-
patch do
35-
url "https://github.com/ruby/ruby/commit/b3dbeb6e90f316584f70e33f6bfb9d83fa5f30d3.patch?full_index=1"
36-
sha256 "17a6a37e500f3455bb85e6bd4b077228d7a32f63bf07ecf67248acbd3a5ea724"
37-
end
38-
39-
# Fixes the build of dir.c on 10.5 due to missing fgetattrlist:
40-
# https://bugs.ruby-lang.org/issues/13573
41-
# This has been backported into the 2.3 branch, but isn't in the
42-
# release we're building.
43-
patch do
44-
url "https://github.com/ruby/ruby/commit/1c80c388d5bd48018c419a2ea3ed9f7b7514dfa3.patch?full_index=1"
45-
sha256 "8ba0a24a36702d2cbc94aa73cb6f0b11793348b0158c11c8608e073c71601bb5"
46-
end
47-
4830
def install
4931
# mcontext types had a member named `ss` instead of `__ss`
5032
# prior to Leopard; see
@@ -57,8 +39,8 @@ def install
5739
end
5840

5941
inreplace "vm_dump.c" do |s|
60-
s.gsub! /uc_mcontext->__(ss)\.__(r\w\w)/,
61-
"uc_mcontext->\1.\2"
42+
s.gsub!(/uc_mcontext->__(ss)\.__(r\w\w)/,
43+
"uc_mcontext->\1.\2")
6244
s.gsub! "mctx->__ss.__##reg",
6345
"mctx->ss.reg"
6446
# missing include in vm_dump; this is an ugly solution
@@ -67,14 +49,6 @@ def install
6749
end
6850
end
6951

70-
# Fixes includedir inappropriately prefixed with SDKROOT:
71-
# https://bugs.ruby-lang.org/issues/13572
72-
# This has been backported into the 2.3 branch, but isn't in the
73-
# release we're building and can't be cherry-picked cleanly.
74-
inreplace "tool/mkconfig.rb",
75-
"when /^includedir$/",
76-
"when /^oldincludedir$/"
77-
7852
readline = Formula["portable-readline"]
7953
libyaml = Formula["portable-libyaml"]
8054
openssl = Formula["portable-openssl"]
@@ -167,7 +141,7 @@ def install
167141
shell_output("#{ruby} -ropenssl -e 'puts OpenSSL::Digest::SHA256.hexdigest(\"\")'").strip
168142
assert_match "200",
169143
shell_output("#{ruby} -ropen-uri -e 'open(\"https://google.com\") { |f| puts f.status.first }'").strip
170-
system "#{ruby}", "-rdbm", "-e", "DBM.new('test')"
144+
system ruby, "-rdbm", "-e", "DBM.new('test')"
171145
system testpath/"bin/gem", "environment"
172146
system testpath/"bin/gem", "install", "bundler"
173147
system testpath/"bin/bundle", "init"

Formula/portable-zlib.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
require File.expand_path("../../Abstract/portable-formula", __FILE__)
22

33
class PortableZlib < PortableFormula
4-
desc "Portable zlib"
4+
desc "General-purpose lossless data-compression library"
55
homepage "http://www.zlib.net/"
66
url "http://zlib.net/zlib-1.2.11.tar.gz"
77
mirror "https://downloads.sourceforge.net/project/libpng/zlib/1.2.11/zlib-1.2.11.tar.gz"

0 commit comments

Comments
 (0)