Skip to content

Instantly share code, notes, and snippets.

@utkarshkukreti
Forked from gcatlin/ncurses.diff
Created October 30, 2012 13:41
Show Gist options
  • Save utkarshkukreti/3980243 to your computer and use it in GitHub Desktop.
Save utkarshkukreti/3980243 to your computer and use it in GitHub Desktop.
Homebrew Ncurses clang patch
diff --git a/ncurses.rb b/ncurses.rb
index 1067083..8cc12bc 100644
--- a/ncurses.rb
+++ b/ncurses.rb
@@ -23,4 +23,9 @@ class Ncurses < Formula
system "make"
system "make install"
end
+
+ def patches
+ # Fixes to build c++ binding with clang 3.0
+ "http://lists.gnu.org/archive/html/bug-ncurses/2011-04/txtkWQqiQvcZe.txt"
+ end
end
require 'formula'
class Ncurses < Formula
homepage 'http://www.gnu.org/s/ncurses/'
url 'http://ftpmirror.gnu.org/ncurses/ncurses-5.9.tar.gz'
mirror 'http://ftp.gnu.org/gnu/ncurses/ncurses-5.9.tar.gz'
sha1 '3e042e5f2c7223bffdaac9646a533b8c758b65b5'
def options
[['--universal', 'Build for both 32 & 64 bit Intel.']]
end
def install
ENV.universal_binary if ARGV.build_universal?
system "./configure", "--disable-debug",
"--prefix=#{prefix}",
"--mandir=#{man}",
"--with-shared",
"--with-widec",
"--with-manpage-format=normal",
"--enable-symlinks"
system "make"
system "make install"
end
def patches
# Fixes to build c++ binding with clang 3.0
"http://lists.gnu.org/archive/html/bug-ncurses/2011-04/txtkWQqiQvcZe.txt"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment