Re: [new] editors/litexl v2.1.1

2023-09-11 Thread Denis Fondras
Le Mon, Sep 11, 2023 at 04:43:29PM +0200, Sebastien Marie a écrit :
> On Mon, Sep 11, 2023 at 04:17:33PM +0200, Denis Fondras wrote:
> > Lite XL is derived from Lite. It is a lightweight text editor written 
> > mostly in
> > Lua — it aims to provide something practical, pretty, small and fast easy to
> > modify and extend, or to use without doing either.
> > 
> > The aim of Lite XL compared to lite is to be more user friendly, improve the
> > quality of font rendering, and reduce CPU usage.
> > 
> > https://lite-xl.com/
> 
> - missing c and m in WANTLIB
> 
> - it seems to doesn't start without invocation with full path:
> 
> $ lite-xl
> Error: [string "local core..."]:5: attempt to index a nil value (local 
> 'exedir')
> stack traceback:
> [string "local core..."]:2: in main chunk
> 
> $ /usr/local/bin/lite-xl
> [work]
> 
> as it is installed at a know place, it could be patched to fallback to 
> /usr/local:
> 
> --- /dev/null Mon Sep 11 16:42:08 2023
> +++ patches/patch-src_main_c  Mon Sep 11 16:41:17 2023
> @@ -0,0 +1,15 @@
> +Index: src/main.c
> +--- src/main.c.orig
>  src/main.c
> +@@ -205,7 +205,10 @@ init_lua:
> + lua_pushstring(L, exename);
> +   } else {
> + // get_exe_filename failed
> +-lua_pushstring(L, argv[0]);
> ++if (strchr(argv[0], '/') != NULL)
> ++  lua_pushstring(L, argv[0]);
> ++else
> ++  lua_pushstring(L, "/usr/local/bin/lite-xl");
> +   }
> +   lua_setglobal(L, "EXEFILE");
> + 
> 
> ok semarie@ with the two points corrected.
> 

Thank you for the review Sebastien.

> -- 
> Sebastien Marie



Re: [new] editors/litexl v2.1.1

2023-09-11 Thread Sebastien Marie
On Mon, Sep 11, 2023 at 04:17:33PM +0200, Denis Fondras wrote:
> Lite XL is derived from Lite. It is a lightweight text editor written mostly 
> in
> Lua — it aims to provide something practical, pretty, small and fast easy to
> modify and extend, or to use without doing either.
> 
> The aim of Lite XL compared to lite is to be more user friendly, improve the
> quality of font rendering, and reduce CPU usage.
> 
> https://lite-xl.com/

- missing c and m in WANTLIB

- it seems to doesn't start without invocation with full path:

$ lite-xl
Error: [string "local core..."]:5: attempt to index a nil value (local 'exedir')
stack traceback:
[string "local core..."]:2: in main chunk

$ /usr/local/bin/lite-xl
[work]

as it is installed at a know place, it could be patched to fallback to 
/usr/local:

--- /dev/null   Mon Sep 11 16:42:08 2023
+++ patches/patch-src_main_cMon Sep 11 16:41:17 2023
@@ -0,0 +1,15 @@
+Index: src/main.c
+--- src/main.c.orig
 src/main.c
+@@ -205,7 +205,10 @@ init_lua:
+ lua_pushstring(L, exename);
+   } else {
+ // get_exe_filename failed
+-lua_pushstring(L, argv[0]);
++if (strchr(argv[0], '/') != NULL)
++  lua_pushstring(L, argv[0]);
++else
++  lua_pushstring(L, "/usr/local/bin/lite-xl");
+   }
+   lua_setglobal(L, "EXEFILE");
+ 

ok semarie@ with the two points corrected.

-- 
Sebastien Marie



Re: [new] editors/litexl v2.1.1

2023-09-11 Thread Denis Fondras
Nevermind, sent too early :)

Le Mon, Sep 11, 2023 at 04:17:33PM +0200, Denis Fondras a écrit :
> Lite XL is derived from Lite. It is a lightweight text editor written mostly 
> in
> Lua — it aims to provide something practical, pretty, small and fast easy to
> modify and extend, or to use without doing either.
> 
> The aim of Lite XL compared to lite is to be more user friendly, improve the
> quality of font rendering, and reduce CPU usage.
> 
> https://lite-xl.com/




[new] editors/litexl v2.1.1

2023-09-11 Thread Denis Fondras
Lite XL is derived from Lite. It is a lightweight text editor written mostly in
Lua — it aims to provide something practical, pretty, small and fast easy to
modify and extend, or to use without doing either.

The aim of Lite XL compared to lite is to be more user friendly, improve the
quality of font rendering, and reduce CPU usage.

https://lite-xl.com/


litexl-2.1.1.tgz
Description: application/tar-gz