Skip to content

Commit

Permalink
Merge pull request #2148 from mariux64/update-ncurses-5.7-to-6.2
Browse files Browse the repository at this point in the history
ncurses: update 5.7 to version 6.2
  • Loading branch information
thomas authored Jun 1, 2021
2 parents 19a7895 + 5ffe32e commit e3eca53
Show file tree
Hide file tree
Showing 4 changed files with 103 additions and 51 deletions.
51 changes: 0 additions & 51 deletions ncurses-5.7-0.bee

This file was deleted.

71 changes: 71 additions & 0 deletions ncurses.be0
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
#!/bin/env beesh

# BEE_VERSION ncurses-6.2-0

# SRCURL[0]="https://ftp.gnu.org/gnu/ncurses/ncurses-${PKGVERSION}.tar.gz"
SRCURL[0]="https://beehive.molgen.mpg.de/e812da327b1c2214ac1aed440ea3ae8d/ncurses-6.2.tar.gz"

PATCHES[0]=""

# this gives the standard flags in DEFCONFIG
BEE_BUILDTYPE=autotools

mee_configure() {
:
}

# suppress some config options, or bee_configure will wail around
IGNORE_DATAROOTDIR=yes

mee_build() {

cd ${S}

for WIDEC in --disable-widec --enable-widec; do

test -e Makefile && make clean
bee_configure \
$WIDEC \
--with-shared \
--enable-symlinks \
--enable-pc-files \
--with-pkg-config-libdir=${LIBDIR}/pkgconfig \
--with-termlib=tinfo \
--with-ticlib=tic \
--with-cxx-shared \
--without-normal \
--without-debug


make $BEE_MAKEFLAGS
make install DESTDIR=${D}

done

# Use loader scripts to make sure tinfo works even without explicit -ltinfo
# And bow before software requiring curses w/o the n
( cd ${D}${LIBDIR}
rm -vf libcurses.so libcursesw.so libncurses.so libncursesw.so libtermcap.so
echo "INPUT(libncurses.so.6 -ltinfo)" > libncurses.so
echo "INPUT(libncursesw.so.6 -ltinfo)" > libncursesw.so
echo "INPUT(-ltinfo)" > libtermcap.so
echo "INPUT(-lncurses)" > libcurses.so
echo "INPUT(-lncursesw)" > libcursesw.so
)


}

mee_install() {
:
}

mee_install_post() {

# so far ncurses 'believes' it has a complete terminfo database, but
# whilst migrating to ncurses-6 give room for the former (aka compat) database
rm -r ${D}/usr/share/terminfo/*

# drop 877 entries no one will ever read ...
rm -r ${D}${MANDIR}/man3
}
18 changes: 18 additions & 0 deletions ncurses_compat-5.7-1.be0
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/usr/bin/env beesh

# BEE_VERSION ncurses_compat-5.7-1

# Careful! Old ncurses_compat-5.7-0 contains ncurses (the one w/o w at the end).
# What could be misleading.

SRCURL[0]=""

mee_install() {
cd ${D}
tar xpf /src/mariux/beeroot/packages/ncurses-5.7-0.x86_64.bee.tar.bz2 \
/lib/libncursesw.so.5.7 /lib/libncursesw.so.5 \
/usr/lib/libformw.so.5.7 /usr/lib/libformw.so.5 \
/usr/lib/libmenuw.so.5.7 /usr/lib/libmenuw.so.5 \
/usr/lib/libpanelw.so.5.7 /usr/lib/libpanelw.so.5
}

14 changes: 14 additions & 0 deletions ncurses_terminfo_compat-5.7-0.be0
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/usr/bin/env beesh

# BEE_VERSION ncurses_terminfo_compat-5.7-0

# Careful! This is just the old '16-bit' /usr/share/terminfo tree.

SRCURL[0]=""

mee_install() {
cd ${D}
tar xpf /src/mariux/beeroot/packages/ncurses-5.7-0.x86_64.bee.tar.bz2 \
/usr/share/terminfo
}

0 comments on commit e3eca53

Please sign in to comment.