Commit graph

83 commits

Author SHA1 Message Date
Muhammad Moinur Rahman
4433bd818e
editors/neovim: Sanitize MANPREFIX
Approved by:	portmgr (blanket)
2024-01-16 12:57:58 +01:00
Adam Weinberger
a618b050b8 editors/neovim: Update to 0.9.5
Changes:
This is a maintenance release, focusing on bugfixes.
Notably, fixes were made for issues with using and testing Nvim on less common platforms, like big endian platforms.
Bug Fixes

    defaults: Set 'fsync' #26039
    Dont create data dir if it's a broken symlink
    Make InspectTree handle nested injection
    Remove nested for_each_tree in TSTreeView (#26331)
    api: Use a conditional stack for nvim_cmd
    change: Update fold after on_bytes
    deps: Bump libmpack from luarocks
    extmark_to_array: Convert conceal_char to bytes
    highlight: Apply 'winblend' to float border
    inccommand: Save and restore '[ and '] marks
    inccommand: Don't crash with "split" and 'n' flag
    lsp: Handle NUL bytes in popup text
    lua: Correct return value for on_key with no arguments
    lua: Crash in nlua_error
    man: Make :Man with a range work
    mappings: Fix mapset() not replacing map with backslash
    marks: Handle switching buffer properly
    mouse: Avoid dragging after click label popupmenu callback
    mouse: Avoid dragging when clicking next to popupmenu
    move: Check the correct buffer
    oldtest: Always use a 64-bit int for swapfile block number
    options: Setting 'scroll' with resized grid
    quickfix: Check if delete failed in qf_fill_buffer()
    set_bool_option: Use int value to make bool Object
    set_option_from_tv: Use v_bool to access boolean option
    terminal: Assign channel to terminal earlier
    terminal: Avoid Insert mode in Terminal buffer
    terminal: Don't lose focus on
    terminal: Keep focus when scrolling number column of another window
    terminal: Make backslashes in 'shell' work on Windows
    treesitter: Foldexpr tweaks
    treesitter: Remove incompatible c query (again)
    ui: Empty line before the next message after :silent command

Build System

    Fix universal mac builds
    ci: Ensure correct headers are used on macOS

Documentation

    List NVIM_APPNAME as env on manpage
    starting.txt: Correct step number

Performance

    Remove redundant strlen in skipwhite

Testing

    Fix dependencies between test cases and test flakiness
2023-12-30 10:10:20 -05:00
Adam Weinberger
8999f606ef editors/neovim: Fix spelling of libmsgpack-c.so
The only name is a symlink so it worked anyway, but it confused the
QA scripts.
2023-10-25 15:38:02 -04:00
Adam Weinberger
14d20ddb6b editors/neovim: Update to 0.9.4 2023-10-09 18:11:44 -04:00
Adam Weinberger
ea9174d32e editors/neovim: Update to 0.9.2 2023-09-07 07:28:00 -04:00
Piotr Kubaj
5b0c95f8a8 editors/neovim: drop GCC on powerpc64 2023-08-10 22:02:27 +02:00
Adam Weinberger
0df4ff3113 editors/neovim: Update to 0.9.1 2023-05-29 08:29:00 -04:00
Adam Weinberger
1383347dd7 editors/neovim: Update to 0.9.0
Note that gettext-runtime is required now, even when NLS is disabled.

Changes: https://github.com/neovim/neovim/blob/v0.9.0/runtime/doc/news.txt
2023-04-07 13:03:58 -04:00
Adam Weinberger
7874e5c3b1 editors/neovim: Update to 0.8.3 2023-02-02 07:46:26 -07:00
Adam Weinberger
8bc9fa034c editors/neovim: Update to 0.8.2 2022-12-29 10:25:13 -07:00
Adam Weinberger
d9f0cfa9d6 editors/neovim: Update to 0.8.1 2022-11-14 04:52:08 -07:00
Jose Luis Duran
15f85ad99e editors/neovim: Add support for UseBlocklist as a preferred alias for UseBlacklist
PR:		267354
2022-10-26 04:59:31 -06:00
Adam Weinberger
9e03d9958e devel/msgpack: Update and split into C and C++ versions
Upstream now provides msgpack as two separate distributions: a C version
with the traditional libmsgpackc.so library, and a header-only C++
version.

devel/msgpack is now devel/msgpack-c and devel/msgpack-cxx, and its
consumers now point to one or both. Note that it is entirely possible
for both to be required. PORTREVISION bump for all consumers.

