summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Weinberger <adamw@FreeBSD.org>2025-09-01 01:39:20 -0400
committerAdam Weinberger <adamw@FreeBSD.org>2025-09-01 01:39:23 -0400
commit70a20866f8d066f2e384e854d0fb6f4311b7a612 (patch)
treee32b2bdf73b52b4d71093a771345826a1281b8f9
parenteditors/neovim: Update to 0.11.4 (diff)
editors/vim: Update to 9.1.1723
This update changes how python plugins are handled. Previosuly, we linked directly against python, requiring all vim installations to have a dependency on python. Perhaps that's fine for flavours like gtk20 and gtk30, but it's burdensome and often unexpected for TUI users. Now, we use dynamic loading of python libraries, which means that vim should automatically support python plugins if python is installed. If python is NOT installed, no harm/no foul, just no python plugin support. I'm not expecting this to cause any issues, but if it does please reach out!
-rw-r--r--editors/vim/Makefile17
-rw-r--r--editors/vim/distinfo6
-rw-r--r--editors/vim/pkg-message13
3 files changed, 24 insertions, 12 deletions
diff --git a/editors/vim/Makefile b/editors/vim/Makefile
index 2c355ca3e32c..ec027f676a3e 100644
--- a/editors/vim/Makefile
+++ b/editors/vim/Makefile
@@ -1,5 +1,5 @@
PORTNAME= vim
-PORTVERSION= 9.1.1627
+PORTVERSION= 9.1.1723
DISTVERSIONPREFIX= v
CATEGORIES= editors
@@ -91,15 +91,21 @@ USES+= xorg
USE_XORG= ice sm x11 xmu xpm xt
.endif
+.if ${FLAVOR:U} != tiny
+USES= python:build
+CONFIGURE_ARGS+=--enable-python3interp=dynamic \
+ --with-python3-command=${PYTHON_CMD}
+.endif
+
# Options {{{1
# The bulk of the OPTIONS are for normal (non-tiny) vim
### Make sure any new options are excluded below in CONSOLE/TINY
-OPTIONS_DEFAULT= CTAGS_BASE PYTHON XXD
+OPTIONS_DEFAULT= CTAGS_BASE XXD
OPTIONS_DEFINE= MAKE_JOBS NLS XTERM_SAVE XXD
OPTIONS_SINGLE= CTAGS
OPTIONS_SINGLE_CTAGS= CTAGS_BASE CTAGS_EXUBERANT CTAGS_UNIVERSAL
OPTIONS_GROUP= LANGBIND
-OPTIONS_GROUP_LANGBIND= LUA PERL PYTHON RUBY SCHEME TCL
+OPTIONS_GROUP_LANGBIND= LUA PERL RUBY SCHEME TCL
OPTIONS_SUB= yes
# vim-tiny excludes everything except CONSOLE, MAKE_JOBS
@@ -139,11 +145,6 @@ LUA_USES= lua
PERL_CONFIGURE_ENABLE= perlinterp
PERL_USES= perl5
-PYTHON_USES= python
-PYTHON_USES_OFF= python:env
-PYTHON_CONFIGURE_ENABLE= python3interp
-PYTHON_CONFIGURE_WITH= python3-command=${PYTHON_CMD}
-
RUBY_CONFIGURE_ENABLE= rubyinterp
RUBY_USES= ruby
diff --git a/editors/vim/distinfo b/editors/vim/distinfo
index 12d9c2d40da5..f40c331b9c80 100644
--- a/editors/vim/distinfo
+++ b/editors/vim/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1755032977
-SHA256 (vim-vim-v9.1.1627_GH0.tar.gz) = f7c4c4bdc3a0b26c13e86f37eda7cd62618a082a2623df1d83d9d0aae98ac241
-SIZE (vim-vim-v9.1.1627_GH0.tar.gz) = 18754210
+TIMESTAMP = 1756704100
+SHA256 (vim-vim-v9.1.1723_GH0.tar.gz) = 057b339a2fa78729ff595393333d34a7d25ae77d833f55c2d89b03a2f55203bd
+SIZE (vim-vim-v9.1.1723_GH0.tar.gz) = 18764005
diff --git a/editors/vim/pkg-message b/editors/vim/pkg-message
index c89d22977b3b..0429825cb97e 100644
--- a/editors/vim/pkg-message
+++ b/editors/vim/pkg-message
@@ -7,5 +7,16 @@
$VIMRUNTIME/defaults.vim to see Vim's defaults, and see ':h initialization'
for the standard locations Vim looks for configuration files.
EOM
- }
+ },
+ { type:upgrade
+ maximum version: "0.9.1627"
+ message: <<EOM
+ The Vim port no longer brings in python automatically. Instead, it is
+ a dynloadable feature that can be enabled at runtime by installing python.
+
+ # pkg add python3
+
+ It will ONLY work with the version of python that the port was build with
+ (i.e. the defualt python version). If you've changed it manually, and want
+ python plugin, then you'll need to build and install the port locally.
]