wok rev 25920
updated textadept and textadept-doc 12.8 -> 12.9
| author | Hans-Günter Theisgen |
|---|---|
| date | Thu Jan 08 08:57:05 2026 +0100 (5 days ago) |
| parents | 436181eff763 |
| children | 6e51131bb3a8 |
| files | textadept-doc/receipt textadept/receipt textadept/stuff/patches/init.lua-12.9 textadept/stuff/patches/menu.lua-12.9 textadept/stuff/patches/textadept_gtk.c-12.9 |
line diff
1.1 --- a/textadept-doc/receipt Sat Jan 03 14:44:39 2026 +0000 1.2 +++ b/textadept-doc/receipt Thu Jan 08 08:57:05 2026 +0100 1.3 @@ -1,7 +1,7 @@ 1.4 # SliTaz package receipt. 1.5 1.6 PACKAGE="textadept-doc" 1.7 -VERSION="12.8" 1.8 +VERSION="12.9" 1.9 CATEGORY="documentation" 1.10 SHORT_DESC="text editor for programmers - documentation." 1.11 MAINTAINER="HGT@slitaz.org" 1.12 @@ -14,7 +14,7 @@ 1.13 # Rules to gen a SliTaz package suitable for Tazpkg. 1.14 genpkg_rules() 1.15 { 1.16 - mkdir -p $fs/opt/share/textadept/ 1.17 - cp -a $install/usr/share/textadept/docs \ 1.18 - $fs/opt/share/textadept/ 1.19 + mkdir -p $fs/usr/share/doc/ 1.20 + cp -a $install/usr/share/doc/textadept/ \ 1.21 + $fs/usr/share/doc/ 1.22 }
2.1 --- a/textadept/receipt Sat Jan 03 14:44:39 2026 +0000 2.2 +++ b/textadept/receipt Thu Jan 08 08:57:05 2026 +0100 2.3 @@ -1,7 +1,7 @@ 2.4 # SliTaz package receipt. 2.5 2.6 PACKAGE="textadept" 2.7 -VERSION="12.8" 2.8 +VERSION="12.9" 2.9 CATEGORY="development" 2.10 TAGS="editor" 2.11 SHORT_DESC="Text editor for programmers." 2.12 @@ -13,7 +13,7 @@ 2.13 WGET_URL="$WEB_SITE/archive/refs/tags/$TARBALL" 2.14 2.15 SUGGESTED="textadept-doc" 2.16 -DEPENDS="gcc83-lib-base gtk+ ncursesw" 2.17 +DEPENDS="gcc83-lib-base gtk+ librsvg ncursesw" 2.18 BUILD_DEPENDS="cmake gcc83 gtk+-dev ncursesw-dev" 2.19 2.20 CONFIG_FILES="/usr/share/textadept/init.lua" 2.21 @@ -31,12 +31,17 @@ 2.22 compile_rules() 2.23 { 2.24 # insert missing include statements 2.25 - patch --strip=0 \ 2.26 + patch --strip=0 \ 2.27 --directory=$src/src \ 2.28 --input=$stuff/patches/textadept_gtk.c-$VERSION 2.29 - # https not working 2.30 - patch --strip=0 \ 2.31 - --input=$stuff/patches/CMakeLists.txt-$VERSION 2.32 + # Help: set file names of html files according to linux conventions 2.33 + patch --strip=0 \ 2.34 + --directory=$src/modules/textadept \ 2.35 + --input=$stuff/patches/menu.lua-$VERSION 2.36 + # Help: open md files, not html files in curses mode 2.37 + patch --strip=0 \ 2.38 + --directory=$src \ 2.39 + --input=$stuff/patches/init.lua-$VERSION 2.40 2.41 mkdir _build && 2.42 cd _build && 2.43 @@ -46,6 +51,9 @@ 2.44 -D CMAKE_CXX_COMPILER=g++-83 \ 2.45 -D CMAKE_INSTALL_PREFIX=/opt \ 2.46 -D QT=OFF && 2.47 + 2.48 + # -D GENERATE_HTML=ON for generation of html documentation 2.49 + # fails because of ruby version too old 2.50 cmake --build . && 2.51 cmake --install . && 2.52 mkdir -p $install/usr/bin 2.53 @@ -54,16 +62,24 @@ 2.54 $install/usr/bin/textadept-curses 2.55 ln -s /opt/share/textadept/textadept-gtk \ 2.56 $install/usr/bin/textadept-gtk 2.57 + cp $src/src/textadept-curses.desktop \ 2.58 + $install/usr/share/textadept/textadept-curses.desktop 2.59 cp $src/src/textadept-gtk.desktop \ 2.60 $install/usr/share/textadept/textadept-gtk.desktop 2.61 2.62 - # transfer HTML-documentation 2.63 - mkdir -p $install/usr/share/textadept/docs 2.64 - wget -O $install/usr/share/textadept/docs/api.html \ 2.65 + mkdir -p $install/usr/share/doc/textadept 2.66 + cp $src/docs/api.md \ 2.67 + $install/usr/share/doc/textadept 2.68 + cp $src/docs/faq.md \ 2.69 + $install/usr/share/doc/textadept 2.70 + cp $src/docs/manual.md \ 2.71 + $install/usr/share/doc/textadept 2.72 + # fetch HTML-documentation 2.73 + wget -O $install/usr/share/doc/textadept/api.html \ 2.74 https://orbitalquark.github.io/textadept/api.html 2.75 - wget -O $install/usr/share/textadept/docs/faq.html \ 2.76 + wget -O $install/usr/share/doc/textadept/faq.html \ 2.77 https://orbitalquark.github.io/textadept/faq.html 2.78 - wget -O $install/usr/share/textadept/docs/manual.html \ 2.79 + wget -O $install/usr/share/doc/textadept/manual.html \ 2.80 https://orbitalquark.github.io/textadept/manual.html 2.81 } 2.82 2.83 @@ -82,8 +98,8 @@ 2.84 cook_copy_files textadept-gtk 2.85 2.86 mkdir -p $fs/usr/share/applications 2.87 - cp $install/opt/share/textadept/textadept-curses.desktop \ 2.88 + cp $install/usr/share/textadept/textadept-curses.desktop \ 2.89 $fs/usr/share/applications 2.90 - cp $install/opt/share/textadept/textadept-gtk.desktop \ 2.91 + cp $install/usr/share/textadept/textadept-gtk.desktop \ 2.92 $fs/usr/share/applications 2.93 }
3.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 3.2 +++ b/textadept/stuff/patches/init.lua-12.9 Thu Jan 08 08:57:05 2026 +0100 3.3 @@ -0,0 +1,14 @@ 3.4 +--- init.lua.original 3.5 ++++ init.lua 3.6 +@@ -75,7 +75,10 @@ 3.7 + 3.8 + local buffer, view = buffer, view 3.9 + 3.10 +-if CURSES then view:set_theme('term') end 3.11 ++if CURSES then view:set_theme('term') 3.12 ++ textadept.menu.menubar['Help/Show Manual'][2] = function() io.open_file('/usr/share/doc/textadept/manual.md') end 3.13 ++ textadept.menu.menubar['Help/Show LuaDoc'][2] = function() io.open_file('/usr/share/doc/textadept/api.md') end 3.14 ++end 3.15 + 3.16 + -- Multiple Selection and Virtual Space. 3.17 + buffer.multiple_selection, buffer.additional_selection_typing = true, true
4.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 4.2 +++ b/textadept/stuff/patches/menu.lua-12.9 Thu Jan 08 08:57:05 2026 +0100 4.3 @@ -0,0 +1,13 @@ 4.4 +--- menu.lua.original 4.5 ++++ menu.lua 4.6 +@@ -422,8 +422,8 @@ 4.7 + {_L['Reset Zoom'], function() view.zoom = 0 end} 4.8 + }, { 4.9 + title = _L['Help'], -- 4.10 +- {_L['Show Manual'], function() open_page(_HOME .. '/docs/manual.html') end}, 4.11 +- {_L['Show LuaDoc'], function() open_page(_HOME .. '/docs/api.html') end}, -- 4.12 ++ {_L['Show Manual'], function() open_page('/usr/share/doc/textadept/manual.html') end}, 4.13 ++ {_L['Show LuaDoc'], function() open_page('/usr/share/doc/textadept/api.html') end}, -- 4.14 + SEPARATOR, { 4.15 + _L['About'], 4.16 + function() ui.dialogs.message{title = _RELEASE, text = _COPYRIGHT, icon = 'textadept'} end
5.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 5.2 +++ b/textadept/stuff/patches/textadept_gtk.c-12.9 Thu Jan 08 08:57:05 2026 +0100 5.3 @@ -0,0 +1,11 @@ 5.4 +--- textadept_gtk.c.original 5.5 ++++ textadept_gtk.c 5.6 +@@ -6,6 +6,8 @@ 5.7 + #include "lauxlib.h" 5.8 + 5.9 + #include <math.h> // for fmax 5.10 ++#include <stdlib.h> 5.11 ++#include <string.h> 5.12 + #include <signal.h> 5.13 + #include <sys/wait.h> 5.14 + #include <gdk/gdkkeysyms.h>