In my testing, it's not clear that the MSGPACK option in the mariadb
ports actually does anything. I don't think mariadb is actually linking
against msgpack, even before this commit.
2022-10-16 15:10:02 -06:00
Adam Weinberger
8e76912d7e devel/luv, editors/neovim: Use USES=luajit (changes luajit to luajit-devel) 2022-10-14 11:30:15 -06:00
Adam Weinberger
d942d209c5 editors/neovim: Update to 0.8.0
Big features here include introducing winbar (a configurable bar at the
top of each window), cmdheight=0, inclusion of some treesitter parsers
out-of-the-box, and much more.

Full set of changes: https://github.com/neovim/neovim/releases/tag/v0.8.0
2022-09-30 10:37:50 -06:00
Stefan Eßer
fb16dfecae Remove WWW entries moved into port Makefiles
Commit b7f05445c0 has added WWW entries to port Makefiles based on
WWW: lines in pkg-descr files.

This commit removes the WWW: lines of moved-over URLs from these
pkg-descr files.

Approved by:		portmgr (tcberner)
2022-09-07 23:58:51 +02:00
Stefan Eßer
b7f05445c0 Add WWW entries to port Makefiles
It has been common practice to have one or more URLs at the end of the
ports' pkg-descr files, one per line and prefixed with "WWW:". These
URLs should point at a project website or other relevant resources.

Access to these URLs required processing of the pkg-descr files, and
they have often become stale over time. If more than one such URL was
present in a pkg-descr file, only the first one was tarnsfered into
the port INDEX, but for many ports only the last line did contain the
port specific URL to further information.

There have been several proposals to make a project URL available as
a macro in the ports' Makefiles, over time.

This commit implements such a proposal and moves one of the WWW: entries
of each pkg-descr file into the respective port's Makefile. A heuristic
attempts to identify the most relevant URL in case there is more than
one WWW: entry in some pkg-descr file. URLs that are not moved into the
Makefile are prefixed with "See also:" instead of "WWW:" in the pkg-descr
files in order to preserve them.

There are 1256 ports that had no WWW: entries in pkg-descr files. These
ports will not be touched in this commit.

The portlint port has been adjusted to expect a WWW entry in each port
Makefile, and to flag any remaining "WWW:" lines in pkg-descr files as
deprecated.

