wok-current rev 4884
Add ncursesw (UTF-8 support for curses libs) and modify ncurses pkg
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Fri Feb 05 23:13:39 2010 +0100 (2010-02-05) |
parents | d7c87b8a2a34 |
children | 2196fa1dd4af |
files | ncurses-common/receipt ncurses-dev/receipt ncurses-extra/receipt ncurses/receipt ncursesw-dev/receipt ncursesw-extra/receipt ncursesw/receipt |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/ncurses-common/receipt Fri Feb 05 23:13:39 2010 +0100 1.3 @@ -0,0 +1,41 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="ncurses-common" 1.7 +VERSION="5.7" 1.8 +CATEGORY="base-system" 1.9 +SHORT_DESC="Common files for the ncurses and ncursesw library." 1.10 +MAINTAINER="pankso@slitaz.org" 1.11 +WANTED="ncurses" 1.12 +WEB_SITE="http://invisible-island.net/ncurses/" 1.13 + 1.14 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.15 +genpkg_rules() 1.16 +{ 1.17 + # Terminfo. 1.18 + mkdir -p $fs/usr/share/terminfo 1.19 + for dir in a l r v x 1.20 + do 1.21 + mkdir $fs/usr/share/terminfo/$dir 1.22 + done 1.23 + cp $_pkg/usr/share/terminfo/a/ansi \ 1.24 + $fs/usr/share/terminfo/a 1.25 + cp $_pkg/usr/share/terminfo/l/linux \ 1.26 + $fs/usr/share/terminfo/l 1.27 + cp $_pkg/usr/share/terminfo/r/rxvt \ 1.28 + $fs/usr/share/terminfo/r 1.29 + cp $_pkg/usr/share/terminfo/x/xterm \ 1.30 + $fs/usr/share/terminfo/x 1.31 + cp $_pkg/usr/share/terminfo/x/xterm-color \ 1.32 + $fs/usr/share/terminfo/x 1.33 + cp $_pkg/usr/share/terminfo/x/xterm-new \ 1.34 + $fs/usr/share/terminfo/x 1.35 + cp $_pkg/usr/share/terminfo/x/xterm-vt220 \ 1.36 + $fs/usr/share/terminfo/x 1.37 + cp $_pkg/usr/share/terminfo/v/vt100 \ 1.38 + $fs/usr/share/terminfo/v 1.39 + cp $_pkg/usr/share/terminfo/v/vt102* \ 1.40 + $fs/usr/share/terminfo/v 1.41 + 1.42 + # Tabset. 1.43 + cp -a $_pkg/usr/share/tabset $fs/usr/share 1.44 +}
2.1 --- a/ncurses-dev/receipt Fri Feb 05 15:01:53 2010 +0100 2.2 +++ b/ncurses-dev/receipt Fri Feb 05 23:13:39 2010 +0100 2.3 @@ -6,6 +6,7 @@ 2.4 SHORT_DESC="Devel files for the ncurses library." 2.5 MAINTAINER="pankso@slitaz.org" 2.6 WANTED="ncurses" 2.7 +DEPENDS="ncursesw-dev" 2.8 WEB_SITE="http://invisible-island.net/ncurses/" 2.9 2.10 # Rules to gen a SliTaz package suitable for Tazpkg. 2.11 @@ -13,7 +14,8 @@ 2.12 { 2.13 mkdir -p $fs/lib $fs/usr/bin 2.14 cp -a $_pkg/lib/*.a $fs/lib 2.15 - cp -a $_pkg/usr/include $fs/usr 2.16 + # Use include file from ncursesw-dev 2.17 + #cp -a $_pkg/usr/include $fs/usr 2.18 cp $_pkg/usr/bin/ncurses5-config $fs/usr/bin 2.19 chmod 755 $fs/usr/bin/* 2.20 }
3.1 --- a/ncurses-extra/receipt Fri Feb 05 15:01:53 2010 +0100 3.2 +++ b/ncurses-extra/receipt Fri Feb 05 23:13:39 2010 +0100 3.3 @@ -13,14 +13,15 @@ 3.4 genpkg_rules() 3.5 { 3.6 mkdir -p $fs/usr/share 3.7 - cp -a $_pkg/usr/bin $fs/usr 3.8 - chmod 755 $fs/usr/bin/* 3.9 + # Binaries are provided by ncursesw-extra, we use UTF-8 by default. 3.10 + #cp -a $_pkg/usr/bin $fs/usr 3.11 + #chmod 755 $fs/usr/bin/* 3.12 cp -a $_pkg/usr/share/terminfo $fs/usr/share 3.13 # Remove already provided by other packages 3.14 - rm -f $fs/usr/bin/ncurses5-config 3.15 - [ -d $WOK/ncurses/taz ] || tazwok genpkg ncurses 3.16 + #rm -f $fs/usr/bin/ncurses5-config 3.17 + [ -d $WOK/ncurses-common/taz ] || tazwok genpkg ncurses-common 3.18 for i in $(cd $fs ; find -type f); do 3.19 - [ -f $WOK/ncurses/taz/ncurses-$VERSION/fs/$i ] || continue 3.20 + [ -f $WOK/ncurses-common/taz/ncurses-common-$VERSION/fs/$i ] || continue 3.21 rm -f $fs/$i 3.22 rmdir $(dirname $fs/$i) 2> /dev/null 3.23 done
4.1 --- a/ncurses/receipt Fri Feb 05 15:01:53 2010 +0100 4.2 +++ b/ncurses/receipt Fri Feb 05 23:13:39 2010 +0100 4.3 @@ -4,6 +4,7 @@ 4.4 VERSION="5.7" 4.5 CATEGORY="base-system" 4.6 SHORT_DESC="Library of functions to manage display on terminals." 4.7 +DEPENDS="ncurses-common" 4.8 MAINTAINER="pankso@slitaz.org" 4.9 TARBALL="$PACKAGE-$VERSION.tar.gz" 4.10 WEB_SITE="http://invisible-island.net/ncurses/" 4.11 @@ -12,13 +13,18 @@ 4.12 # Rules to configure and make the package. 4.13 compile_rules() 4.14 { 4.15 - cd $PACKAGE-$VERSION 4.16 + cd $src 4.17 sed -i 's|\tsh $(srcdir)/MKhashsize.sh|\tash $(srcdir)/MKhashsize.sh|' \ 4.18 include/Makefile.in 4.19 - ./configure --prefix=/usr \ 4.20 - --libdir=/lib --sysconfdir=/etc \ 4.21 - --infodir=/usr/share/info --mandir=/usr/share/man \ 4.22 - --with-shared --without-debug --without-ada \ 4.23 + ./configure \ 4.24 + --prefix=/usr \ 4.25 + --libdir=/lib \ 4.26 + --sysconfdir=/etc \ 4.27 + --infodir=/usr/share/info \ 4.28 + --mandir=/usr/share/man \ 4.29 + --with-shared \ 4.30 + --without-debug \ 4.31 + --without-ada \ 4.32 $CONFIGURE_ARGS && 4.33 make && 4.34 make DESTDIR=$PWD/_pkg install 4.35 @@ -27,42 +33,6 @@ 4.36 # Rules to gen a SliTaz package suitable for Tazpkg. 4.37 genpkg_rules() 4.38 { 4.39 - mkdir -p $fs/lib $fs/usr/bin 4.40 - 4.41 - # Libs. 4.42 + mkdir -p $fs/lib 4.43 cp -a $_pkg/lib/libncurses.so* $fs/lib 4.44 - strip --strip-unneeded $fs/lib/*.so* 4.45 - 4.46 - # Base progs. 4.47 - cp $_pkg/usr/bin/clear $fs/usr/bin 4.48 - cp $_pkg/usr/bin/tset $fs/usr/bin 4.49 - cp $_pkg/usr/bin/reset $fs/usr/bin 4.50 - 4.51 - # Terminfo. 4.52 - mkdir -p $fs/usr/share/terminfo 4.53 - for dir in a l r v x 4.54 - do 4.55 - mkdir $fs/usr/share/terminfo/$dir 4.56 - done 4.57 - cp $_pkg/usr/share/terminfo/a/ansi \ 4.58 - $fs/usr/share/terminfo/a 4.59 - cp $_pkg/usr/share/terminfo/l/linux \ 4.60 - $fs/usr/share/terminfo/l 4.61 - cp $_pkg/usr/share/terminfo/r/rxvt \ 4.62 - $fs/usr/share/terminfo/r 4.63 - cp $_pkg/usr/share/terminfo/x/xterm \ 4.64 - $fs/usr/share/terminfo/x 4.65 - cp $_pkg/usr/share/terminfo/x/xterm-color \ 4.66 - $fs/usr/share/terminfo/x 4.67 - cp $_pkg/usr/share/terminfo/x/xterm-new \ 4.68 - $fs/usr/share/terminfo/x 4.69 - cp $_pkg/usr/share/terminfo/x/xterm-vt220 \ 4.70 - $fs/usr/share/terminfo/x 4.71 - cp $_pkg/usr/share/terminfo/v/vt100 \ 4.72 - $fs/usr/share/terminfo/v 4.73 - cp $_pkg/usr/share/terminfo/v/vt102* \ 4.74 - $fs/usr/share/terminfo/v 4.75 - 4.76 - # Tabset. 4.77 - cp -a $_pkg/usr/share/tabset $fs/usr/share 4.78 }
5.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 5.2 +++ b/ncursesw-dev/receipt Fri Feb 05 23:13:39 2010 +0100 5.3 @@ -0,0 +1,22 @@ 5.4 +# SliTaz package receipt. 5.5 + 5.6 +PACKAGE="ncursesw-dev" 5.7 +VERSION="5.7" 5.8 +CATEGORY="development" 5.9 +SHORT_DESC="Devel files for the ncursesw library." 5.10 +MAINTAINER="pankso@slitaz.org" 5.11 +WANTED="ncursesw" 5.12 +WEB_SITE="http://invisible-island.net/ncurses/" 5.13 + 5.14 +# Rules to gen a SliTaz package suitable for Tazpkg. 5.15 +genpkg_rules() 5.16 +{ 5.17 + _pkg=$WOK/$WANTED/ncurses-$VERSION/_pkg 5.18 + mkdir -p $fs/lib $fs/usr/bin 5.19 + cp -a $_pkg/lib/*.a $fs/lib 5.20 + # Include files have the same name as ncuses-dev but seems 5.21 + # to work for both. 5.22 + cp -a $_pkg/usr/include $fs/usr 5.23 + cp $_pkg/usr/bin/ncursesw5-config $fs/usr/bin 5.24 + chmod 755 $fs/usr/bin/* 5.25 +}
6.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 6.2 +++ b/ncursesw-extra/receipt Fri Feb 05 23:13:39 2010 +0100 6.3 @@ -0,0 +1,24 @@ 6.4 +# SliTaz package receipt. 6.5 + 6.6 +PACKAGE="ncursesw-extra" 6.7 +VERSION="5.7" 6.8 +CATEGORY="base-system" 6.9 +SHORT_DESC="Extra files for the ncursesw library." 6.10 +MAINTAINER="pascal.bellard@slitaz.org" 6.11 +WANTED="ncursesw" 6.12 +DEPENDS="ncursesw ncurses-extra" 6.13 +WEB_SITE="http://invisible-island.net/ncurses/" 6.14 + 6.15 +# Rules to gen a SliTaz package suitable for Tazpkg. 6.16 +genpkg_rules() 6.17 +{ 6.18 + _pkg=$WOK/$WANTED/ncurses-$VERSION/_pkg 6.19 + mkdir -p $fs/usr 6.20 + cp -a $_pkg/usr/bin $fs/usr 6.21 + chmod 755 $fs/usr/bin/* 6.22 + # Remove already provided by other packages 6.23 + rm -f $fs/usr/bin/ncursesw5-config 6.24 + rm -f $fs/usr/bin/clear 6.25 + rm -f $fs/usr/bin/tset 6.26 + rm -f $fs/usr/bin/reset 6.27 +}
7.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 7.2 +++ b/ncursesw/receipt Fri Feb 05 23:13:39 2010 +0100 7.3 @@ -0,0 +1,46 @@ 7.4 +# SliTaz package receipt. 7.5 + 7.6 +PACKAGE="ncursesw" 7.7 +VERSION="5.7" 7.8 +SOURCE="ncurses" 7.9 +CATEGORY="base-system" 7.10 +SHORT_DESC="Library of functions to manage display on terminals." 7.11 +MAINTAINER="pankso@slitaz.org" 7.12 +TARBALL="$SOURCE-$VERSION.tar.gz" 7.13 +WEB_SITE="http://invisible-island.net/ncurses/" 7.14 +WGET_URL="ftp://invisible-island.net/ncurses/$TARBALL" 7.15 + 7.16 +# Rules to configure and make the package. 7.17 +compile_rules() 7.18 +{ 7.19 + cd $src 7.20 + sed -i 's|\tsh $(srcdir)/MKhashsize.sh|\tash $(srcdir)/MKhashsize.sh|' \ 7.21 + include/Makefile.in 7.22 + ./configure \ 7.23 + --prefix=/usr \ 7.24 + --libdir=/lib \ 7.25 + --sysconfdir=/etc \ 7.26 + --infodir=/usr/share/info \ 7.27 + --mandir=/usr/share/man \ 7.28 + --with-shared \ 7.29 + --without-debug \ 7.30 + --without-ada \ 7.31 + --enable-widec \ 7.32 + $CONFIGURE_ARGS && 7.33 + make && 7.34 + make DESTDIR=$PWD/_pkg install 7.35 +} 7.36 + 7.37 +# Rules to gen a SliTaz package suitable for Tazpkg. 7.38 +genpkg_rules() 7.39 +{ 7.40 + mkdir -p $fs/lib $fs/usr/bin 7.41 + 7.42 + # Libs. 7.43 + cp -a $_pkg/lib/libncursesw.so* $fs/lib 7.44 + 7.45 + # Base progs. 7.46 + cp $_pkg/usr/bin/clear $fs/usr/bin 7.47 + cp $_pkg/usr/bin/tset $fs/usr/bin 7.48 + cp $_pkg/usr/bin/reset $fs/usr/bin 7.49 +}