1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-28 05:29:48 +00:00
freebsd-ports/editors/nvi2/Makefile
2024-01-10 09:16:01 +01:00

53 lines
1.3 KiB
Makefile

PORTNAME= nvi2
PORTVERSION= 2.2.1
PORTREVISION= 1
DISTVERSIONPREFIX= v
CATEGORIES= editors
MAINTAINER= leres@FreeBSD.org
COMMENT= Updated implementation of the ex/vi text editor
WWW= https://github.com/lichray/nvi2/
LICENSE= BSD3CLAUSE
USES= bdb cmake compiler:c11 ncurses
USE_GITHUB= yes
GH_ACCOUNT= lichray
CONFLICTS_INSTALL= nvi-m17n nvi
OPTIONS_DEFINE= DEBUG WIDECHAR ICONV
OPTIONS_DEFAULT= WIDECHAR ICONV
WIDECHAR_DESC= Enable wide-character support (UTF-8)
ICONV_DESC= Enable iconv support
DEBUG_CMAKE_BOOL= ENABLE_DEBUG
ICONV_CMAKE_BOOL= ENABLE_ICONV
ICONV_USES= iconv
WIDECHAR_CMAKE_BOOL= ENABLE_WIDECHAR
PLIST_FILES= bin/nex \
bin/nvi \
bin/nview \
share/man/man1/nex.1.gz \
share/man/man1/nvi.1.gz \
share/man/man1/nview.1.gz
post-patch:
${REINPLACE_CMD} -e \
'/-Wall/s/^/add_compile_options(-fcolor-diagnostics)\n/' \
${WRKSRC}/CMakeLists.txt
do-install:
${INSTALL_PROGRAM} ${BUILD_WRKSRC}/nvi ${STAGEDIR}${PREFIX}/bin
${LN} ${STAGEDIR}${PREFIX}/bin/nvi ${STAGEDIR}${PREFIX}/bin/nex
${LN} ${STAGEDIR}${PREFIX}/bin/nvi ${STAGEDIR}${PREFIX}/bin/nview
${INSTALL_MAN} ${WRKSRC}/man/vi.1 \
${STAGEDIR}${PREFIX}/share/man/man1/nvi.1
${LN} -sf nvi.1 ${STAGEDIR}${PREFIX}/share/man/man1/nex.1
${LN} -sf nvi.1 ${STAGEDIR}${PREFIX}/share/man/man1/nview.1
.include <bsd.port.mk>