git: 1c81e0d96add - main - x11-toolkits/vte3: fix packging with python!=3.9 (+)

From: Dima Panov <fluffy_at_FreeBSD.org>
Date: Sat, 28 Jan 2023 23:11:37 UTC
The branch main has been updated by fluffy:

URL: https://cgit.FreeBSD.org/ports/commit/?id=1c81e0d96add75c049da1db145fb3dd92a35fa36

commit 1c81e0d96add75c049da1db145fb3dd92a35fa36
Author:     Dima Panov <fluffy@FreeBSD.org>
AuthorDate: 2023-01-28 23:08:47 +0000
Commit:     Dima Panov <fluffy@FreeBSD.org>
CommitDate: 2023-01-28 23:08:47 +0000

    x11-toolkits/vte3: fix packging with python!=3.9 (+)
    
    Shlib version numbers comes from gtk3/4 meson options not from PYTHON_VER
    
    No PORTREVISION bump needed, package content not changed with py39 and was broken with any other python
---
 x11-toolkits/vte3/Makefile  | 3 ++-
 x11-toolkits/vte3/pkg-plist | 4 ++--
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/x11-toolkits/vte3/Makefile b/x11-toolkits/vte3/Makefile
index ed09894b2266..cc21564d73b2 100644
--- a/x11-toolkits/vte3/Makefile
+++ b/x11-toolkits/vte3/Makefile
@@ -33,7 +33,8 @@ MESON_ARGS=	-Da11y=true \
 		-D_systemd=false \
 		-Dvapi=true
 
-PLIST_SUB=	VERSION=2.91
+# shlib version numbers comes from gtk3/4 meson options not from PYTHON_VER
+PLIST_SUB=	VERSION=2.91 VER3=3.91
 
 BINARY_ALIAS=	python3=${PYTHON_CMD}
 
diff --git a/x11-toolkits/vte3/pkg-plist b/x11-toolkits/vte3/pkg-plist
index 75493d0dd162..2b4309e00e08 100644
--- a/x11-toolkits/vte3/pkg-plist
+++ b/x11-toolkits/vte3/pkg-plist
@@ -25,7 +25,7 @@ include/vte-%%VERSION%%/vte/vtetypebuiltins-gtk3.h
 include/vte-%%VERSION%%/vte/vtetypebuiltins.h
 include/vte-%%VERSION%%/vte/vteversion.h
 lib/girepository-1.0/Vte-%%VERSION%%.typelib
-lib/girepository-1.0/Vte-%%PYTHON_VER%%1.typelib
+lib/girepository-1.0/Vte-%%VER3%%.typelib
 lib/libvte-%%VERSION%%-gtk4.so
 lib/libvte-%%VERSION%%-gtk4.so.0
 lib/libvte-%%VERSION%%.so
@@ -35,7 +35,7 @@ libdata/pkgconfig/vte-%%VERSION%%-gtk4.pc
 libdata/pkgconfig/vte-%%VERSION%%.pc
 libexec/vte-urlencode-cwd
 share/gir-1.0/Vte-%%VERSION%%.gir
-share/gir-1.0/Vte-%%PYTHON_VER%%1.gir
+share/gir-1.0/Vte-%%VER3%%.gir
 share/glade/catalogs/vte-%%VERSION%%.xml
 share/glade/pixmaps/hicolor/16x16/actions/widget-vte-terminal.png
 share/glade/pixmaps/hicolor/22x22/actions/widget-vte-terminal.png