git: 1bf4169000da - main - devel/py-qtbuilder: Fix build

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Mon, 07 Mar 2022 18:27:36 UTC
The branch main has been updated by sunpoet:

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

commit 1bf4169000dadc2de0a00640124d290b9a3c31f2
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2022-03-07 18:08:06 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2022-03-07 18:13:23 +0000

    devel/py-qtbuilder: Fix build
    
    writing byte-compilation script '/tmp/tmp5hwcw4h5.py'
    /usr/local/bin/python3.8 /tmp/tmp5hwcw4h5.py
      File "/usr/local/lib/python3.8/site-packages/pyqtbuild/bundle/bundle.py", line 72
        sub_parts = parts[0].split('_')
        ^
    SyntaxError: invalid syntax
    
    removing /tmp/tmp5hwcw4h5.py
    ...
    writing list of installed files to '/wrkdirs/usr/ports/devel/py-qtbuilder/work-py38/.PLIST.pymodtmp'
    /usr/local/lib/python3.8/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
      warnings.warn(
      File "/usr/local/lib/python3.8/site-packages/pyqtbuild/bundle/bundle.py", line 72
        sub_parts = parts[0].split('_')
        ^
    SyntaxError: invalid syntax
    
    ...
    ====> Checking for pkg-plist issues (check-plist)
    ===> Parsing plist
    ===> Checking for items in STAGEDIR missing from pkg-plist
    ===> Checking for items in pkg-plist which are not in STAGEDIR
    Error: Missing: %%PYTHON_SITELIBDIR%%/pyqtbuild/bundle/__pycache__/bundle%%PYTHON_EXT_SUFFIX%%.opt-1.pyc
    Error: Missing: %%PYTHON_SITELIBDIR%%/pyqtbuild/bundle/__pycache__/bundle%%PYTHON_EXT_SUFFIX%%.pyc
    ===> Error: Plist issues found.
    *** Error code 1
    
    Stop.
    make: stopped in /usr/ports/devel/py-qtbuilder
    =>> Error: check-plist failures detected
    
    Approved by:    portmgr (blanket)
---
 devel/py-qtbuilder/files/patch-pyqtbuild-bundle-bundle.py | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/devel/py-qtbuilder/files/patch-pyqtbuild-bundle-bundle.py b/devel/py-qtbuilder/files/patch-pyqtbuild-bundle-bundle.py
new file mode 100644
index 000000000000..e28d96a77df6
--- /dev/null
+++ b/devel/py-qtbuilder/files/patch-pyqtbuild-bundle-bundle.py
@@ -0,0 +1,11 @@
+--- pyqtbuild/bundle/bundle.py.orig	2021-10-12 12:00:18 UTC
++++ pyqtbuild/bundle/bundle.py
+@@ -66,7 +66,7 @@ def bundle(wheel_path, qt_dir, build_tag_suffix, msvc_
+             parts[-1] = parts[-1].replace('universal2', arch)
+         else:
+             raise UserException(
+-                    "'{0}' is not supported by {1}".format(arch, wheel_name)
++                    "'{0}' is not supported by {1}".format(arch, wheel_name))
+ 
+     # Get the package object.
+     sub_parts = parts[0].split('_')