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