Approved by:		portmgr (tcberner)
2022-09-07 23:10:59 +02:00
Tobias C. Berner
7cd7a8d850 editors: remove 'Created by' lines
A big Thank You to the original contributors of these ports:

  *  Adam Saponara <as@php.net>
  *  Adam Weinberger <adamw@FreeBSD.org>
  *  Akinori MUSHA aka knu <knu@idaemons.org>
  *  Alexey Dokuchaev <danfe@FreeBSD.org>
  *  Andreas Kohout <shanee@augusta.de>
  *  Andrej Zverev <az@inec.ru>
  *  Andrey Zakhvatov
  *  Anton Tornqvist <antont@inbox.lv>
  *  Bill Fumerola <billf@chc-chimes.com>
  *  Bob Eager <bob@eager.cx>
  *  Chris D. Faulhaber <jedgar@fxp.org>
  *  Chris Petrik <chris@officialunix.com>
  *  Christian Brueffer <chris@unixpages.org>
  *  Craig Leres <leres@FreeBSD.org>
  *  Daniel Eischen <deischen@FreeBSD.org>
  *  David O'Brien <obrien@cs.ucdavis.edu>
  *  David Thiel <lx@redundancy.redundancy.org>
  *  Diego Depaoli <trebestie@gmail.com>
  *  Dima Dorfman <dima@unixfreak.org>
  *  Dmitri Goutnik <dg@syrec.org>
  *  Dominic Mitchell
  *  Emanuel Haupt <ehaupt@FreeBSD.org>
  *  Frederic Cambus
  *  Gea-Suan Lin <gslin@gslin.org>
  *  Geoffrey Mainland <mainland@apeiron.net>
  *  Grzegorz Blach <gblach@FreeBSD.org>
  *  Hakisho Nukama <nukama@gmail.com>
  *  James Bailie <jimmy@mammothcheese.ca>
  *  Janos Mohacsi <janos.mohacsi@bsd.hu>
  *  Jason Evans <jasone@FreeBSD.org>
  *  Jean-Yves Lefort <jylefort@brutele.be>
  *  Jille Timmermans (jille@quis.cx)
  *  Joe Marcus Clarke <marcus@FreeBSD.org>
  *  Johannes Meixner <johannes@perceivon.net>
  *  John Merryweather Cooper et al
  *  Jun-ichiro itojun Itoh <itojun@itojun.org>
  *  KIMURA Yasuhiro <yasu@utahime.org>
  *  Kelly Yancey <kbyanc@posi.net>
  *  Kenneth Vestergaard Schmidt <kvs@pil.dk>
  *  Kris Kennaway <kris@FreeBSD.org>
  *  Leif Pedersen <bilbo@devpit.org>
  *  MANTANI Nobutaka <nobutaka@nobutaka.com>
  *  Mark Pulford <mark@kyne.com.au>
  *  Martin Blapp
  *  Matías Pizarro <matias@pizarro.net>
  *  Maxim Sobolev <sobomax@FreeBSD.org>
  *  Michael Johnson <ahze@FreeBSD.org>
  *  Michael Johnson <ahze@ahze.net>
  *  Michael L. Hostbaek (mich@freebsdcluster.org)
  *  Michael Vasilenko <acid@stu.cn.ua>
  *  Miguel Clara <miguelmclara@gmail.com>
  *  Mohammad S. Babaei <info@babaei.net>
  *  Nicola Vitale <nivit@email.it>
  *  Olga Smirnova <mistresssilvara@hotmail.com>
  *  Oliver Lehmann <oliver@FreeBSD.org>
  *  Olivier Cochard-Labbe <olivier@FreeBSD.org>
  *  Olivier Duchateau
  *  Patrick Li <pat@databits.net>
  *  Peter Wemm <peter@FreeBSD.org>
  *  Philippe Lefebvre <nemesis@balistik.net>
  *  Rimvydas Jasinskas <zrj@ef.irc>
  *  Roman Shterenzon <roman@xpert.com>
  *  Satoshi Asami (asami)
  *  Shaun Amott <shaun@FreeBSD.org>
  *  Shigeyuki FUKUSHIMA <shige@FreeBSD.org>
  *  Shigeyuki Fukushima <shige@FreeBSD.org>
  *  Stanislav Sedov <stas@core.310.ru>
  *  Thomas Gellekum <tg@FreeBSD.org>
  *  Vitaly Magerya <vmagerya@gmail.com>
  *  Xin LI <delphij@FreeBSD.org>
  *  Ying-Chieh Liao
  *  Ying-Chieh Liao <ijliao@FreeBSD.org>
  *  Yoichi NAKAYAMA <yoichi@eken.phys.nagoya-u.ac.jp>
  *  alepulver
  *  brett@peloton.physics.montana.edu
  *  buganini@gmail.com
  *  eric
  *  erich@rrnet.com
  *  gahr
  *  gelf
  *  giffunip@asme.org
  *  ijliao
  *  jkh
  *  joerg
  *  joseph@randomnetworks.com
  *  krion
  *  lightside <lightside@gmx.com>
  *  pgf
  *  rch@richard.eu.org
  *  tetsushi NAKAI <nakai@tsl.pe.u-tokyo.ac.jp>
  *  tg
  *  thierry@pompo.net
  *  torstenb@FreeBSD.org
  *  verm

With hat:	portmgr
2022-07-20 16:21:49 +02:00
Adam Weinberger
e96925a940 editors/neovim: Update to 0.7.2 2022-06-26 10:19:32 -06:00
Adam Weinberger
9d7f6041a6 editors/neovim: Update to 0.7.0 2022-04-15 19:21:58 -06:00
Adam Weinberger
390b480773 editors/vim, devel/luv: Use luajit-openresty as the Lua backend
After a failed attempt a few months ago, re-enable luajit-openresty
as the default luv backend, and the only neovim backend.

I suspect that it's safe to switch luv unconditionally as well, but I'm
taking a more conservative route at this time and just switching amd64
and i386 to it.

NeoVim is designed specifically for luajit. While it runs on PUC lua,
PUC is not used by upstream and no attempts are made to build for it.

