Skip to content

Instantly share code, notes, and snippets.

@gcatlin
Created July 12, 2012 14:28
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save gcatlin/3098450 to your computer and use it in GitHub Desktop.
Save gcatlin/3098450 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