wok rev 25493
Add libgnt
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Nov 19 17:37:48 2022 +0000 (23 months ago) |
parents | 2ccf00d9c1cd |
children | 65942c8606f4 |
files | libgnt-dev/receipt libgnt/receipt memtest/stuff/unlz4.S memtest/stuff/unlzsa1.S memtest/stuff/unlzsa2.S p2c/receipt pidgin/receipt |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/libgnt-dev/receipt Sat Nov 19 17:37:48 2022 +0000 1.3 @@ -0,0 +1,20 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="libgnt-dev" 1.7 +VERSION="2.14.3" 1.8 +CATEGORY="development" 1.9 +SHORT_DESC="The GLib Ncurses Toolkit, development files" 1.10 +MAINTAINER="pascal.bellard@slitaz.org" 1.11 +LICENSE="GPL2" 1.12 +WEB_SITE="https://keep.imfreedom.org/libgnt/libgnt" 1.13 +WANTED="libgnt" 1.14 + 1.15 +DEPENDS="libgnt pkgconfig" 1.16 + 1.17 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.18 +genpkg_rules() 1.19 +{ 1.20 + mkdir -p $fs/usr/lib 1.21 + cp -a $install/usr/include $fs/usr/ 1.22 + cp -a $install/usr/lib/pkgconfig $fs/usr/lib 1.23 +}
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 2.2 +++ b/libgnt/receipt Sat Nov 19 17:37:48 2022 +0000 2.3 @@ -0,0 +1,39 @@ 2.4 +# SliTaz package receipt. 2.5 + 2.6 +PACKAGE="libgnt" 2.7 +VERSION="2.14.3" 2.8 +CATEGORY="base-system" 2.9 +SHORT_DESC="The GLib Ncurses Toolkit" 2.10 +MAINTAINER="pascal.bellard@slitaz.org" 2.11 +LICENSE="GPL2" 2.12 +WEB_SITE="https://keep.imfreedom.org/libgnt/libgnt" 2.13 + 2.14 +TARBALL="$PACKAGE-$VERSION.tar.bz2" 2.15 +WGET_URL="$WEB_SITE/archive/v$VERSION.tar.bz2" 2.16 + 2.17 +BUILD_DEPENDS="meson ninja gobject-introspection glib-dev libxml2-dev ncurses-dev" 2.18 +DEPENDS="libxml2 gobject-introspection glib ncurses" 2.19 + 2.20 +# What is the latest version available today? 2.21 +current_version() 2.22 +{ 2.23 + wget -O - $WEB_SITE 2>/dev/null | \ 2.24 + sed '/">v[0-9]/!d;s|.*>v||;s|</.*||;q' 2.25 +} 2.26 + 2.27 +# Rules to configure and make the package. 2.28 +compile_rules() 2.29 +{ 2.30 + sed -i 's|value: true|value: false|' meson_options.txt 2.31 + meson build --prefix=/usr && 2.32 + ninja -C build && 2.33 + ninja -C build install 2.34 +} 2.35 + 2.36 +# Rules to gen a SliTaz package suitable for Tazpkg. 2.37 +genpkg_rules() 2.38 +{ 2.39 + mkdir -p $fs/usr/lib 2.40 + cp -a $install/usr/lib/*.so* $fs/usr/lib 2.41 + cp -a $install/usr/lib/gnt $fs/usr/lib 2.42 +}
3.1 --- a/memtest/stuff/unlz4.S Fri Nov 18 09:54:27 2022 +0000 3.2 +++ b/memtest/stuff/unlz4.S Sat Nov 19 17:37:48 2022 +0000 3.3 @@ -43,16 +43,15 @@ 3.4 lodsb // get token 3.5 movb %al, %bl 3.6 shrb $4, %al 3.7 - call lz4len // get literal length, %eax < 255 3.8 + call lz4len // get literal length 3.9 subl %ecx, %edx // count literal 3.10 - subl $1+2, %edx // count token & string address 3.11 -#if !defined(FLAT32) && !defined(FLAT16OUT) 3.12 - pushf 3.13 +#if !defined(FLAT32) && !defined(FLAT16OUT) && (!defined(FLAT16) || !defined(PARANOIA)) 3.14 +#define NeedLz4mov 3.15 call lz4mov // copy literals 3.16 - popf 3.17 #else 3.18 rep movsb 3.19 #endif 3.20 + subl $1+2, %edx // count token & string address 3.21 jle lz4main 3.22 lodsw // get string address 3.23 xchgw %ax, %bx 3.24 @@ -67,8 +66,25 @@ 3.25 jnc axok 3.26 subb $0x10, %ah 3.27 axok: 3.28 +.macro norm reg 3.29 + movw %si, \reg 3.30 + andw $0xF, %si 3.31 + shrw $4, \reg 3.32 + addw \reg, %ax 3.33 movw %ax, %ds 3.34 - call lz4mov // copy string 3.35 + movw %di, \reg 3.36 + andw $0xF, %di 3.37 + shrw $4, \reg 3.38 + movw %es, %ax 3.39 + addw \reg, %ax 3.40 + movw %ax, %es 3.41 +.endm 3.42 +# if !defined (NeedLz4mov) 3.43 + norm %bp 3.44 + rep movsb 3.45 +# else 3.46 + call lz4movStr // copy string 3.47 +# endif 3.48 popw %si 3.49 popw %ds 3.50 #else 3.51 @@ -80,7 +96,7 @@ 3.52 #endif 3.53 jmp lz4chunk 3.54 3.55 -#if !defined(FLAT32) && !defined(FLAT16OUT) 3.56 +#if defined(NeedLz4mov) 3.57 # if defined(PARANOIA) 3.58 lz4movlp: 3.59 xchgw %ax, %cx 3.60 @@ -90,18 +106,9 @@ 3.61 sub $0xF0, %ch 3.62 # endif 3.63 lz4mov: 3.64 - movw %di, %ax 3.65 - andw $0xF, %di 3.66 - shrw $4, %ax 3.67 - movw %es, %bp 3.68 - addw %ax, %bp 3.69 - movw %bp, %es 3.70 - movw %si, %ax 3.71 - andw $0xF, %si 3.72 - shrw $4, %ax 3.73 - movw %ds, %bp 3.74 - addw %ax, %bp 3.75 - movw %bp, %ds 3.76 + movw %ds, %ax 3.77 +lz4movStr: 3.78 + norm %bp 3.79 # if defined(PARANOIA) 3.80 cmp $0xFF, %ch // catch FFFX case 3.81 jz lz4movlp 3.82 @@ -123,4 +130,3 @@ 3.83 je lz4len2 3.84 lz4quit: 3.85 ret 3.86 -
4.1 --- a/memtest/stuff/unlzsa1.S Fri Nov 18 09:54:27 2022 +0000 4.2 +++ b/memtest/stuff/unlzsa1.S Sat Nov 19 17:37:48 2022 +0000 4.3 @@ -51,13 +51,13 @@ 4.4 jns lzsa1compressed 4.5 # if !defined(FLAT32) && !defined(FLAT16OUT) 4.6 movw %cx, %dx 4.7 - andb $0x7F, %ch 4.8 - andw $0x8000, %dx 4.9 -copy32k: 4.10 + movb $0, %cl 4.11 + movb $0, %dh 4.12 +copytail: 4.13 call lzsa1movStr 4.14 xchg %dx, %cx 4.15 incw %cx 4.16 - loop copy32k 4.17 + loop copytail 4.18 # else 4.19 movsb // copy block 4.20 copylp: 4.21 @@ -73,6 +73,7 @@ 4.22 # if !defined(FLAT32) && !defined(FLAT16) 4.23 xorw %cx, %cx 4.24 call normalize 4.25 +# define NeedNormalize 4.26 # endif 4.27 addw %si, %dx 4.28 #endif 4.29 @@ -82,7 +83,7 @@ 4.30 shrb $4, %al // shift literals length into place 4.31 movw $LITERALS_RUN_LEN*256+MIN_LITERALS_SIZE, %cx 4.32 call lzsa1len // %ch = LITERALS_RUN_LEN 4.33 -#if !defined(FLAT32) && !defined(FLAT16OUT) 4.34 +#if defined(NeedNormalize) && defined(PARANOIA) 4.35 call lzsa1movLit // copy %cx literals from %ds:%si to %es:%di 4.36 #else 4.37 rep movsb // copy %cx literals from %ds:%si to %es:%di 4.38 @@ -115,11 +116,29 @@ 4.39 movw %di, %si 4.40 addw %bx, %si 4.41 movw %es, %ax 4.42 - jc dxok 4.43 + jc axok 4.44 subb $0x10, %ah 4.45 -dxok: 4.46 +axok: 4.47 +.macro norm reg 4.48 + movw %si, \reg 4.49 + andw $0xF, %si 4.50 + shrw $4, \reg 4.51 + addw \reg, %ax 4.52 movw %ax, %ds 4.53 +lzsa1movLit: 4.54 + movw %di, \reg 4.55 + andw $0xF, %di 4.56 + shrw $4, \reg 4.57 + movw %es, %ax 4.58 + addw \reg, %ax 4.59 + movw %ax, %es 4.60 +.endm 4.61 +# if defined(NeedNormalize) || defined(PARANOIA) 4.62 call lzsa1movStr // copy string 4.63 +# else 4.64 + norm %bp 4.65 + rep movsb 4.66 +# endif 4.67 popw %si 4.68 popw %ds 4.69 #else 4.70 @@ -133,11 +152,12 @@ 4.71 lzsa1len: // get length in %ecx 4.72 andb %ch, %al 4.73 cbw // clear %ah 4.74 - cmpb %al, %ch 4.75 + cmpb %ch, %al 4.76 jne lzsa1minNumber // S=0-6, L=0-14 4.77 lodsb 4.78 - addb %cl, %ch 4.79 - addb %ch, %al 4.80 + addb %ch, %cl 4.81 +lzsa1minNumber: 4.82 + addb %cl, %al 4.83 jnc lzsa1gotNumber // 0-255 4.84 movb %al, %ah // S=256-1791, L=256-3839 or S=256-511, L=256-511 4.85 jne lzsa1midNumber 4.86 @@ -149,12 +169,8 @@ 4.87 xchgw %ax, %cx 4.88 lzsa1quit: 4.89 ret 4.90 -lzsa1minNumber: 4.91 - addb %cl, %al 4.92 - xchgw %ax, %cx 4.93 - ret 4.94 4.95 -#if !defined(FLAT32) && !defined(FLAT16OUT) 4.96 +#if defined(NeedNormalize) || defined(PARANOIA) 4.97 # if defined(PARANOIA) 4.98 lzsa1movlp: 4.99 decw %ch 4.100 @@ -162,20 +178,9 @@ 4.101 incw %ch 4.102 # endif 4.103 normalize: 4.104 + movw %ds, %bp 4.105 lzsa1movStr: 4.106 - movw %si, %ax 4.107 - andw $0xF, %si 4.108 - shrw $4, %ax 4.109 - movw %ds, %bp 4.110 - addw %ax, %bp 4.111 - movw %bp, %ds 4.112 -lzsa1movLit: 4.113 - movw %di, %ax 4.114 - andw $0xF, %di 4.115 - shrw $4, %ax 4.116 - movw %es, %bp 4.117 - addw %ax, %bp 4.118 - movw %bp, %es 4.119 + norm %bp 4.120 # if defined(PARANOIA) 4.121 cmpb $0xFF, %ch // catch FFFX case 4.122 je lzsa1movlp
5.1 --- a/memtest/stuff/unlzsa2.S Fri Nov 18 09:54:27 2022 +0000 5.2 +++ b/memtest/stuff/unlzsa2.S Sat Nov 19 17:37:48 2022 +0000 5.3 @@ -57,13 +57,13 @@ 5.4 jns lzsa2compressed 5.5 # if !defined(FLAT32) && !defined(FLAT16OUT) 5.6 movw %cx, %dx 5.7 - andb $0x7F, %ch 5.8 - andw $0x8000, %dx 5.9 -copy32k: 5.10 - call lzsa2movStr 5.11 + movb $0, %cl 5.12 + movb $0, %dh 5.13 +copytail: 5.14 + call lzsa1movStr 5.15 xchg %dx, %cx 5.16 incw %cx 5.17 - loop copy32k 5.18 + loop copytail 5.19 # else 5.20 movsb // copy block 5.21 copylp: 5.22 @@ -79,39 +79,36 @@ 5.23 movw %cx, %dx 5.24 xorw %cx, %cx 5.25 call normalize 5.26 +# define NeedNormalize 5.27 addw %si, %dx 5.28 # else 5.29 movw %si, %dx 5.30 addw %cx, %dx 5.31 # endif 5.32 - shll $16, %edx 5.33 #else 5.34 # if !defined(FLAT16) 5.35 xorw %cx, %cx 5.36 call normalize 5.37 +# define NeedNormalize 5.38 # endif 5.39 #endif 5.40 - movb $1, %dh // no nibble stored 5.41 + movb $0, %bh // no nibble stored 5.42 lzsa2chunk: // uncompress chunk 5.43 lodsb // get token XYZ|LL|MMM 5.44 -#if !defined(FLAT32) && !defined(FLAT16OUT) 5.45 - pushw %ax 5.46 -#else 5.47 movb %al, %bl // keep token in bl 5.48 -#endif 5.49 - shrb $3, %al // shift literals length into place 5.50 - movw $LITERALS_RUN_LEN*256+MIN_LITERALS_SIZE, %cx 5.51 - call lzsa2len // %ch = LITERALS_RUN_LEN 5.52 -#if !defined(FLAT32) && !defined(FLAT16OUT) 5.53 + movw $LITERALS_RUN_LEN+256*MIN_LITERALS_SIZE, %cx 5.54 + shrb %cl, %al // shift literals length into place 5.55 + call lzsa2len // %cl = LITERALS_RUN_LEN 5.56 +#if defined(NeedNormalize) && defined(PARANOIA) 5.57 + pushw %bp 5.58 call lzsa2movLit // copy %cx literals from %ds:%si to %es:%di 5.59 - popw %bx 5.60 + popw %bp 5.61 #else 5.62 rep movsb // copy %cx literals from %ds:%si to %es:%di 5.63 #endif 5.64 #ifndef RAW_FORMAT 5.65 maxsi: 5.66 - shld $16, %edx, %eax 5.67 - cmpw %ax, %si 5.68 + cmpw %dx, %si 5.69 jae lzsa2block // bail if we hit EOD 5.70 #endif 5.71 #ifdef FLAT32 5.72 @@ -126,7 +123,7 @@ 5.73 jne offset_9_bit 5.74 // 00Z 5-bit offset: read a nibble for offset bits 1-4 and use the inverted bit Z of the token as bit 0 of the offset. 5.75 // set bits 5-15 of the offset to 1. 5.76 - call getByteFromNibble 5.77 + call getByteFromNibbleAndC 5.78 jmp get_match_length 5.79 offset_9_bit: 5.80 // 01Z 9-bit offset: read a byte for offset bits 0-7 and use the inverted bit Z for bit 8 of the offset. 5.81 @@ -135,14 +132,14 @@ 5.82 jmp get_match_length_0 5.83 5.84 getNibble: 5.85 - negb %dh 5.86 + xorb $0xF0, %bh // toggle nibble stored flags 5.87 + movb %bh, %al 5.88 jns gotnibble 5.89 lodsb 5.90 - movb %al, %dl 5.91 + movb $0xF0, %bh 5.92 + orb %al, %bh 5.93 + shrb $4, %al 5.94 gotnibble: 5.95 - rolb $4, %dl 5.96 - movb %dl, %al 5.97 - andb $0xF, %al 5.98 lzsa2quit: 5.99 ret 5.100 5.101 @@ -151,7 +148,7 @@ 5.102 //10Z 13-bit offset: read a nibble for offset bits 9-12 and use the inverted bit Z for bit 8 of the offset, 5.103 // then read a byte for offset bits 0-7. set bits 13-15 of the offset to 1. 5.104 // substract 512 from the offset to get the final value. 5.105 - call getByteFromNibble 5.106 + call getByteFromNibbleAndC 5.107 subb $2, %al // substract 512 5.108 jmp get_match_length_1 5.109 rep_match_or_16_bit: 5.110 @@ -167,8 +164,8 @@ 5.111 repeat_match: 5.112 //111 repeat offset: reuse the offset value of the previous match command. 5.113 5.114 - xchg AX, BX // %ax: original token 5.115 - movw $MATCH_RUN_LEN*256+MIN_MATCH_SIZE, %cx 5.116 + movb %bl, %al // %al: original token 5.117 + movw $MATCH_RUN_LEN+256*MIN_MATCH_SIZE, %cx 5.118 call lzsa2len 5.119 #ifdef RAW_FORMAT 5.120 jz lzsa2quit // bail if we hit EOD 5.121 @@ -179,11 +176,31 @@ 5.122 movw %di, %si 5.123 addw %bp, %si 5.124 movw %es, %ax 5.125 - jc dxok 5.126 + jc axok 5.127 subb $0x10, %ah 5.128 -dxok: 5.129 +axok: 5.130 +.macro norm reg 5.131 + movw %si, \reg 5.132 + andw $0xF, %si 5.133 + shrw $4, \reg 5.134 + addw \reg, %ax 5.135 movw %ax, %ds 5.136 +lzsa2movLit: 5.137 + movw %di, \reg 5.138 + andw $0xF, %di 5.139 + shrw $4, \reg 5.140 + movw %es, %ax 5.141 + addw \reg, %ax 5.142 + movw %ax, %es 5.143 +.endm 5.144 + pushw %bp 5.145 +# if defined(NeedNormalize) || defined(PARANOIA) 5.146 call lzsa2movStr // copy string 5.147 +# else 5.148 + norm %bp 5.149 + rep movsb 5.150 +# endif 5.151 + popw %bp 5.152 popw %si 5.153 popw %ds 5.154 #else 5.155 @@ -194,7 +211,7 @@ 5.156 #endif 5.157 jmp lzsa2chunk 5.158 5.159 -getByteFromNibble: 5.160 +getByteFromNibbleAndC: 5.161 pushfw 5.162 call getNibble // get nibble for offset bits 0-3 5.163 popfw 5.164 @@ -202,20 +219,20 @@ 5.165 xorb $0xE1, %al // set offset bits 7-5 to 1 5.166 ret 5.167 5.168 -lzsa2len: // get length in %ecx 5.169 - andb %ch, %al 5.170 +lzsa2len: // get length in %cx 5.171 + andb %cl, %al 5.172 cbw // clear %ah 5.173 - cmpb %al, %ch 5.174 + cmpb %al, %cl 5.175 jne lzsa2minNumber // S=0-2, L=0-6 5.176 call getNibble 5.177 cmp $0xF, %al 5.178 jne lzsa2noExtraByte 5.179 + addb %al, %ch 5.180 lodsb 5.181 - addb $0xF, %cl 5.182 lzsa2noExtraByte: 5.183 - addb %ch, %cl 5.184 + addb %cl, %ch 5.185 lzsa2minNumber: 5.186 - addb %cl, %al 5.187 + addb %ch, %al 5.188 jnc lzsa2gotNumber // 0-255 5.189 #if 0 5.190 je lzsa2BigNumber 5.191 @@ -229,7 +246,7 @@ 5.192 xchgw %ax, %cx 5.193 ret 5.194 5.195 -#if !defined(FLAT32) && !defined(FLAT16OUT) 5.196 +#if defined(NeedNormalize) || defined(PARANOIA) 5.197 # if defined(PARANOIA) 5.198 lzsa2movlp: 5.199 decw %ch 5.200 @@ -237,20 +254,9 @@ 5.201 incw %ch 5.202 # endif 5.203 normalize: 5.204 + movw %ds, %bp 5.205 lzsa2movStr: 5.206 - movw %si, %ax 5.207 - andw $0xF, %si 5.208 - shrw $4, %ax 5.209 - movw %ds, %bx 5.210 - addw %ax, %bx 5.211 - movw %bx, %ds 5.212 -lzsa2movLit: 5.213 - movw %di, %ax 5.214 - andw $0xF, %di 5.215 - shrw $4, %ax 5.216 - movw %es, %bx 5.217 - addw %ax, %bx 5.218 - movw %bx, %es 5.219 + norm %bp 5.220 # if defined(PARANOIA) 5.221 cmpb $0xFF, %ch // catch FFFX case 5.222 je lzsa2movlp
6.1 --- a/p2c/receipt Fri Nov 18 09:54:27 2022 +0000 6.2 +++ b/p2c/receipt Sat Nov 19 17:37:48 2022 +0000 6.3 @@ -8,7 +8,7 @@ 6.4 LICENSE="GPL2" 6.5 TARBALL="$PACKAGE-$VERSION.tar.gz" 6.6 WEB_SITE="http://users.fred.net/tds/lab/p2c/" 6.7 -WGET_URL="http://users.fred.net/tds/lab/p2c/$TARBALL" 6.8 +WGET_URL="http://users.fred.net/tds/lab/p2c/archive/$TARBALL" 6.9 TAGS="pascal" 6.10 6.11 DEPENDS="perl"
7.1 --- a/pidgin/receipt Fri Nov 18 09:54:27 2022 +0000 7.2 +++ b/pidgin/receipt Sat Nov 19 17:37:48 2022 +0000 7.3 @@ -17,7 +17,7 @@ 7.4 BUILD_DEPENDS="cyrus-sasl-dev expat-dev GConf gmp-dev gnutls-dev gtk+-dev 7.5 intltool libgcrypt-dev libgpg-error-dev libidn-dev libtasn1-dev 7.6 libxcb-dev libxml2-dev ncursesw-dev nss-dev startup-notification-dev 7.7 - xcb-util-dev" 7.8 + libgnt-dev xcb-util-dev" 7.9 7.10 # @maintainer: Please update also libpurple-dev 7.11 7.12 @@ -62,6 +62,8 @@ 7.13 $CONFIGURE_ARGS && 7.14 make && 7.15 make install 7.16 + cd finch 7.17 + make 7.18 } 7.19 7.20 # Rules to gen a SliTaz package suitable for Tazpkg.