Commit e8bb7a11 authored by Kevin Perkins's avatar Kevin Perkins Committed by GitHub

[ncurses] Don't create symlinks libtinfo{,w}.so.5 -> libtinfo{,w}.so.6 (#5103)

* [ncurses] Don't create symlinks libtinfo{,w}.so.5 -> libtinfo{,w}.so.6 (Fixes #5092)

* [ncurses] Bump version

* Add binaries, add -flto
Co-authored-by: default avatarsatmandu <satadru@gmail.com>
parent 93759f3d
......@@ -3,59 +3,59 @@ require 'package'
class Ncurses < Package
description 'The ncurses (new curses) library is a free software emulation of curses in System V Release 4.0 (SVr4), and more.'
homepage 'https://www.gnu.org/software/ncurses/'
version '6.2-20201205'
version '6.2-20210206'
compatibility 'all'
source_url 'https://github.com/mirror/ncurses/archive/42259b594b5dabd37fe2bc294051d2db82e873a2.zip'
source_sha256 '782bd5e77fb795f505d6ffd3e443da1cd0ffd6ebb36588a3b7e81e7da34bf340'
source_url 'https://github.com/mirror/ncurses/archive/b724cdc89cf31757ab43262ecefe5242b0edc450.zip'
source_sha256 'e5e83965329c85d8d28f9a35a71ab785fce015f42f491e7dcafbb9f36ad1eaea'
binary_url ({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/ncurses-6.2-20201205-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/ncurses-6.2-20201205-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/ncurses-6.2-20201205-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/ncurses-6.2-20201205-chromeos-x86_64.tar.xz',
binary_url({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/ncurses-6.2-20210206-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/ncurses-6.2-20210206-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/ncurses-6.2-20210206-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/ncurses-6.2-20210206-chromeos-x86_64.tar.xz'
})
binary_sha256 ({
aarch64: '780763658f32364cdc24bef4fb8efcb14d2beba989c7c0a894bf73f3e4fccc9b',
armv7l: '780763658f32364cdc24bef4fb8efcb14d2beba989c7c0a894bf73f3e4fccc9b',
i686: '3119323613fefd0c8c4d6f0ec6d55d2ae3ec6390aeb19eb01ca47bff4903322f',
x86_64: 'd342c29d70e7bb4405555954ee376ff72782b419025b673ee750fe7d0c9efa1f',
binary_sha256({
aarch64: 'a91b249cdad5de1d9d12497b721f6ce88c1be445e9c40c915a93046ddb21e400',
armv7l: 'a91b249cdad5de1d9d12497b721f6ce88c1be445e9c40c915a93046ddb21e400',
i686: '2918cff85ec7730463ba5950d2039e09c1d8579238c8b0e6d9257b5bb1f7812f',
x86_64: '1fe01aa702bdba80d34a55f9596c60e577e54d93c0334a9e109a627210537185'
})
def self.build
# build libncursesw
FileUtils.mkdir 'ncursesw_build'
Dir.chdir 'ncursesw_build' do
system '../configure',
"--prefix=#{CREW_PREFIX}",
"--libdir=#{CREW_LIB_PREFIX}",
'--with-shared',
'--with-cxx-shared',
'--without-debug',
'--enable-pc-files',
"--with-pkg-config-libdir=#{CREW_LIB_PREFIX}/pkgconfig",
'--enable-widec',
'--without-tests',
'--with-termlib'
system "env CFLAGS='-flto=auto' CXXFLAGS='-flto=auto' \
LDFLAGS='-flto=auto' ../configure \
#{CREW_OPTIONS} \
--with-shared \
--with-cxx-shared \
--without-debug \
--enable-pc-files \
--with-pkg-config-libdir=#{CREW_LIB_PREFIX}/pkgconfig \
--enable-widec \
--without-tests \
--with-termlib"
system 'make'
end
# build libncurses
FileUtils.mkdir 'ncurses_build'
Dir.chdir 'ncurses_build' do
system '../configure',
"--prefix=#{CREW_PREFIX}",
"--libdir=#{CREW_LIB_PREFIX}",
'--with-shared',
'--with-cxx-shared',
'--without-debug',
'--enable-pc-files',
"--with-pkg-config-libdir=#{CREW_LIB_PREFIX}/pkgconfig",
'--disable-db-install',
'--without-manpages',
'--without-progs',
'--without-tack',
'--without-tests',
'--with-termlib'
system "env CFLAGS='-flto=auto' CXXFLAGS='-flto=auto' \
LDFLAGS='-flto=auto' ../configure \
#{CREW_OPTIONS} \
--with-shared \
--with-cxx-shared \
--without-debug \
--enable-pc-files \
--with-pkg-config-libdir=#{CREW_LIB_PREFIX}/pkgconfig \
--disable-db-install \
--without-manpages \
--without-progs \
--without-tack \
--without-tests \
--with-termlib"
system 'make'
end
end
......@@ -63,11 +63,9 @@ class Ncurses < Package
def self.install
Dir.chdir 'ncursesw_build' do
system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install'
FileUtils.ln_sf "#{CREW_LIB_PREFIX}/libtinfow.so.6", "#{CREW_DEST_LIB_PREFIX}/libtinfow.so.5"
end
Dir.chdir 'ncurses_build' do
system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install'
FileUtils.ln_sf "#{CREW_LIB_PREFIX}/libtinfo.so.6", "#{CREW_DEST_LIB_PREFIX}/libtinfo.so.5"
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