-
-
Save utkarshkukreti/3980243 to your computer and use it in GitHub Desktop.
Homebrew Ncurses clang patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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