git: 2a68ac754e62 - main - graphics/goocanvas3: Fix build with python-3.11

From: Wen Heping <wen_at_FreeBSD.org>
Date: Wed, 24 Jan 2024 12:01:19 UTC
The branch main has been updated by wen:

URL: https://cgit.FreeBSD.org/ports/commit/?id=2a68ac754e626a422caf09b3a2f515dc3961b0bb

commit 2a68ac754e626a422caf09b3a2f515dc3961b0bb
Author:     Wen Heping <wen@FreeBSD.org>
AuthorDate: 2024-01-24 11:59:40 +0000
Commit:     Wen Heping <wen@FreeBSD.org>
CommitDate: 2024-01-24 12:01:04 +0000

    graphics/goocanvas3: Fix build with python-3.11
    
    PR:             275494
    Approved by:    portmgr(blanket, fix build)
---
 graphics/goocanvas3/files/patch-configure | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/graphics/goocanvas3/files/patch-configure b/graphics/goocanvas3/files/patch-configure
new file mode 100644
index 000000000000..0fa983470e9a
--- /dev/null
+++ b/graphics/goocanvas3/files/patch-configure
@@ -0,0 +1,11 @@
+--- configure.orig	2024-01-24 08:43:28 UTC
++++ configure
+@@ -16949,7 +16949,7 @@ fi
+ 
+         # Find any Python interpreter.
+     if test -z "$PYTHON"; then
+-      for ac_prog in python python2 python3  python3.9 python3.8 python3.7 python3.6 python3.5 python3.4 python3.3  python3.2 python3.1 python3.0  python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1  python2.0
++      for ac_prog in python python2 python3  python3.11 python3.9 python3.8 python3.7 python3.6 python3.5 python3.4 python3.3  python3.2 python3.1 python3.0  python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1  python2.0
+ do
+   # Extract the first word of "$ac_prog", so it can be a program name with args.
+ set dummy $ac_prog; ac_word=$2