kn 8d0e052228 Update to vis 0.7
"This is mostly a bug fix release with fixes for a few cases of undefined
behavior and preliminary work for experimentation with different core text
management data structures and general editor architecture."

https://github.com/martanne/vis/releases/tag/v0.7
2020-12-11 19:17:41 +00:00

58 lines
1.2 KiB
Makefile

# $OpenBSD: Makefile,v 1.9 2020/12/11 19:17:41 kn Exp $
COMMENT = vi-like editor with sam-style structural regex support
V = 0.7
DISTNAME = vis-${V}
TEST_V = 0.5
SUPDISTNAME = vis-test-${TEST_V}
CATEGORIES = editors
HOMEPAGE = https://github.com/martanne/vis
MAINTAINER = Klemens Nanni <kn@openbsd.org>
# ISC
PERMIT_PACKAGE = Yes
WANTLIB += c curses iconv intl m termkey tre ${MODLUA_WANTLIB}
MASTER_SITES = ${HOMEPAGE}/releases/download/v${V}/
MASTER_SITES0 = ${HOMEPAGE}-test/releases/download/v${TEST_V}/
SUPDISTFILES = ${SUPDISTNAME}.tar.gz:0
DISTFILES = ${DISTNAME}${EXTRACT_SUFX} ${SUPDISTFILES}
EXTRACT_ONLY = ${DISTNAME}${EXTRACT_SUFX}
MODULES = lang/lua
MODLUA_VERSION = 5.3
LIB_DEPENDS = devel/libtermkey \
textproc/tre
RUN_DEPENDS = devel/lpeg,${MODLUA_FLAVOR}>=0.12
TEST_DEPENDS = editors/vim
CONFIGURE_STYLE = simple
CONFIGURE_ARGS = --prefix=${PREFIX} \
--mandir=${PREFIX}/man
DEBUG_PACKAGES = ${BUILD_PACKAGES}
# for test/core/Makefile
USE_GMAKE = Yes
post-extract:
${TAR} -xzf ${FULLDISTDIR}/${SUPDISTNAME}.tar.gz \
-C ${WRKSRC} -s /${SUPDISTNAME}/test/
post-install:
cd ${PREFIX} && \
mv bin/vis{,e} && \
mv man/man1/vis{,e}.1
.include <bsd.port.mk>