wok rev 25869
created recipes for textadept and textadept-doc
author | Hans-Günter Theisgen |
---|---|
date | Mon Sep 15 09:21:58 2025 +0100 (4 days ago) |
parents | 83cb06dcfe81 |
children | 8682e76bc872 |
files | textadept-doc/receipt textadept/receipt textadept/stuff/patches/CMakeLists.txt-12.8 textadept/stuff/patches/textadept_gtk.c-12.8 |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/textadept-doc/receipt Mon Sep 15 09:21:58 2025 +0100 1.3 @@ -0,0 +1,20 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="textadept-doc" 1.7 +VERSION="12.8" 1.8 +CATEGORY="documentation" 1.9 +SHORT_DESC="text editor for programmers - documentation." 1.10 +MAINTAINER="HGT@slitaz.org" 1.11 +LICENSE="MIT" 1.12 +WEB_SITE="https://github.com/orbitalquark/textadept" 1.13 + 1.14 +DEPENDS="textadept" 1.15 +WANTED="textadept" 1.16 + 1.17 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.18 +genpkg_rules() 1.19 +{ 1.20 + mkdir -p $fs/opt/share/textadept/ 1.21 + cp -a $install/usr/share/textadept/docs \ 1.22 + $fs/opt/share/textadept/ 1.23 +}
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 2.2 +++ b/textadept/receipt Mon Sep 15 09:21:58 2025 +0100 2.3 @@ -0,0 +1,89 @@ 2.4 +# SliTaz package receipt. 2.5 + 2.6 +PACKAGE="textadept" 2.7 +VERSION="12.8" 2.8 +CATEGORY="development" 2.9 +TAGS="editor" 2.10 +SHORT_DESC="Text editor for programmers." 2.11 +MAINTAINER="HGT@slitaz.org" 2.12 +LICENSE="MIT" 2.13 +WEB_SITE="https://github.com/orbitalquark/textadept" 2.14 + 2.15 +TARBALL="${PACKAGE}_$VERSION.tar.gz" 2.16 +WGET_URL="$WEB_SITE/archive/refs/tags/$TARBALL" 2.17 + 2.18 +SUGGESTED="textadept-doc" 2.19 +DEPENDS="gcc83-lib-base gtk+ ncursesw" 2.20 +BUILD_DEPENDS="cmake gcc83 gtk+-dev ncursesw-dev" 2.21 + 2.22 +CONFIG_FILES="/usr/share/textadept/init.lua" 2.23 + 2.24 +# What is the latest version available today? 2.25 +current_version() 2.26 +{ 2.27 + cv=$(wget -O - https://github.com/orbitalquark/textadept/releases 2>/dev/null | \ 2.28 + sed '/linux.tgz/!d;q') 2.29 + cv=${cv% --*} 2.30 + echo "${cv##*adept }" 2.31 +} 2.32 + 2.33 +# Rules to configure and make the package. 2.34 +compile_rules() 2.35 +{ 2.36 + # insert missing include statements 2.37 + patch --strip=0 \ 2.38 + --directory=$src/src \ 2.39 + --input=$stuff/patches/textadept_gtk.c-$VERSION 2.40 + # https not working 2.41 + patch --strip=0 \ 2.42 + --input=$stuff/patches/CMakeLists.txt-$VERSION 2.43 + 2.44 + mkdir _build && 2.45 + cd _build && 2.46 + cmake .. \ 2.47 + -D CMAKE_BUILD_TYPE=Release \ 2.48 + -D CMAKE_C_COMPILER=gcc-83 \ 2.49 + -D CMAKE_CXX_COMPILER=g++-83 \ 2.50 + -D CMAKE_INSTALL_PREFIX=/opt \ 2.51 + -D QT=OFF && 2.52 + cmake --build . && 2.53 + cmake --install . && 2.54 + mkdir -p $install/usr/bin 2.55 + mkdir -p $install/usr/share/textadept 2.56 + ln -s /opt/share/textadept/textadept-curses \ 2.57 + $install/usr/bin/textadept-curses 2.58 + ln -s /opt/share/textadept/textadept-gtk \ 2.59 + $install/usr/bin/textadept-gtk 2.60 + cp $src/src/textadept-gtk.desktop \ 2.61 + $install/usr/share/textadept/textadept-gtk.desktop 2.62 + 2.63 + # transfer HTML-documentation 2.64 + mkdir -p $install/usr/share/textadept/docs 2.65 + wget -O $install/usr/share/textadept/docs/api.html \ 2.66 + https://orbitalquark.github.io/textadept/api.html 2.67 + wget -O $install/usr/share/textadept/docs/faq.html \ 2.68 + https://orbitalquark.github.io/textadept/faq.html 2.69 + wget -O $install/usr/share/textadept/docs/manual.html \ 2.70 + https://orbitalquark.github.io/textadept/manual.html 2.71 +} 2.72 + 2.73 +# Rules to gen a SliTaz package suitable for Tazpkg. 2.74 +genpkg_rules() 2.75 +{ 2.76 + cook_copy_folders bin 2.77 + cook_copy_folders core 2.78 + cook_copy_folders icons 2.79 + cook_copy_folders lexers 2.80 + cook_copy_folders modules 2.81 + cook_copy_folders themes 2.82 + cook_copy_files init.lua 2.83 + cook_copy_files LICENSE 2.84 + cook_copy_files textadept-curses 2.85 + cook_copy_files textadept-gtk 2.86 + 2.87 + mkdir -p $fs/usr/share/applications 2.88 + cp $install/opt/share/textadept/textadept-curses.desktop \ 2.89 + $fs/usr/share/applications 2.90 + cp $install/opt/share/textadept/textadept-gtk.desktop \ 2.91 + $fs/usr/share/applications 2.92 +}
3.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 3.2 +++ b/textadept/stuff/patches/CMakeLists.txt-12.8 Mon Sep 15 09:21:58 2025 +0100 3.3 @@ -0,0 +1,11 @@ 3.4 +--- CMakeLists.txt.original 3.5 ++++ CMakeLists.txt 3.6 +@@ -97,7 +97,7 @@ 3.7 + fetch(lfs https://github.com/keplerproject/luafilesystem/archive/v1_8_0.zip) 3.8 + fetch(regex https://github.com/orbitalquark/lua-std-regex/archive/1.0.zip) 3.9 + fetch(cdk https://github.com/ThomasDickey/cdk-snapshots/archive/refs/tags/t20240619.tar.gz) 3.10 +-fetch(termkey https://www.leonerd.org.uk/code/libtermkey/libtermkey-0.22.tar.gz) 3.11 ++fetch(termkey http://www.leonerd.org.uk/code/libtermkey/libtermkey-0.22.tar.gz) 3.12 + fetch(reproc https://github.com/DaanDeMeyer/reproc/archive/refs/tags/v14.2.5.zip) 3.13 + FetchContent_MakeAvailable(scintilla scinterm lua lpeg lfs regex cdk termkey) 3.14 + if(POLICY CMP0169) # CMake 3.28 adds EXCLUDE_FROM_ALL to FetchContent_MakeAvailable()
4.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 4.2 +++ b/textadept/stuff/patches/textadept_gtk.c-12.8 Mon Sep 15 09:21:58 2025 +0100 4.3 @@ -0,0 +1,11 @@ 4.4 +--- textadept_gtk.c.original 4.5 ++++ textadept_gtk.c 4.6 +@@ -6,6 +6,8 @@ 4.7 + #include "lauxlib.h" 4.8 + 4.9 + #include <math.h> // for fmax 4.10 ++#include <stdlib.h> 4.11 ++#include <string.h> 4.12 + #include <signal.h> 4.13 + #include <sys/wait.h> 4.14 + #include <gdk/gdkkeysyms.h>