forked from keitheis/homebrew-dupes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ncurses.rb
26 lines (22 loc) · 784 Bytes
/
ncurses.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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
end