2025-03-08T10:11:50+0100 Landry Breuil <lan...@openbsd.org>:
> hi,
> 
> here's a quick port for sc-im, an ncurses spreadsheet app based of
> math/sc, cf https://github.com/andmarti1424/sc-im
> 
> i've been able to play the tutorial on
> https://github.com/jonnieey/Sc-im-Tutorial and it looks great.
> 
> it could use libxslreader/xlsxwriter but those arent in ports. havent
> tried opening ods/xls files, but some might be supported via
> libzip/libxml.

Thanks for this. I tried porting this a while ago and had an issue where
the screen would constantly flash[1], but that seems to be fixed now.

I noticed that there seems to be no mechanism for disabling optional
dependencies. This is not an issue (at least for now) for
libxsl{reader,writer} as they haven't been ported, but it is for the
optional dependency on lua/luajit which are picked up if found. While
the following line can be used to disable support for lua, it doesn't
stop the build system from using luajit if it is found instead, causing
port-lib-depends-check to complain.

MAKE_FLAGS +=   LUA_PKGNAME=""

I suppose we can simply enable support for lua by adding it to
LIB_DEPENDS, but I don't know which version. There seems to be no hard
requirement from reading src/Makefile.

Regarding libxsl{reader,writer}, should we perhaps patch their bits in
src/Makefile out to avoid any issues if/when these are ported?

Lastly /usr/local/bin/scopen requires bash, w3m, evince and gvim. Not
sure these should be forced upon the user by adding them to RUN_DEPENDS
though. What's the convention for this?

[1] https://github.com/andmarti1424/sc-im/issues/767

Reply via email to