Skip to content

Commit

Permalink
ncurses: update to 5.9, add universal option
Browse files Browse the repository at this point in the history
Closes #135.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
hnakamur authored and jacknagel committed Feb 1, 2012
1 parent 3c92da8 commit aedc95e
Showing 1 changed file with 16 additions and 9 deletions.
25 changes: 16 additions & 9 deletions ncurses.rb
Original file line number Diff line number Diff line change
@@ -1,18 +1,25 @@
require 'formula'

class Ncurses < Formula
url 'http://ftpmirror.gnu.org/ncurses/ncurses-5.7.tar.gz'
homepage 'http://www.gnu.org/software/ncurses/'
md5 'cce05daf61a64501ef6cd8da1f727ec6'
url 'http://ftpmirror.gnu.org/ncurses/ncurses-5.9.tar.gz'
homepage 'http://www.gnu.org/s/ncurses/'
sha1 '3e042e5f2c7223bffdaac9646a533b8c758b65b5'

def options
[['--universal', 'Build for both 32 & 64 bit Intel.']]
end

def install
system "./configure", "--disable-debug", "--disable-dependency-tracking",
ENV.universal_binary if ARGV.build_universal?

system "./configure", "--disable-debug",
"--prefix=#{prefix}",
"--disable-echo",
"--without-ada",
"--enable-widec",
# tic doesn't link correctly
"--without-progs"
"--mandir=#{man}",
"--with-shared",
"--with-widec",
"--with-manpage-format=normal",
"--enable-symlinks"
system "make"
system "make install"
end
end

0 comments on commit aedc95e

Please sign in to comment.