From ec069438e74a52a53c9831ad2243846a0496b039 Mon Sep 17 00:00:00 2001 From: Renee Otten Date: Sat, 2 Dec 2023 22:47:31 -0500 Subject: [PATCH] py-sip: fix typo Closes: https://trac.macports.org/ticket/68828 --- python/py-sip/Portfile | 5 +++-- python/py-sip/files/patch-typo.diff | 11 +++++++++++ 2 files changed, 14 insertions(+), 2 deletions(-) create mode 100644 python/py-sip/files/patch-typo.diff diff --git a/python/py-sip/Portfile b/python/py-sip/Portfile index 4329df29493ca..1faecac63226b 100644 --- a/python/py-sip/Portfile +++ b/python/py-sip/Portfile @@ -5,7 +5,7 @@ PortGroup python 1.0 name py-sip version 6.8.0 -revision 0 +revision 1 epoch 1 categories-append devel @@ -62,7 +62,8 @@ if {${name} ne ${subport}} { port:py${python.version}-ply # 'ScopedName' object has no attribute 'replace' patchfiles-append \ - patch-ScopedName-str-conversion.diff + patch-ScopedName-str-conversion.diff \ + patch-typo.diff } depends_lib-append \ diff --git a/python/py-sip/files/patch-typo.diff b/python/py-sip/files/patch-typo.diff new file mode 100644 index 0000000000000..ea209dad60be7 --- /dev/null +++ b/python/py-sip/files/patch-typo.diff @@ -0,0 +1,11 @@ +--- sipbuild/generator/outputs/code.py Thu Nov 30 09:55:35 2023 +0000 ++++ sipbuild/generator/outputs/code.py Thu Nov 30 21:16:18 2023 +0000 +@@ -8408,7 +8408,7 @@ + else: + is_first = True + +- if klass.docstring is None or klass.docstring.signature is not SocstringSignature.DISCARDED: ++ if klass.docstring is None or klass.docstring.signature is not DocstringSignature.DISCARDED: + for ctor in klass.ctors: + if ctor.access_specifier is AccessSpecifier.PRIVATE: + continue