For the fonts I think I'd probably pick a couple that already exist in ports/fonts. Simplest approach for ports layout is probably like ports/fonts/nerd-fonts/{terminus,profont,noto) or similar, using the release zips rather than downloading the full repo, factoring out as much as possible to Makefile.inc.

--
 Sent from a phone, apologies for poor formatting.

On 28 December 2022 16:27:38 Joel Carnat <j...@carnat.net> wrote:

Le 28/12/2022 à 14:57, Martin Ziemer a écrit :
Am Wed, Dec 28, 2022 at 01:23:09PM +0000 schrieb Stuart Henderson:
On 2022/12/28 13:07, Joel Carnat wrote:
When using one of the Nerd Fonts in the terminal, you can get glyphs (icons)
rendered. The attached patch enables a flavor for sysutils/nnn that will
render mime types icons next to file listing. An example can be seen there:
https://i.imgur.com/kOld6HT.gif

Tested on OpenBSD/7.2-CURRENT/amd64, using xterm(1) and xfce4-terminal(1).
Works here too. (Just xterm)

Please add a note to DESCR describing the flavour and the requirement
for the additional fonts.

It would probably be better to provide ports for some of the more popular
of these fonts too, rather than having to tell people to go to a website
and download them..
This sounds like the best way to do it.

  V =                   4.7
  DISTNAME =            nnn-v${V}
  PKGNAME =             nnn-${V}
+REVISION =             1
not really important but some people will complain ;) this normally
starts at 0


Here is a patch for the corrected Makefile and modified DESCR files.

I can look at fonts/msttcorefonts and do the same thing for the Nerd Fonts.
But there are 53 fonts, without a popularity note. Uncompressed, they take
about 4GB. I only use one font and would probably not install such a huge
package. I don't know about others. Maybe using FULLPKGNAME like with
x11/windowmaker-lang would be the way to go so that one font is one package
and people install the one(s) they want.

What do you think?

Regards,
Joel C.

Reply via email to