misc/vifm: Fix build when DOCS option is off

- Vim or perl is a requirement to build the program/port, regardless of
  the user's choice to disable docs installation.
  Replace vim with perl5 to reduce the list of (build) dependencies.
- Pet port(clippy|fmt)
- Bump PORTREVISION even if it is not strictly necessary.

PR:		279602
Reported by:	Ivan <bsd@abinet.ru>
This commit is contained in:
Nicola Vitale 2024-08-02 17:21:27 +02:00
parent 2b625445f9
commit caf601941c
No known key found for this signature in database
GPG key ID: A51E190C4C0808D0

View file

@ -1,7 +1,7 @@
PORTNAME= vifm
PORTVERSION= 0.13
DISTVERSIONPREFIX= v
PORTREVISION= 1
PORTREVISION= 2
CATEGORIES= misc
MAINTAINER= nivit@FreeBSD.org
@ -11,18 +11,17 @@ WWW= https://vifm.info/
LICENSE= GPLv2+
LICENSE_FILE= ${WRKSRC}/COPYING
USES= desktop-file-utils gmake ncurses shebangfix
USES= desktop-file-utils gmake ncurses perl5 shebangfix
USE_GITHUB= yes
USE_PERL5= build
SHEBANG_FILES= data/vifm-media data/vifm-media-osx
GNU_CONFIGURE= yes
GNU_CONFIGURE_MANPREFIX= ${PREFIX}/share
CONFIGURE_ARGS= --without-gtk
CFLAGS+= -fcommon
OPTIONS_DEFINE= DOCS
# dependency to generate help tags
DOCS_BUILD_DEPENDS= vim:editors/vim
OPTIONS_DEFINE= DOCS
GNU_CONFIGURE_MANPREFIX= ${PREFIX}/share
.include <bsd.port.mk>