Am Mon, Jan 02, 2023 at 12:00:09AM +0100 schrieb Omar Polo:
> On 2023/01/01 20:29:28 +0000, Stuart Henderson <s...@spacehopper.org> wrote:
> > I think I'd add something to DESCR like "Requires a terminal configured to 
> > use a font from one of the *-nerd-fonts packages, e.g. noto-nerd-fonts or 
> > others."
> 
> I like it, shamelessly stolen :)
I tested it and run it on two amd64 systems. (One with and one without
nerd)
I think, it could be committed.

> Index: Makefile
> ===================================================================
> RCS file: /home/cvs/ports/sysutils/nnn/Makefile,v
> retrieving revision 1.22
> diff -u -p -r1.22 Makefile
> --- Makefile  24 Nov 2022 10:25:40 -0000      1.22
> +++ Makefile  1 Jan 2023 19:12:45 -0000
> @@ -3,6 +3,7 @@ COMMENT =             the missing terminal file bro
>  V =                  4.7
>  DISTNAME =           nnn-v${V}
>  PKGNAME =            nnn-${V}
> +REVISION =           0
>  
>  CATEGORIES =         sysutils
>  
> @@ -26,6 +27,13 @@ RUN_DEPENDS =              textproc/gsed
>  MAKE_FLAGS =         CFLAGS_OPTIMIZATION=
>  FAKE_FLAGS =         MANPREFIX="$(PREFIX)/man" \
>                       PREFIX="${PREFIX}"
> +
> +FLAVORS =            nerd
> +FLAVOR ?=
> +
> +.if ${FLAVOR:Mnerd}
> +MAKE_FLAGS +=                O_NERD=1
> +.endif
>  
>  USE_GMAKE =          Yes
>  NO_TEST =            Yes
> Index: pkg/DESCR
> ===================================================================
> RCS file: /home/cvs/ports/sysutils/nnn/pkg/DESCR,v
> retrieving revision 1.1.1.1
> diff -u -p -r1.1.1.1 DESCR
> --- pkg/DESCR 7 May 2018 18:29:00 -0000       1.1.1.1
> +++ pkg/DESCR 1 Jan 2023 22:58:42 -0000
> @@ -18,3 +18,8 @@ Cool things you can do with nnn:
>  - pin a directory you may need to revisit and jump to it anytime
>  - lock the current terminal after a specified idle time
>  - change directory on exit
> +
> +Flavor: nerd
> +    build with support for Nerd Fonts, requires a terminal emulator
> +    configured to use a font from one of the *-nerd-fonts packages,
> +    e.g. noto-nerd-fonts or others.

Reply via email to