wok-next rev 19574
All about ncurses. Carefully follow LFS receipts.
libtinfo.so included into libncursesw.so and no more need (so far).
libtinfo.so included into libncursesw.so and no more need (so far).
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sat Dec 24 05:45:18 2016 +0200 (2016-12-24) |
parents | 35e3c24d2100 |
children | 518d42b63cdb |
files | bash/receipt libtinfo/receipt linux-api-headers/receipt ncurses-common/receipt ncurses-dev/receipt ncurses/receipt psmisc/receipt readline/receipt texinfo/receipt util-linux/receipt |
line diff
1.1 --- a/bash/receipt Fri Dec 23 16:18:28 2016 +0100 1.2 +++ b/bash/receipt Sat Dec 24 05:45:18 2016 +0200 1.3 @@ -18,8 +18,8 @@ 1.4 BASHPATCHES="$(for i in $(seq 1 ${VERSION##*.}); do printf "bash${BASEVERSION/./}-%03d " $i; done)" 1.5 EXTRA_SOURCE_FILES="$BASHCHECK $BASHPATCHES" 1.6 1.7 -DEPENDS="readline libtinfo" 1.8 -BUILD_DEPENDS="readline-dev texinfo gettext patch" 1.9 +DEPENDS="ncurses readline" 1.10 +BUILD_DEPENDS="ncurses-dev readline-dev texinfo gettext patch" 1.11 1.12 patch_bash() 1.13 {
2.1 --- a/libtinfo/receipt Fri Dec 23 16:18:28 2016 +0100 2.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 2.3 @@ -1,18 +0,0 @@ 2.4 -# SliTaz package receipt. 2.5 - 2.6 -PACKAGE="libtinfo" 2.7 -VERSION="5.9" 2.8 -CATEGORY="development" 2.9 -SHORT_DESC="Low-level terminfo library." 2.10 -MAINTAINER="pascal.bellard@slitaz.org" 2.11 -LICENSE="MIT" 2.12 -WANTED="ncurses" 2.13 -WEB_SITE="http://invisible-island.net/ncurses/" 2.14 -HOST_ARCH="i486 arm" 2.15 - 2.16 -# Rules to gen a SliTaz package suitable for Tazpkg. 2.17 -genpkg_rules() 2.18 -{ 2.19 - mkdir -p $fs/lib 2.20 - cp -a $install/lib/libtinfo*.so* $fs/lib 2.21 -}
3.1 --- a/linux-api-headers/receipt Fri Dec 23 16:18:28 2016 +0100 3.2 +++ b/linux-api-headers/receipt Sat Dec 24 05:45:18 2016 +0200 3.3 @@ -14,7 +14,7 @@ 3.4 WGET_URL="https://www.kernel.org/pub/linux/kernel/v4.x/$TARBALL" 3.5 3.6 PROVIDE="linux-headers linux64-api-headers linux64-headers" 3.7 -BUILD_DEPENDS="bash libtinfo perl" 3.8 +BUILD_DEPENDS="bash perl" 3.9 3.10 if [ "$KBASEVER" != "$VERSION" ]; then 3.11 PATCH="$(dirname $WGET_URL)/patch-$VERSION.xz"
4.1 --- a/ncurses-common/receipt Fri Dec 23 16:18:28 2016 +0100 4.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 4.3 @@ -1,47 +0,0 @@ 4.4 -# SliTaz package receipt. 4.5 - 4.6 -PACKAGE="ncurses-common" 4.7 -VERSION="5.9" 4.8 -CATEGORY="base-system" 4.9 -SHORT_DESC="Common files for the ncurses and ncursesw library." 4.10 -MAINTAINER="pankso@slitaz.org" 4.11 -LICENSE="MIT" 4.12 -WANTED="ncurses" 4.13 -WEB_SITE="http://invisible-island.net/ncurses/" 4.14 -HOST_ARCH="i486 arm" 4.15 - 4.16 -DEPENDS="glibc-base" 4.17 - 4.18 -# Rules to gen a SliTaz package suitable for Tazpkg. 4.19 -genpkg_rules() 4.20 -{ 4.21 - # Terminfo. 4.22 - mkdir -p $fs/usr/share/terminfo 4.23 - for dir in a l r v x 4.24 - do 4.25 - mkdir $fs/usr/share/terminfo/$dir 4.26 - done 4.27 - cp $install/usr/share/terminfo/a/ansi \ 4.28 - $fs/usr/share/terminfo/a 4.29 - cp $install/usr/share/terminfo/l/linux \ 4.30 - $fs/usr/share/terminfo/l 4.31 - cp $install/usr/share/terminfo/r/rxvt \ 4.32 - $fs/usr/share/terminfo/r 4.33 - cp $install/usr/share/terminfo/x/xterm \ 4.34 - $fs/usr/share/terminfo/x 4.35 - cp $install/usr/share/terminfo/x/xterm-256color \ 4.36 - $fs/usr/share/terminfo/x 4.37 - cp $install/usr/share/terminfo/x/xterm-color \ 4.38 - $fs/usr/share/terminfo/x 4.39 - cp $install/usr/share/terminfo/x/xterm-new \ 4.40 - $fs/usr/share/terminfo/x 4.41 - cp $install/usr/share/terminfo/x/xterm-vt220 \ 4.42 - $fs/usr/share/terminfo/x 4.43 - cp $install/usr/share/terminfo/v/vt100 \ 4.44 - $fs/usr/share/terminfo/v 4.45 - cp $install/usr/share/terminfo/v/vt102* \ 4.46 - $fs/usr/share/terminfo/v 4.47 - 4.48 - # Tabset. 4.49 - cp -a $install/usr/share/tabset $fs/usr/share 4.50 -}
5.1 --- a/ncurses-dev/receipt Fri Dec 23 16:18:28 2016 +0100 5.2 +++ b/ncurses-dev/receipt Sat Dec 24 05:45:18 2016 +0200 5.3 @@ -15,5 +15,6 @@ 5.4 # Rules to gen a SliTaz package suitable for Tazpkg. 5.5 genpkg_rules() 5.6 { 5.7 - cook_copy_files ncursesw6-config *.h *.a *.pc 5.8 + cook_copy_files ncursesw6-config *.h *.a *.pc *.so 5.9 + cook_split_rm $DEPENDS 5.10 }
6.1 --- a/ncurses/receipt Fri Dec 23 16:18:28 2016 +0100 6.2 +++ b/ncurses/receipt Sat Dec 24 05:45:18 2016 +0200 6.3 @@ -14,7 +14,8 @@ 6.4 6.5 DEPENDS="" 6.6 BUILD_DEPENDS="flex" 6.7 -SPLIT="ncurses-libform ncurses-libmenu ncurses-libpanel ncurses-extra" 6.8 +SPLIT="ncurses-libform ncurses-libmenu ncurses-libpanel ncurses-extra \ 6.9 +ncurses-dev" 6.10 6.11 case "$ARCH" in 6.12 arm) BUILD_DEPENDS="" ;; 6.13 @@ -23,16 +24,7 @@ 6.14 # Rules to configure and make the package. 6.15 compile_rules() 6.16 { 6.17 -# # Ncurses need an installed /usr/bin/tic witch is in ncursesw-extra. And 6.18 -# # when cross compiling we can't use the freshly cooked binary. See cook log: 6.19 -# # 6.20 -# #** Building terminfo database, please wait... 6.21 -# #Running /usr/bin/tic to install /home/slitaz/wok/ncurses/install/usr/share/terminfo 6.22 -# # 6.23 -# if [ ! -d "/var/lib/tazpkg/installed/ncursesw-extra" ]; then 6.24 -# echo "Installing: ncursesw-extra" 6.25 -# tazpkg get-install ncursesw-extra 2>/dev/null 1>/dev/null 6.26 -# fi 6.27 + sed -i '/LIBTOOL_INSTALL/d' c++/Makefile.in 6.28 6.29 ./configure \ 6.30 --with-shared \ 6.31 @@ -44,6 +36,26 @@ 6.32 --with-pkg-config-libdir=/usr/lib/pkgconfig \ 6.33 $CONFIGURE_ARGS && 6.34 make && make install 6.35 + 6.36 + mkdir -p $install/lib 6.37 + mv $install/usr/lib/libncursesw.so.6* $install/lib 6.38 + ln -sf ../../lib/$(readlink $install/usr/lib/libncursesw.so) \ 6.39 + $install/usr/lib/libncursesw.so 6.40 + 6.41 + for i in ncurses form panel menu; do 6.42 + rm -f $install/usr/lib/lib$i.so 6.43 + echo "INPUT(-l${i}w)" > $install/usr/lib/lib$i.so 6.44 + chmod 755 $install/usr/lib/lib$i.so 6.45 + ln -sf ${i}w.pc $install/usr/lib/pkgconfig/$i.pc 6.46 + done 6.47 + 6.48 + rm -f $install/usr/lib/libcursesw.so 6.49 + echo "INPUT(-lncursesw)" > $install/usr/lib/libcursesw.so 6.50 + chmod 755 $install/usr/lib/libcursesw.so 6.51 + ln -sf libncurses.so $install/usr/lib/libcurses.so 6.52 + 6.53 + mkdir -p $install/usr/share/doc/ncurses-$VERSION 6.54 + cp -a doc/* $install/usr/share/doc/ncurses-$VERSION 6.55 } 6.56 6.57 # Rules to gen a SliTaz package suitable for Tazpkg.
7.1 --- a/psmisc/receipt Fri Dec 23 16:18:28 2016 +0100 7.2 +++ b/psmisc/receipt Sat Dec 24 05:45:18 2016 +0200 7.3 @@ -11,7 +11,7 @@ 7.4 TARBALL="$PACKAGE-$VERSION.tar.gz" 7.5 WGET_URL="$SF_MIRROR/psmisc/$TARBALL" 7.6 7.7 -DEPENDS="libtinfo" 7.8 +DEPENDS="ncurses" 7.9 BUILD_DEPENDS="gettext ncurses-dev" 7.10 7.11 # Rules to configure and make the package.
8.1 --- a/readline/receipt Fri Dec 23 16:18:28 2016 +0100 8.2 +++ b/readline/receipt Sat Dec 24 05:45:18 2016 +0200 8.3 @@ -23,13 +23,14 @@ 8.4 esac 8.5 8.6 patch -Np1 -i $stuff/readline-6.3-upstream_fixes-3.patch 8.7 - sed -i '/(MV)/d' Makefile* 8.8 + sed -i '/MV.*old/d' Makefile.in 8.9 + sed -i '/{OLDSUFF}/c:' support/shlib-install 8.10 8.11 ./configure \ 8.12 - --enable-multibyte \ 8.13 - --with-curses \ 8.14 + --disable-static \ 8.15 + --docdir=/usr/share/doc/readline-$VERSION \ 8.16 $CONFIGURE_ARGS && 8.17 - make SHLIB_LIBS=-lncursesw && 8.18 + make SHLIB_LIBS=-lncurses && 8.19 make DESTDIR=$install install 8.20 } 8.21
9.1 --- a/texinfo/receipt Fri Dec 23 16:18:28 2016 +0100 9.2 +++ b/texinfo/receipt Sat Dec 24 05:45:18 2016 +0200 9.3 @@ -12,16 +12,13 @@ 9.4 TARBALL="$PACKAGE-$VERSION.tar.xz" 9.5 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL" 9.6 9.7 -DEPENDS="libtinfo perl" 9.8 +DEPENDS="perl" 9.9 BUILD_DEPENDS="perl ncurses-dev gettext" 9.10 9.11 # Rules to configure and make the package. 9.12 compile_rules() 9.13 { 9.14 - ./configure \ 9.15 - --disable-static \ 9.16 - $CONFIGURE_ARGS && 9.17 - make && make install 9.18 + ./configure $CONFIGURE_ARGS && make && make install 9.19 } 9.20 9.21 # Rules to gen a SliTaz package suitable for Tazpkg.
10.1 --- a/util-linux/receipt Fri Dec 23 16:18:28 2016 +0100 10.2 +++ b/util-linux/receipt Sat Dec 24 05:45:18 2016 +0200 10.3 @@ -13,9 +13,8 @@ 10.4 TARBALL="$PACKAGE-$VERSION.tar.xz" 10.5 WGET_URL="https://www.kernel.org/pub/linux/utils/$PACKAGE/v$VER/$TARBALL" 10.6 10.7 -DEPENDS="" 10.8 -BUILD_DEPENDS="udev-dev ncursesw-dev libcap-ng-dev readline-dev python-dev \ 10.9 -glib gtk-doc libxslt gettext ncurses-dev libtinfo zlib-dev" 10.10 +BUILD_DEPENDS="udev-dev libcap-ng-dev readline-dev python-dev glib gtk-doc \ 10.11 +libxslt gettext ncurses-dev zlib-dev" 10.12 SPLIT="util-linux-bash-completion util-linux-blkid util-linux-blkid-dev \ 10.13 util-linux-blockdev util-linux-cfdisk util-linux-column util-linux-cramfs \ 10.14 util-linux-eject util-linux-fdisk util-linux-fdisk-dev util-linux-flock \