Skip to content

Instantly share code, notes, and snippets.

@amlweems
Created March 5, 2017 20:56
Show Gist options
  • Save amlweems/47cb543f4da5311db48bc5013605db8a to your computer and use it in GitHub Desktop.
Save amlweems/47cb543f4da5311db48bc5013605db8a to your computer and use it in GitHub Desktop.
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'
sha256 '9046298fb440324c9d4135ecea7879ffed8546dd1b58e59430ea07a4633f563b'
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