Chagne to make sure existing ncurses doesn't conflict with ncursesw.

parent ddcf9439
...@@ -8,6 +8,16 @@ class Ncursesw < Package ...@@ -8,6 +8,16 @@ class Ncursesw < Package
depends_on "diffutils" depends_on "diffutils"
def self.build 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 ' \ system './configure ' \
'CFLAGS=" -fPIC" ' \ 'CFLAGS=" -fPIC" ' \
'--without-debug ' \ '--without-debug ' \
......
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