Skip to content

Commit

Permalink
ncurses: apply 2017-09-30 rollup patch
Browse files Browse the repository at this point in the history
Closes #19321.

Signed-off-by: JCount <JCount42@gmail.com>
  • Loading branch information
JCount committed Oct 11, 2017
1 parent 00d26e5 commit ee393e2
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions Formula/ncurses.rb
Expand Up @@ -4,7 +4,7 @@ class Ncurses < Formula
url "https://ftp.gnu.org/gnu/ncurses/ncurses-6.0.tar.gz"
mirror "https://ftpmirror.gnu.org/ncurses/ncurses-6.0.tar.gz"
sha256 "f551c24b30ce8bfb6e96d9f59b42fbea30fa3a6123384172f9e7284bcf647260"
revision 3
revision 4

bottle do
sha256 "8a89b242114626454cc04a7213b1048a5d30c06fb414cd59d909c483f51c4e53" => :high_sierra
Expand All @@ -19,10 +19,10 @@ class Ncurses < Formula

# stable rollup patch created by upstream see
# https://invisible-mirror.net/archives/ncurses/6.0/README
resource "ncurses-6.0-20160910-patch.sh" do
url "https://invisible-mirror.net/archives/ncurses/6.0/ncurses-6.0-20160910-patch.sh.bz2"
mirror "https://www.mirrorservice.org/sites/lynx.invisible-island.net/ncurses/6.0/ncurses-6.0-20160910-patch.sh.bz2"
sha256 "f570bcfe3852567f877ee6f16a616ffc7faa56d21549ad37f6649022f8662538"
resource "ncurses-6.0-20170930-patch.sh" do
url "https://invisible-mirror.net/archives/ncurses/6.0/ncurses-6.0-20170930-patch.sh.bz2"
mirror "https://dl.bintray.com/homebrew/mirror/ncurses-6.0-20170930-patch.sh.bz2"
sha256 "b179b2acf8838f4ed1c75c47db62109777d36a7e6efc1bd4e52e48cbd1bd4121"
end

def install
Expand All @@ -36,8 +36,8 @@ def install
(lib/"pkgconfig").mkpath

# stage and apply patch
buildpath.install resource("ncurses-6.0-20160910-patch.sh")
system "sh", "ncurses-6.0-20160910-patch.sh"
buildpath.install resource("ncurses-6.0-20170930-patch.sh")
system "sh", "ncurses-6.0-20170930-patch.sh"

system "./configure", "--prefix=#{prefix}",
"--enable-pc-files",
Expand Down Expand Up @@ -84,7 +84,6 @@ def make_libncurses_symlinks

test do
ENV["TERM"] = "xterm"
system bin/"tput", "cols"

system prefix/"test/configure", "--prefix=#{testpath}/test",
"--with-curses-dir=#{prefix}"
Expand Down

0 comments on commit ee393e2

Please sign in to comment.