hi,

here's an update of Landry's math/sc-im port to 0.8.5 (tarball
attached).

Changes:
- update to 0.8.5
- disable lua with MAKE_FLAGS += LUA_PKGNAME="" so that the build
  doesn't pick it up from the build host; port-lib-depends-check is now
  clean.

Tested on amd64, OpenBSD 8.0 :
- builds, installs, port-lib-depends-check is clean

Not tested: ods/xlsx import/export via libzip/libxml.

Comments? ok?

./nap

> From openbsd-ports  Mon Mar 10 13:08:45 2025 From: Landry Breuil
> <landry () openbsd ! org> Date: Mon, 10 Mar 2025 13:08:45 +0000 To:
> openbsd-ports Subject: Re: [new] math/sc-im 0.8.4 Message-Id:
> <Z87kXd3-hTG6q6o8 () phoenix ! rhaalovely ! net> X-MARC-Message:
> https://marc.info/?l=openbsd-ports&m=174161189532265
> 
> Le Mon, Mar 10, 2025 at 12:19:43PM +0000, Johannes Thyssen Tishman a
> écrit :
> > 2025-03-08T10:11:50+0100 Landry Breuil <[email protected]>:
> > > 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.
> 
> ah, i saw that it didnt find lua via pkg-config but hadnt spotted
> luajit. and yeah the upstream Makefile is a bit limited wrt disabling
> things :)
> 
> > Regarding libxsl{reader,writer}, should we perhaps patch their bits
> > in src/Makefile out to avoid any issues if/when these are ported?
> 
> yeah maybe.
> 
> > 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?
> 
> depends... for lightweight stuff like w3m/vim, not that bad, but
> evince.. mentioning them in the DESCR sometimes is enough. hadnt seen
> scopen either :)
> 
> Landry

Attachment: sc-im-0.8.5.tgz
Description: Binary data

Reply via email to