However, luajit is largely a stalled project and is unlikely to ever
see new releases. The OpenResty fork, however, is actively-developed.
It is also the standard neovim lua backend on macOS Homebrew and most
Linux distributions.
2022-01-29 05:39:24 -07:00
Adam Weinberger
0e577459bf editors/neovim: Update to 0.6.1 2021-12-31 13:48:45 -07:00
Piotr Kubaj
b4a8d5e1a4 editors/neovim: only use GCC on powerpc64
On powerpc64le, clang works fine with LTO.
2021-12-03 23:21:37 +00:00
Dima Panov
136c812980 editors/neovim: unbreak build with luajit when lua53+ set as default
Approved by:	adamw (maintainer)
Sponsored by:	Netzkommune GmbH
2021-12-03 00:09:34 +03:00
Adam Weinberger
a2f29f52f7 editors/neovim: Partially revert 9b869a4c17
luajit-openresty causes lua errors with many nvim plugins. I don't know
why, and until I have time to diagnose it, revert the switch to
hardcoded luajit-openresty. In the short term I'll likely switch to
hardcoding luajit and removing the PUC Lua option.
2021-12-02 09:41:57 -07:00
Adam Weinberger
9b869a4c17 editors/neovim: Update to 0.6.0 and switch lua backend
0.6.0 is an interval update that refines and extends the major lua
overhaul of 0.5.0.

Instead of using options for luajit vs PUC (mainline) lua, use
luajit-openresty unconditionally. devel/luv needs to use the same
backend as NeoVIM, so this commit switches it too.

NeoVIM is designed specifically to run on luajit rather than PUC;
upstream essentially doesn't develop for PUC. However, luajit is
largely unmaintained, locked in an older lua dialect, and unbuildable
on many architectures.

The luajit-openresty fork is faster, more modern, and should work in
more places. It's unclear to me which FreeBSD archs it does or doesn't
work on, so the fallout will have to be addressed once the builders have
a whack at it.
2021-12-01 20:20:52 -07:00
Piotr Kubaj
2a8c2d40fe editors/neovim: enable LUAJIT on powerpc
While here, remove entry for riscv architecture. We only have riscv64 and riscv64sf.
2021-10-26 20:29:29 +00:00
Adam Weinberger
98af9ea288 editors/neovim: Update to 0.5.1
BREAKING CHANGES:
feat(lua)!: register_keystroke_callback => on_key
feat(lsp)!: change handler signature #15504

FEATURES:
feat(jobstart): add parameter to close stdin

FIXES:
backport: fix(windowing): positioning of relative floats
backport: refactor(sign): include longer sign column option
backport: fix(sign): reset auto sign column with minimum in float win minimal style
backport: fix(decorations): crash when :bdelete (extmark_free_all) after clear_namespace
build: use RelWithDebInfo build for nightlies, Release for releases
build: update appdata.xml version in release commit
test(treesitter): skip all parsers tests if parsers aren't installed
Rename stdin to stdin_mode (fixes Windows build)

