freebsd-ports/editors/neovim/Makefile
Adam Weinberger 1c6370e606 Update neovim to 0.3.1
FEATURES:
  man.vim: C highlighting for EXAMPLES section
  TUI: urxvt: also send xterm focus-reporting seqs
  API: emit nvim_buf_lines_event from :terminal
  fillchars: Add "eob" flag

FIXES:
  startup: avoid blank stdin buffer if other files were opened
  Only waitpid() for processes that we care about
  Check all child processes for exit in SIGCHLD handler
  channel.c: Prevent channel_destroy_early() from freeing uninitialized rpc stuff
  transstr_buf: fix length comparison
  TUI: Fix standout mode
  man.vim: fix for mandoc
  provider/node: npm --loglevel silent
  API: nvim_win_set_cursor: set curswant
  checkhealth: Python: fix VIRTUAL_ENV check
  checkhealth: node.js: also search yarn

CHANGES:
  defaults: shortmess+=F
  highlight: high-priority CursorLine if fg is set.
  terminal: handle &confirm and :confirm on unloading
  screen: truncate showmode messages
  buffer: fix copying :setlocal options
  Ex mode: always "improved" (gQ)
  options: remove 'maxcombine` option (always 6)

INTERNAL:
  screen: use UTF-8 representation
2018-07-18 13:40:15 +00:00

57 lines
1.6 KiB
Makefile

# Created by: Anton Tornqvist <antont@inbox.lv>
# $FreeBSD$
PORTNAME= neovim
DISTVERSIONPREFIX= v
DISTVERSION= 0.3.1
CATEGORIES= editors
MAINTAINER= adamw@FreeBSD.org
COMMENT= Next-generation Vim
LICENSE= APACHE20
BUILD_DEPENDS= gperf:devel/gperf \
${LUA_MODLIBDIR}/bit.so:devel/lua-bitop \
${LUA_MODLIBDIR}/lpeg.so:devel/lua-lpeg
LIB_DEPENDS= libluajit-5.1.so:lang/luajit \
libmsgpackc.so:devel/msgpack \
libtermkey.so:devel/libtermkey \
libunibilium.so:devel/unibilium \
libuv.so:devel/libuv \
libvterm.so:devel/libvterm
USES= cmake:outsource iconv lua:build pathfix pkgconfig
USE_GITHUB= yes
GH_TUPLE= libmpack:libmpack:1.0.5:libmpack \
libmpack:libmpack-lua:1.0.7:libmpack_lua
CMAKE_ARGS= -DLUA_PRG:FILEPATH="${LUA_CMD}" \
-DCMAKE_INSTALL_MANDIR:PATH="${MANPREFIX}/man" \
-DDEPS_PREFIX:PATH="${LOCALBASE}"
OPTIONS_DEFINE= NLS
OPTIONS_SUB= yes
NLS_CMAKE_BOOL= ENABLE_LIBINTL
NLS_USES= gettext
post-patch:
@${REINPLACE_CMD} -e \
's|lua_objlen|lua_rawlen| ; \
s|luaL_reg |luaL_Reg | ; \
s|luaL_register(L, NULL, \(.*\));|luaL_setfuncs(L, \1, 0);|' \
${WRKSRC_libmpack_lua}/lmpack.c
post-patch-NLS-off:
@${REINPLACE_CMD} -e '/add_subdirectory(po)/d' ${WRKSRC}/src/nvim/CMakeLists.txt
pre-build:
${LN} -s ${WRKSRC_libmpack} ${WRKSRC_libmpack_lua}/mpack-src
@${MKDIR} ${BUILD_WRKSRC}/src/nvim
(cd ${WRKSRC_libmpack_lua} && ${CC} ${CFLAGS} -fPIC \
-I${LUA_INCDIR} -shared lmpack.c -o \
${BUILD_WRKSRC}/src/nvim/mpack.so \
${LUA_LIBDIR}/liblua-${LUA_VER}.so)
${LN} -s ${BUILD_WRKSRC}/src/nvim/mpack.so ${BUILD_WRKSRC}/runtime/mpack.so
.include <bsd.port.mk>