01820ee3d0
Vis aims to be a modern, legacy-free, simple yet efficient editor, combining the strengths of both vi(m) and sam. It extends vi's modal editing with built-in support for multiple cursors/selections and combines it with sam's structural regular expression based command language. Efficient syntax highlighting is provided using Parsing Expression Grammars, which can be conveniently expressed using Lua in the form of LPeg. The editor core is written in a reasonable amount of clean, modern and legacy-free C code, enabling it to run in resource-constrained environments. There is also a Lua API for in-process extensions. Vis strives to be simple and focuses on its core task: efficient text management. Clipboard and digraph handling as well as a fuzzy file open dialog are all provided by independent utilities. WWW: https://www.brain-dump.org/projects/vis/ PR: 270063
61 lines
1.7 KiB
Makefile
61 lines
1.7 KiB
Makefile
PORTNAME= vis
|
|
DISTVERSION= 0.8
|
|
CATEGORIES= editors
|
|
MASTER_SITES= https://github.com/martanne/${PORTNAME}/releases/download/v${VIS_VER}/:source \
|
|
https://github.com/martanne/${PORTNAME}-test/releases/download/v${VIS_TEST_VER}/:test
|
|
DISTFILES= ${PORTNAME}-${VIS_VER}${EXTRACT_SUFX}:source \
|
|
${VIS_TEST_NAME}-${VIS_TEST_VER}${EXTRACT_SUFX}:test
|
|
|
|
MAINTAINER= DtxdF@disroot.org
|
|
COMMENT= Vi-like editor based on Plan 9's structural regular expressions
|
|
WWW= https://www.brain-dump.org/projects/vis/
|
|
|
|
LICENSE= CC0-1.0 ISCL MIT
|
|
LICENSE_COMB= multi
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
LIB_DEPENDS+= libtermkey.so:devel/libtermkey
|
|
TEST_DEPENDS= vim>0:editors/vim
|
|
|
|
USES+= gmake lua pkgconfig
|
|
|
|
HAS_CONFIGURE= yes
|
|
CONFIGURE_ARGS= --prefix=${PREFIX}
|
|
|
|
INSTALL_TARGET= install-strip
|
|
TEST_TARGET= test
|
|
|
|
OPTIONS_DEFINE= LPEG NLS TRE
|
|
OPTIONS_DEFAULT= LPEG TRE
|
|
OPTIONS_RADIO= CLIPBOARD
|
|
OPTIONS_RADIO_CLIPBOARD= WL_COPY XCLIP XSEL
|
|
OPTIONS_SUB= yes
|
|
|
|
LPEG_DESC= Syntax highlighting
|
|
TRE_DESC= More memory efficient regex search
|
|
WL_COPY_DESC= Use wl-copy
|
|
XCLIP_DESC= Use xclip
|
|
XSEL_DESC= Use xsel-conrad
|
|
|
|
LPEG_RUN_DEPENDS= ${LUA_PKGNAMEPREFIX}lpeg>=0.8.1:devel/lua-lpeg@${LUA_FLAVOR}
|
|
NLS_USES= gettext-runtime
|
|
TRE_IMPLIES= NLS
|
|
TRE_LIB_DEPENDS= libtre.so:textproc/libtre
|
|
WL_COPY_RUN_DEPENDS= wl-clipboard>0:x11/wl-clipboard
|
|
XCLIP_RUN_DEPENDS= xclip>0:x11/xclip
|
|
XSEL_RUN_DEPENDS= xsel-conrad>0:x11/xsel-conrad
|
|
|
|
# To be consistent with VIS_TEST_VERSION.
|
|
VIS_VER= ${DISTVERSION}
|
|
VIS_TEST_VER= 0.5
|
|
VIS_TEST_NAME= ${PORTNAME}-test
|
|
|
|
post-extract:
|
|
${RMDIR} ${WRKSRC}/test
|
|
${MV} ${WRKDIR}/${VIS_TEST_NAME}-${VIS_TEST_VER}/ ${WRKSRC}/test
|
|
|
|
post-install:
|
|
@(cd ${STAGEDIR}${PREFIX}/bin; ${MV} vis vise)
|
|
@(cd ${STAGEDIR}${PREFIX}/share/man/man1; ${MV} vis.1 vise.1)
|
|
|
|
.include <bsd.port.mk>
|