FIXES (LSP):
backport: fix(lsp): Ensure human readable errors are printed
backport: fix(lsp): Ensure users get feedback on references/symbols errors or empty results
backport: fix(lsp): prevent double <text> for cached plaintext markup
feat(lsp): allow root_dir to be nil (#15430) (Mathias Fußenegger)
lsp(start_client): Allow passing custom workspaceFolders to the LSP (#15132) (sim)
fix(lsp): check if buffer is valid in changetracking (#15505) (Jose Alvarez)
fix(lsp): avoid ipairs on non-sequential tables (#15059) (Michael Lingelbach)
feat(lsp): improve vim.lsp.util.apply_text_edits (#15561) (hrsh7th)
feat(lsp): improve logging (#15636) (Michael Lingelbach)
2021-09-26 18:23:38 -06:00
Bernhard Froehlich
6722ad601a
editors/neovim: Add CPE information
Approved by:    portmgr (blanket)
2021-08-31 11:24:18 +00:00
Adam Weinberger
6c3f8661ce editors/neovim: Update to 0.5
While here, generate the runtime data files automatically. Enumerating
them stopped being fun.

There are major new features in this release, the most notable being the
inclusion of native support for LSP (Language Server Protocol) and a
native parser/AST generator. These can be used to do intelligent code
analysis and completion, without requiring external scripting providers.

Also, the Neovim config file(s) can now be written entirely in lua
instead of (or in addition to) Vimscript.
2021-07-02 13:45:28 -04:00
Mathieu Arnold
305f148f48
Remove # $FreeBSD$ from Makefiles. 2021-04-06 16:31:07 +02:00
Mathieu Arnold
18f4cb47cc Remove occurrences of %%LUA_LIBDIR%%.
Differential Revision:	https://reviews.freebsd.org/D29138
2021-03-09 14:13:41 +00:00
Mark Linimon
5e16fb793e Turn off LUAJIT on riscv64 as well. This allows it to build.
Approved by:	portmgr (tier-2 blanket)
Obtained from:	lonesome.com build testing
2020-12-07 05:25:09 +00:00
Adam Weinberger
ecb9c6e012 editors/neovim: Update list of python versions
Previously, py3.9 wasn't recognized at all, and it was checking for python
versions that are no longer supported and don't exist in the ports tree.

No MFH here as py39 doesn't exist in 2020Q4.
2020-11-03 15:01:29 +00:00
Mark Linimon
282fd9b954 Generalize to powerpc64le.
Approved by:	portmgr (tier-2 blanket)
2020-09-27 20:06:02 +00:00
Tobias Kortkamp
963d53af82 Clean up some things
Reported by:	portscan
2020-09-24 08:50:25 +00:00
Piotr Kubaj
243f975a08 editors/neovim: enable luajit by default on powerpc64 using luajit-openresty 2020-09-23 11:40:21 +00:00
Adam Weinberger
a2e522797d neovim: Update to 0.4.4 2020-08-05 08:38:19 +00:00
Piotr Kubaj
d512d4b6c8 editors/neovim: fix build on powerpc64 elfv2
Use GCC instead of Clang, Clang-compiled binary crashes at testing. Strangely, it doesn't crash when built with WITH_DEBUG=yes, but that makes debugging hard.
2020-06-11 17:44:02 +00:00
Mathieu Arnold
beb1c1fe19 USES=lua gained flavors.
Ports using USES=lua:module or lua:flavors will be flavored.  A range of
supported lua versions can be set using XX-YY (or XX-, or -YY, or simply ZZ)
for ports not supporting all lua versions.

USES=lua sets LUA_FLAVOR that needs to be used on all dependencies of
flavored lua ports, in a similar way as PHP or Python flavors.

PR:		245038
Submitted by:	andrew tao11 riddles org uk
Reviewed by:	mat, kevans, russ haley gmail com
Approved by:	mat (portmgr)
Differential Revision:	https://reviews.freebsd.org/D16494
2020-04-14 15:49:36 +00:00
Adam Weinberger
c219fe8826 neovim, lynx: Update WWW 2020-01-09 03:56:24 +00:00
Adam Weinberger
ee2a01e176 neovim: Limit portscout to number-looking versions
There's a "stable" tag that portscout really likes.
2019-12-28 18:47:51 +00:00
Adam Weinberger
af98aa7b93 neovim: Blacklist luajit on ppc
It's possible that luajit itself is broken on ppc32, but neither of the
people using that arch have reported similar errors AFAIK.

PR:		242799
2019-12-23 01:15:23 +00:00
Adam Weinberger
67e11484aa neovim: Update to 0.4.3 2019-11-07 13:27:02 +00:00
Adam Weinberger
bab4e353f1 neovim: Update to 0.4.2
PR:		240699
Submitted by:	checo1705 secmailpro
2019-10-07 15:45:25 +00:00
Adam Weinberger
ab21586e52 neovim: Update to 0.3.8
* security: 'modeline', 'modelineexpr'
 * Disallow API calls in the sandbox.

MFH:		2019Q3
2019-07-04 16:34:15 +00:00
Adam Weinberger
c373e77574 Update neovim to 0.3.7 2019-05-29 14:44:45 +00:00
Adam Weinberger
6d22b3735c Update neovim to 0.3.6 2019-05-29 02:24:01 +00:00
Adam Weinberger
c493a6aa54 Disable LuaJIT on non-x86 architectures
The version of LuaJIT in port doesn't work well (or at all) for neovim
on non-x86 architectures. Plus, some users (at least the submitter, who
made a good argument for it) may not want LuaJIT at all.

So, make LuaJIT an OPTION. Enable it by default, and exclude it from
all the archs that LuaJIT+neovim doesn't work on. Fall back instead on
normal Lua.

PR:		238079
Submitted by:	Greg V
MFH:		2019Q2
2019-05-28 14:04:35 +00:00
Adam Weinberger
84fcbffce0 Update neovim to 0.3.5
Maintenance release to fix issues found in v0.3.4.

  options: properly reset directories on 'autochdir'
  Remove MSVC optimization workaround for SHM_ALL
  Make SHM_ALL to a variable instead of a compound literal #define
  doc: mention "pynvim" module rename
  screen: don't crash when drawing popupmenu with 'rightleft' option
  look-behind match may use the wrong line number
  :terminal : set topline based on window height
  :recover : Fix crash on non-existent *.swp
2019-04-28 21:08:06 +00:00