Commit 2fb4668a authored by lyxell's avatar lyxell Committed by GitHub

Merge pull request #490 from jam7/ncurses-ncursesw

Change to instal both ncurses ncursesw
parents 9836f5aa e6857aa2
require 'package' require 'package'
class Ncurses < Package class Ncurses < Package
version '6.0' version '6.0-1'
source_url 'ftp://ftp.gnu.org/pub/gnu/ncurses/ncurses-6.0.tar.gz' source_url 'ftp://ftp.gnu.org/pub/gnu/ncurses/ncurses-6.0.tar.gz'
source_sha1 'acd606135a5124905da770803c05f1f20dd3b21c' source_sha1 'acd606135a5124905da770803c05f1f20dd3b21c'
depends_on "diffutils" depends_on "diffutils"
depends_on "ncursesw"
def self.build def self.build
system './configure ' \ system './configure ' \
...@@ -13,8 +14,7 @@ class Ncurses < Package ...@@ -13,8 +14,7 @@ class Ncurses < Package
'--without-debug ' \ '--without-debug ' \
'--prefix=/usr/local ' \ '--prefix=/usr/local ' \
'--with-shared ' \ '--with-shared ' \
'--with-cxx-shared ' \ '--with-cxx-shared '
'--enable-widec'
system "make" system "make"
end end
......
require 'package'
class Ncursesw < Package
version '6.0'
source_url 'ftp://ftp.gnu.org/pub/gnu/ncurses/ncurses-6.0.tar.gz'
source_sha1 'acd606135a5124905da770803c05f1f20dd3b21c'
depends_on "diffutils"
def self.build
# Check ncurses doesn't conflict with ncrusesw
if File.exist? CREW_CONFIG_PATH + "meta/ncurses.filelist"
if `grep include/ncursesw #{CREW_CONFIG_PATH}meta/ncurses.filelist` != ''
puts
puts "PLEASE PERFORMS `crew upgrade ncurses` OR `sudo crew remove ncurses` FIRST"
puts
exit 1
end
end
# Build ncursesw
system './configure ' \
'CFLAGS=" -fPIC" ' \
'--without-debug ' \
'--prefix=/usr/local ' \
'--with-shared ' \
'--with-cxx-shared ' \
'--enable-widec'
system "make"
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment