Commit df7e6d94 authored by Casey Strouse's avatar Casey Strouse

Remove unnecessary package

Since ncurses now builds and installs the shared libraries the
ncurses_so package is no longer needed.
parent f3b3c5fb
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