From 9b1e33af6990c3140357f500b2adc48ca74734a9 Mon Sep 17 00:00:00 2001 From: Seal Sealy Date: Tue, 18 Jul 2023 00:04:46 +0300 Subject: [PATCH] Ports: Add lxt port --- Ports/AvailablePorts.md | 1 + Ports/lxt/package.sh | 18 +++++++++++++++++ .../0001-Fix-path-to-clear-utility.patch | 20 +++++++++++++++++++ Ports/lxt/patches/ReadMe.md | 7 +++++++ 4 files changed, 46 insertions(+) create mode 100755 Ports/lxt/package.sh create mode 100644 Ports/lxt/patches/0001-Fix-path-to-clear-utility.patch create mode 100644 Ports/lxt/patches/ReadMe.md diff --git a/Ports/AvailablePorts.md b/Ports/AvailablePorts.md index 4c35fba8b07..1863a270492 100644 --- a/Ports/AvailablePorts.md +++ b/Ports/AvailablePorts.md @@ -178,6 +178,7 @@ This list is also available at [ports.serenityos.net](https://ports.serenityos.n | [`luajit`](luajit/) | LuaJIT | 2.1.0-beta3 | https://luajit.org/luajit.html | | [`luarocks`](luarocks/) | LuaRocks | 3.8.0 | https://luarocks.org/ | | [`lure`](lure/) | Lure of the Temptress | 1.1 | https://www.scummvm.org/games/#games-lure | +| [`lxt`](lxt/) | linuXtree - an XTree Gold clone | 1.3b | http://stahlke.org/dan/lxt/ | | [`lynx`](lynx/) | Lynx web browser | 2.8.9rel.1 | https://lynx.invisible-island.net/ | | [`lz4`](lz4/) | lz4 - Extremely Fast Compression algorithm | 1.9.4 | https://github.com/lz4/lz4 | | [`lzo`](lzo/) | LZO lossless data compression algorithm | 2.10 | https://www.oberhumer.com/opensource/lzo/ | diff --git a/Ports/lxt/package.sh b/Ports/lxt/package.sh new file mode 100755 index 00000000000..906a2c3c674 --- /dev/null +++ b/Ports/lxt/package.sh @@ -0,0 +1,18 @@ +#!/usr/bin/env -S bash ../.port_include.sh +port='lxt' +version='1.3b' +files=( + "http://stahlke.org/dan/lxt/lxt-${version}.tar.gz 7a3ab299a6d61a71b271fd13b847b5a1c22a5f95df78561a325c78d50b6a6bc7" +) +useconfigure='true' +depends=( + 'bash' + 'ncurses' +) + +configure() { + export ac_cv_func_fnmatch_works=yes + export ac_cv_func_malloc_0_nonnull=yes + export ac_cv_func_realloc_0_nonnull=yes + run ./configure --host=x86_64-pc-serenity +} diff --git a/Ports/lxt/patches/0001-Fix-path-to-clear-utility.patch b/Ports/lxt/patches/0001-Fix-path-to-clear-utility.patch new file mode 100644 index 00000000000..0196680cdbe --- /dev/null +++ b/Ports/lxt/patches/0001-Fix-path-to-clear-utility.patch @@ -0,0 +1,20 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Seal Sealy +Date: Mon, 7 Aug 2023 07:18:49 +0300 +Subject: [PATCH] Fix path to clear utility + +--- + main.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/main.c b/main.c +index 5308cb634834d78b9de9df93c7a562299bfb4125..b203853250a84322a8dc67d38f200381336b815e 100644 +--- a/main.c ++++ b/main.c +@@ -206,5 +206,5 @@ void crapout_nobug(const char *fmt, ...) { + } + + void clearscreen(void) { +- system("/usr/bin/clear"); ++ system("/bin/clear"); + } diff --git a/Ports/lxt/patches/ReadMe.md b/Ports/lxt/patches/ReadMe.md new file mode 100644 index 00000000000..9f827b934f7 --- /dev/null +++ b/Ports/lxt/patches/ReadMe.md @@ -0,0 +1,7 @@ +# Patches for lxt on SerenityOS + +## `0001-Fix-path-to-clear-utility.patch` + +Fix path to clear utility + +