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

Commit 00d6eaa

Browse files
authored
Merge pull request #55 from MikeMcQuaid/portable-ruby-apple
portable-ruby: match Apple’s Ruby options.
2 parents 4887a29 + bcbc3fc commit 00d6eaa

File tree

3 files changed

+15
-21
lines changed

3 files changed

+15
-21
lines changed

Formula/portable-ncurses.rb

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,12 @@
33
class PortableNcurses < PortableFormula
44
desc "Portable ncurses"
55
homepage "https://www.gnu.org/s/ncurses/"
6-
url "https://ftpmirror.gnu.org/ncurses/ncurses-6.0.tar.gz"
7-
mirror "https://ftp.gnu.org/gnu/ncurses/ncurses-6.0.tar.gz"
8-
sha256 "f551c24b30ce8bfb6e96d9f59b42fbea30fa3a6123384172f9e7284bcf647260"
9-
revision 1
6+
url "https://ftp.gnu.org/gnu/ncurses/ncurses-6.1.tar.gz"
7+
mirror "https://ftpmirror.gnu.org/ncurses/ncurses-6.1.tar.gz"
8+
sha256 "aa057eeeb4a14d470101eff4597d5833dcef5965331be3528c08d99cebaa0d17"
109

1110
depends_on "pkg-config" => :build
1211

13-
# stable rollup patch created by upstream see
14-
# http://invisible-mirror.net/archives/ncurses/6.0/README
15-
resource "ncurses-6.0-20160910-patch.sh" do
16-
url "http://invisible-mirror.net/archives/ncurses/6.0/ncurses-6.0-20160910-patch.sh.bz2"
17-
mirror "https://www.mirrorservice.org/sites/lynx.invisible-island.net/ncurses/6.0/ncurses-6.0-20160910-patch.sh.bz2"
18-
sha256 "f570bcfe3852567f877ee6f16a616ffc7faa56d21549ad37f6649022f8662538"
19-
end
20-
2112
def install
2213
ENV.universal_binary if build.with? "universal"
2314

@@ -30,10 +21,6 @@ def install
3021

3122
(lib/"pkgconfig").mkpath
3223

33-
# stage and apply patch
34-
buildpath.install resource("ncurses-6.0-20160910-patch.sh")
35-
system "sh", "ncurses-6.0-20160910-patch.sh"
36-
3724
system "./configure", "--disable-dependency-tracking",
3825
"--prefix=#{prefix}",
3926
"--enable-static",

Formula/portable-openssl.rb

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,11 @@
33
class PortableOpenssl < PortableFormula
44
desc "Portable OpenSSL"
55
homepage "https://openssl.org/"
6-
url "https://www.openssl.org/source/openssl-1.0.2l.tar.gz"
7-
mirror "https://dl.bintray.com/homebrew/mirror/openssl-1.0.2l.tar.gz"
8-
sha256 "ce07195b659e75f4e1db43552860070061f156a98bb37b672b101ba6e3ddf30c"
6+
url "https://www.openssl.org/source/openssl-1.0.2o.tar.gz"
7+
mirror "https://dl.bintray.com/homebrew/mirror/openssl-1.0.2o.tar.gz"
8+
mirror "https://www.mirrorservice.org/sites/ftp.openssl.org/source/openssl-1.0.2o.tar.gz"
9+
mirror "http://artfiles.org/openssl.org/source/openssl-1.0.2o.tar.gz"
10+
sha256 "ec3f5c9714ba0fd45cb4e087301eb1336c317e0d20b575a125050470e8089e4d"
911

1012
depends_on "makedepend" => :build
1113
depends_on "portable-zlib" => :build if OS.linux?

Formula/portable-ruby.rb

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ class PortableRuby < PortableFormula
77
url "https://cache.ruby-lang.org/pub/ruby/2.3/ruby-2.3.3.tar.bz2"
88
mirror "http://cache.ruby-lang.org/pub/ruby/2.3/ruby-2.3.3.tar.bz2"
99
sha256 "882e6146ed26c6e78c02342835f5d46b86de95f0dc4e16543294bc656594cc5b"
10+
revision 1
1011

1112
bottle do
1213
cellar :any_skip_relocation
@@ -82,10 +83,10 @@ def install
8283
--prefix=#{prefix}
8384
--enable-load-relative
8485
--with-static-linked-ext
85-
--with-out-ext=tk,sdbm,gdbm,dbm,dl,fiddle
86+
--with-out-ext=tk
8687
--disable-install-doc
8788
--disable-install-rdoc
88-
--disable-dtrace
89+
--disable-dependency-tracking
8990
]
9091

9192
if OS.mac?
@@ -95,7 +96,11 @@ def install
9596
ENV.replace_in_cflags(/-march=\S*/, "-Xarch_i386 \\0")
9697
ENV.replace_in_cflags(/-mcpu=\S*/, "-Xarch_ppc \\0")
9798
end
99+
98100
args << "--with-arch=#{archs.join(",")}"
101+
102+
# DTrace support doesn't build on 10.5 :(
103+
args << "--disable-dtrace"
99104
end
100105

101106
paths = [

0 commit comments

Comments
 (0)