# HG changeset patch # User Christophe Lincoln # Date 1265408019 -3600 # Node ID 64cf592b68802a740a9b31f2708b95d82caa1a83 # Parent d7c87b8a2a3458e297fd17ab8697aeda52dd8cca Add ncursesw (UTF-8 support for curses libs) and modify ncurses pkg diff -r d7c87b8a2a34 -r 64cf592b6880 ncurses-common/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/ncurses-common/receipt Fri Feb 05 23:13:39 2010 +0100 @@ -0,0 +1,41 @@ +# SliTaz package receipt. + +PACKAGE="ncurses-common" +VERSION="5.7" +CATEGORY="base-system" +SHORT_DESC="Common files for the ncurses and ncursesw library." +MAINTAINER="pankso@slitaz.org" +WANTED="ncurses" +WEB_SITE="http://invisible-island.net/ncurses/" + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + # Terminfo. + mkdir -p $fs/usr/share/terminfo + for dir in a l r v x + do + mkdir $fs/usr/share/terminfo/$dir + done + cp $_pkg/usr/share/terminfo/a/ansi \ + $fs/usr/share/terminfo/a + cp $_pkg/usr/share/terminfo/l/linux \ + $fs/usr/share/terminfo/l + cp $_pkg/usr/share/terminfo/r/rxvt \ + $fs/usr/share/terminfo/r + cp $_pkg/usr/share/terminfo/x/xterm \ + $fs/usr/share/terminfo/x + cp $_pkg/usr/share/terminfo/x/xterm-color \ + $fs/usr/share/terminfo/x + cp $_pkg/usr/share/terminfo/x/xterm-new \ + $fs/usr/share/terminfo/x + cp $_pkg/usr/share/terminfo/x/xterm-vt220 \ + $fs/usr/share/terminfo/x + cp $_pkg/usr/share/terminfo/v/vt100 \ + $fs/usr/share/terminfo/v + cp $_pkg/usr/share/terminfo/v/vt102* \ + $fs/usr/share/terminfo/v + + # Tabset. + cp -a $_pkg/usr/share/tabset $fs/usr/share +} diff -r d7c87b8a2a34 -r 64cf592b6880 ncurses-dev/receipt --- a/ncurses-dev/receipt Fri Feb 05 15:01:53 2010 +0100 +++ b/ncurses-dev/receipt Fri Feb 05 23:13:39 2010 +0100 @@ -6,6 +6,7 @@ SHORT_DESC="Devel files for the ncurses library." MAINTAINER="pankso@slitaz.org" WANTED="ncurses" +DEPENDS="ncursesw-dev" WEB_SITE="http://invisible-island.net/ncurses/" # Rules to gen a SliTaz package suitable for Tazpkg. @@ -13,7 +14,8 @@ { mkdir -p $fs/lib $fs/usr/bin cp -a $_pkg/lib/*.a $fs/lib - cp -a $_pkg/usr/include $fs/usr + # Use include file from ncursesw-dev + #cp -a $_pkg/usr/include $fs/usr cp $_pkg/usr/bin/ncurses5-config $fs/usr/bin chmod 755 $fs/usr/bin/* } diff -r d7c87b8a2a34 -r 64cf592b6880 ncurses-extra/receipt --- a/ncurses-extra/receipt Fri Feb 05 15:01:53 2010 +0100 +++ b/ncurses-extra/receipt Fri Feb 05 23:13:39 2010 +0100 @@ -13,14 +13,15 @@ genpkg_rules() { mkdir -p $fs/usr/share - cp -a $_pkg/usr/bin $fs/usr - chmod 755 $fs/usr/bin/* + # Binaries are provided by ncursesw-extra, we use UTF-8 by default. + #cp -a $_pkg/usr/bin $fs/usr + #chmod 755 $fs/usr/bin/* cp -a $_pkg/usr/share/terminfo $fs/usr/share # Remove already provided by other packages - rm -f $fs/usr/bin/ncurses5-config - [ -d $WOK/ncurses/taz ] || tazwok genpkg ncurses + #rm -f $fs/usr/bin/ncurses5-config + [ -d $WOK/ncurses-common/taz ] || tazwok genpkg ncurses-common for i in $(cd $fs ; find -type f); do - [ -f $WOK/ncurses/taz/ncurses-$VERSION/fs/$i ] || continue + [ -f $WOK/ncurses-common/taz/ncurses-common-$VERSION/fs/$i ] || continue rm -f $fs/$i rmdir $(dirname $fs/$i) 2> /dev/null done diff -r d7c87b8a2a34 -r 64cf592b6880 ncurses/receipt --- a/ncurses/receipt Fri Feb 05 15:01:53 2010 +0100 +++ b/ncurses/receipt Fri Feb 05 23:13:39 2010 +0100 @@ -4,6 +4,7 @@ VERSION="5.7" CATEGORY="base-system" SHORT_DESC="Library of functions to manage display on terminals." +DEPENDS="ncurses-common" MAINTAINER="pankso@slitaz.org" TARBALL="$PACKAGE-$VERSION.tar.gz" WEB_SITE="http://invisible-island.net/ncurses/" @@ -12,13 +13,18 @@ # Rules to configure and make the package. compile_rules() { - cd $PACKAGE-$VERSION + cd $src sed -i 's|\tsh $(srcdir)/MKhashsize.sh|\tash $(srcdir)/MKhashsize.sh|' \ include/Makefile.in - ./configure --prefix=/usr \ - --libdir=/lib --sysconfdir=/etc \ - --infodir=/usr/share/info --mandir=/usr/share/man \ - --with-shared --without-debug --without-ada \ + ./configure \ + --prefix=/usr \ + --libdir=/lib \ + --sysconfdir=/etc \ + --infodir=/usr/share/info \ + --mandir=/usr/share/man \ + --with-shared \ + --without-debug \ + --without-ada \ $CONFIGURE_ARGS && make && make DESTDIR=$PWD/_pkg install @@ -27,42 +33,6 @@ # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { - mkdir -p $fs/lib $fs/usr/bin - - # Libs. + mkdir -p $fs/lib cp -a $_pkg/lib/libncurses.so* $fs/lib - strip --strip-unneeded $fs/lib/*.so* - - # Base progs. - cp $_pkg/usr/bin/clear $fs/usr/bin - cp $_pkg/usr/bin/tset $fs/usr/bin - cp $_pkg/usr/bin/reset $fs/usr/bin - - # Terminfo. - mkdir -p $fs/usr/share/terminfo - for dir in a l r v x - do - mkdir $fs/usr/share/terminfo/$dir - done - cp $_pkg/usr/share/terminfo/a/ansi \ - $fs/usr/share/terminfo/a - cp $_pkg/usr/share/terminfo/l/linux \ - $fs/usr/share/terminfo/l - cp $_pkg/usr/share/terminfo/r/rxvt \ - $fs/usr/share/terminfo/r - cp $_pkg/usr/share/terminfo/x/xterm \ - $fs/usr/share/terminfo/x - cp $_pkg/usr/share/terminfo/x/xterm-color \ - $fs/usr/share/terminfo/x - cp $_pkg/usr/share/terminfo/x/xterm-new \ - $fs/usr/share/terminfo/x - cp $_pkg/usr/share/terminfo/x/xterm-vt220 \ - $fs/usr/share/terminfo/x - cp $_pkg/usr/share/terminfo/v/vt100 \ - $fs/usr/share/terminfo/v - cp $_pkg/usr/share/terminfo/v/vt102* \ - $fs/usr/share/terminfo/v - - # Tabset. - cp -a $_pkg/usr/share/tabset $fs/usr/share } diff -r d7c87b8a2a34 -r 64cf592b6880 ncursesw-dev/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/ncursesw-dev/receipt Fri Feb 05 23:13:39 2010 +0100 @@ -0,0 +1,22 @@ +# SliTaz package receipt. + +PACKAGE="ncursesw-dev" +VERSION="5.7" +CATEGORY="development" +SHORT_DESC="Devel files for the ncursesw library." +MAINTAINER="pankso@slitaz.org" +WANTED="ncursesw" +WEB_SITE="http://invisible-island.net/ncurses/" + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + _pkg=$WOK/$WANTED/ncurses-$VERSION/_pkg + mkdir -p $fs/lib $fs/usr/bin + cp -a $_pkg/lib/*.a $fs/lib + # Include files have the same name as ncuses-dev but seems + # to work for both. + cp -a $_pkg/usr/include $fs/usr + cp $_pkg/usr/bin/ncursesw5-config $fs/usr/bin + chmod 755 $fs/usr/bin/* +} diff -r d7c87b8a2a34 -r 64cf592b6880 ncursesw-extra/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/ncursesw-extra/receipt Fri Feb 05 23:13:39 2010 +0100 @@ -0,0 +1,24 @@ +# SliTaz package receipt. + +PACKAGE="ncursesw-extra" +VERSION="5.7" +CATEGORY="base-system" +SHORT_DESC="Extra files for the ncursesw library." +MAINTAINER="pascal.bellard@slitaz.org" +WANTED="ncursesw" +DEPENDS="ncursesw ncurses-extra" +WEB_SITE="http://invisible-island.net/ncurses/" + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + _pkg=$WOK/$WANTED/ncurses-$VERSION/_pkg + mkdir -p $fs/usr + cp -a $_pkg/usr/bin $fs/usr + chmod 755 $fs/usr/bin/* + # Remove already provided by other packages + rm -f $fs/usr/bin/ncursesw5-config + rm -f $fs/usr/bin/clear + rm -f $fs/usr/bin/tset + rm -f $fs/usr/bin/reset +} diff -r d7c87b8a2a34 -r 64cf592b6880 ncursesw/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/ncursesw/receipt Fri Feb 05 23:13:39 2010 +0100 @@ -0,0 +1,46 @@ +# SliTaz package receipt. + +PACKAGE="ncursesw" +VERSION="5.7" +SOURCE="ncurses" +CATEGORY="base-system" +SHORT_DESC="Library of functions to manage display on terminals." +MAINTAINER="pankso@slitaz.org" +TARBALL="$SOURCE-$VERSION.tar.gz" +WEB_SITE="http://invisible-island.net/ncurses/" +WGET_URL="ftp://invisible-island.net/ncurses/$TARBALL" + +# Rules to configure and make the package. +compile_rules() +{ + cd $src + sed -i 's|\tsh $(srcdir)/MKhashsize.sh|\tash $(srcdir)/MKhashsize.sh|' \ + include/Makefile.in + ./configure \ + --prefix=/usr \ + --libdir=/lib \ + --sysconfdir=/etc \ + --infodir=/usr/share/info \ + --mandir=/usr/share/man \ + --with-shared \ + --without-debug \ + --without-ada \ + --enable-widec \ + $CONFIGURE_ARGS && + make && + make DESTDIR=$PWD/_pkg install +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/lib $fs/usr/bin + + # Libs. + cp -a $_pkg/lib/libncursesw.so* $fs/lib + + # Base progs. + cp $_pkg/usr/bin/clear $fs/usr/bin + cp $_pkg/usr/bin/tset $fs/usr/bin + cp $_pkg/usr/bin/reset $fs/usr/bin +}