git: 70a20866f8d0 - main - editors/vim: Update to 9.1.1723

From: Adam Weinberger <adamw_at_FreeBSD.org>
Date: Mon, 01 Sep 2025 05:43:06 UTC
The branch main has been updated by adamw:

URL: https://cgit.FreeBSD.org/ports/commit/?id=70a20866f8d066f2e384e854d0fb6f4311b7a612

commit 70a20866f8d066f2e384e854d0fb6f4311b7a612
Author:     Adam Weinberger <adamw@FreeBSD.org>
AuthorDate: 2025-09-01 05:39:20 +0000
Commit:     Adam Weinberger <adamw@FreeBSD.org>
CommitDate: 2025-09-01 05:39:23 +0000

    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!
---
 editors/vim/Makefile    | 17 +++++++++--------
 editors/vim/distinfo    |  6 +++---
 editors/vim/pkg-message | 13 ++++++++++++-
 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.
 ]