Commit a9835efe authored by lyxell's avatar lyxell Committed by GitHub

Merge pull request #436 from cstrouse/update-ncurses

Update ncurses to 6.0
parents 54f11000 df7e6d94
require 'package'
class Ncurses < Package
version '5.9'
source_url 'ftp://ftp.gnu.org/pub/gnu/ncurses/ncurses-5.9.tar.gz'
source_sha1 '3e042e5f2c7223bffdaac9646a533b8c758b65b5'
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
system "./configure CFLAGS=\" -fPIC\" --without-debug --prefix=/usr/local"
system './configure ' \
'CFLAGS=" -fPIC" ' \
'--without-debug ' \
'--prefix=/usr/local ' \
'--with-shared ' \
'--with-cxx-shared ' \
'--enable-widec'
system "make"
end
......
require 'package'
class Ncurses_so < Package
version '5.9'
source_url 'ftp://ftp.gnu.org/pub/gnu/ncurses/ncurses-5.9.tar.gz'
source_sha1 '3e042e5f2c7223bffdaac9646a533b8c758b65b5'
depends_on "ncurses"
def self.build
system "./configure --prefix=/usr/local \"CFLAGS= -fPIC\" --without-debug --without-normal --with-shared"
system "make"
end
def self.install
out = "#{CREW_DEST_DIR}/usr/local/lib"
system "mkdir -p #{out}"
["form", "menu", "ncurses", "panel"].each do |lib|
system "cp", "lib/lib#{lib}.so.5.9", out
FileUtils.cd(out) do
system "ln -s lib#{lib}.so.5.9 lib#{lib}.so"
system "ln -s lib#{lib}.so.5.9 lib#{lib}.so.5"
end
end
FileUtils.cd(out) do
system "ln -s libncurses.so.5.9 libtinfo.so.5.9"
system "ln -s libncurses.so.5 libtinfo.so.5"
system "ln -s libncurses.so libtinfo.so"
end
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