aports/community/duktape/enable-linenoise.patch
Celeste a517304a33 community/duktape: take over maintainership
emailed the previous maintainer and received permission to take over this aport

also improve:

  - move the library to -libs

  - don't build duplicate (due to debug symbols being
    stripped) libduktaped that differs only in soname

  - instead, build libduktape with -g and split -dbg subpackage

  - build CLI interpreter with linenoise support

  - install MIT license into -doc
2024-12-28 08:39:48 +00:00

13 lines
477 B
Diff

--- a/Makefile.cmdline
+++ b/Makefile.cmdline
@@ -32,8 +32,8 @@
# If you want linenoise, you can enable these. At the moment linenoise
# will cause some harmless compilation warnings.
-#CCOPTS += -DDUK_CMDLINE_FANCY -I./linenoise
-#CMDLINE_SOURCES += linenoise/linenoise.c
+CCOPTS += -DDUK_CMDLINE_FANCY -D_BSD_SOURCE -I./linenoise
+CMDLINE_SOURCES += linenoise/linenoise.c
#duk: linenoise
# Use the tools/configure.py utility to modify Duktape default configuration: