FreeBSD Bugzilla – Attachment 246940 Details for
Bug 275667
graphics/py-python-poppler-qt5: update to 21.3.0
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
v1
0001-graphics-py-python-poppler-qt5-update-to-21.3.0.patch (text/plain), 13.25 KB, created by
Tobias C. Berner
on 2023-12-09 20:57:14 UTC
(
hide
)
Description:
v1
Filename:
MIME Type:
Creator:
Tobias C. Berner
Created:
2023-12-09 20:57:14 UTC
Size:
13.25 KB
patch
obsolete
>From 2a17faf1509b51b08d4d173ada54bfddcec68baf Mon Sep 17 00:00:00 2001 >From: "Tobias C. Berner" <tcberner@FreeBSD.org> >Date: Sat, 9 Dec 2023 21:53:09 +0100 >Subject: [PATCH] graphics/py-python-poppler-qt5: update to 21.3.0 > >PR: 275667 >--- > graphics/py-python-poppler-qt5/Makefile | 9 +- > graphics/py-python-poppler-qt5/distinfo | 6 +- > .../files/patch-poppler-qt5.sip | 13 --- > .../files/patch-project.py | 94 ------------------- > .../files/patch-pyproject.toml | 42 --------- > .../files/patch-types.sip | 60 ------------ > .../files/patch-version.sip.in | 26 ----- > graphics/py-python-poppler-qt5/pkg-plist | 6 +- > 8 files changed, 11 insertions(+), 245 deletions(-) > delete mode 100644 graphics/py-python-poppler-qt5/files/patch-poppler-qt5.sip > delete mode 100644 graphics/py-python-poppler-qt5/files/patch-project.py > delete mode 100644 graphics/py-python-poppler-qt5/files/patch-pyproject.toml > delete mode 100644 graphics/py-python-poppler-qt5/files/patch-types.sip > delete mode 100644 graphics/py-python-poppler-qt5/files/patch-version.sip.in > >diff --git a/graphics/py-python-poppler-qt5/Makefile b/graphics/py-python-poppler-qt5/Makefile >index e4637f56e817..e97e42e959ba 100644 >--- a/graphics/py-python-poppler-qt5/Makefile >+++ b/graphics/py-python-poppler-qt5/Makefile >@@ -1,7 +1,6 @@ > PORTNAME= python-poppler-qt5 > DISTVERSIONPREFIX= v >-DISTVERSION= 0.75.0 >-PORTREVISION= 27 >+DISTVERSION= 21.3.0 > CATEGORIES= graphics python > PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} > >@@ -27,11 +26,13 @@ PLIST_SUB= _PY_SONAME=${_PY_SONAME} > > _PY_SONAME= ${PYTHON_EXT_SUFFIX} > >+BINARY_ALIAS= qmake=${QMAKE} >+ > do-build: >- (cd ${WRKSRC} ; sip-build-${PYTHON_VER} --qmake ${QMAKE} --verbose --no-make --build-dir build ; ${MAKE} -C ./build ) >+ (cd ${WRKSRC} ; ${SETENV} ${MAKE_ENV} ${SIP} ${SIP_ARGS} ; ${SETENV} ${MAKE_ENV} ${MAKE} -C ./build ) > > do-install: >- (cd ${WRKSRC} ; ${MAKE} -C ./build install INSTALL_ROOT=${STAGEDIR} ) >+ (cd ${WRKSRC} ; ${SETENV} ${MAKE_ENV} ${MAKE} -C ./build install INSTALL_ROOT=${STAGEDIR} ) > > post-install: > ${RLN} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/popplerqt5${_PY_SONAME}.so ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/popplerqt5.so >diff --git a/graphics/py-python-poppler-qt5/distinfo b/graphics/py-python-poppler-qt5/distinfo >index 9fdee9133925..93991818441f 100644 >--- a/graphics/py-python-poppler-qt5/distinfo >+++ b/graphics/py-python-poppler-qt5/distinfo >@@ -1,3 +1,3 @@ >-TIMESTAMP = 1587923266 >-SHA256 (frescobaldi-python-poppler-qt5-v0.75.0_GH0.tar.gz) = 92e6bd8f4ce90ba4e3e0c2ada026b643481ba1b109d45e8fdbdaedca8416a995 >-SIZE (frescobaldi-python-poppler-qt5-v0.75.0_GH0.tar.gz) = 23281 >+TIMESTAMP = 1702153835 >+SHA256 (frescobaldi-python-poppler-qt5-v21.3.0_GH0.tar.gz) = dbf3be9c8123429c8a73ebd4c18993331619198e88fa40dde99f48213fa75012 >+SIZE (frescobaldi-python-poppler-qt5-v21.3.0_GH0.tar.gz) = 25641 >diff --git a/graphics/py-python-poppler-qt5/files/patch-poppler-qt5.sip b/graphics/py-python-poppler-qt5/files/patch-poppler-qt5.sip >deleted file mode 100644 >index 8ba76f442ddf..000000000000 >--- a/graphics/py-python-poppler-qt5/files/patch-poppler-qt5.sip >+++ /dev/null >@@ -1,13 +0,0 @@ >-From https://github.com/frescobaldi/python-poppler-qt5/pull/41/commits/4ee58b6ee02772db915fdc5e70e336e0e5b2f34c >- >---- poppler-qt5.sip.orig 2019-11-22 05:56:45 UTC >-+++ poppler-qt5.sip >-@@ -19,7 +19,7 @@ >- #include <qt5/poppler-qt5.h> >- %End >- >--%Include version.sip // auto-generated by the setup.py script >-+%Include version.sip // auto-generated by the project.py script >- %Include types.sip >- >- %Include poppler-annotation.sip >diff --git a/graphics/py-python-poppler-qt5/files/patch-project.py b/graphics/py-python-poppler-qt5/files/patch-project.py >deleted file mode 100644 >index dc3e0ad077dd..000000000000 >--- a/graphics/py-python-poppler-qt5/files/patch-project.py >+++ /dev/null >@@ -1,94 +0,0 @@ >-From https://github.com/frescobaldi/python-poppler-qt5/pull/41/commits/4ee58b6ee02772db915fdc5e70e336e0e5b2f34c >- >---- project.py.orig 2020-10-11 18:59:42 UTC >-+++ project.py >-@@ -0,0 +1,89 @@ >-+"""The build configuration file for Python-Poppler-Qt5, used by sip.""" >-+ >-+from os.path import join >-+import re >-+import subprocess >-+from pyqtbuild import PyQtBindings, PyQtProject >-+from sipbuild import Option >-+import PyQt5 >-+ >-+ >-+class PythonPopplerQt5(PyQtProject): >-+ """The Project class.""" >-+ >-+ def __init__(self): >-+ super().__init__() >-+ self.bindings_factories = [PopplerQt5Bindings] >-+ >-+ def update(self, tool): >-+ """Allows SIP to find PyQt5 .sip files.""" >-+ super().update(tool) >-+ self.sip_include_dirs.append(join(PyQt5.__path__[0], 'bindings')) >-+ >-+ >-+class PopplerQt5Bindings(PyQtBindings): >-+ """The Poppler-Qt5 Bindings class.""" >-+ >-+ def __init__(self, project): >-+ super().__init__(project, name='Poppler-Qt5', >-+ sip_file='poppler-qt5.sip', >-+ qmake_QT=['xml']) >-+ >-+ def get_options(self): >-+ """Our custom options that a user can pass to sip-build.""" >-+ options = super().get_options() >-+ options.append( >-+ Option('poppler_version', >-+ help='version of the poppler library', >-+ metavar='VERSION')) >-+ return options >-+ >-+ @staticmethod >-+ def run_pkg_config(option): >-+ output = subprocess.check_output( >-+ ['pkg-config', option, 'poppler-qt5'], >-+ text=True) >-+ return output.rstrip() >-+ >-+ def apply_user_defaults(self, tool): >-+ # Set include_dirs, library_dirs and libraries based on pkg-config data >-+ cflags = self.run_pkg_config('--cflags-only-I').split() >-+ libs = self.run_pkg_config('--libs').split() >-+ self.include_dirs.extend( >-+ flag[2:] for flag in cflags if flag.startswith('-I')) >-+ self.library_dirs.extend( >-+ flag[2:] for flag in libs if flag.startswith('-L')) >-+ self.libraries.extend( >-+ flag[2:] for flag in libs if flag.startswith('-l')) >-+ >-+ # Generate version.sip file >-+ if self.poppler_version is not None: >-+ poppler_qt5_version = self.poppler_version >-+ else: >-+ poppler_qt5_version = self.run_pkg_config('--modversion') >-+ poppler_qt5_version = tuple(map(int, poppler_qt5_version.split('.'))) >-+ python_poppler_qt5_version = self.project.version_str.split('.') >-+ format_dict = { >-+ 'vlen': 'i' * len(python_poppler_qt5_version), >-+ 'vargs': ', '.join(python_poppler_qt5_version), >-+ 'pvlen': 'i' * len(poppler_qt5_version), >-+ 'pvargs': ', '.join(map(str, poppler_qt5_version)), >-+ } >-+ with open('version.sip.in') as template_file: >-+ version_sip_template = template_file.read() >-+ with open('version.sip', 'w') as version_file: >-+ version_file.write(version_sip_template.format(**format_dict)) >-+ >-+ # Add Poppler version tag >-+ if poppler_qt5_version: >-+ with open('timeline.sip') as timeline_file: >-+ timeline = timeline_file.read() >-+ for match in re.finditer(r'POPPLER_V(\d+)_(\d+)_(\d+)', timeline): >-+ if poppler_qt5_version < tuple(map(int, match.group(1, 2, 3))): >-+ break >-+ tag = match.group() >-+ else: >-+ tag = 'POPPLER_V0_20_0' >-+ self.tags.append(tag) >-+ self.tags.append("WS_X11") >-+ super().apply_user_defaults(tool) >diff --git a/graphics/py-python-poppler-qt5/files/patch-pyproject.toml b/graphics/py-python-poppler-qt5/files/patch-pyproject.toml >deleted file mode 100644 >index 7ef45522bdba..000000000000 >--- a/graphics/py-python-poppler-qt5/files/patch-pyproject.toml >+++ /dev/null >@@ -1,42 +0,0 @@ >-From https://github.com/frescobaldi/python-poppler-qt5/pull/41/commits/4ee58b6ee02772db915fdc5e70e336e0e5b2f34c >- >---- pyproject.toml.orig 2020-10-11 18:59:42 UTC >-+++ pyproject.toml >-@@ -0,0 +1,37 @@ >-+[build-system] >-+requires = ["sip >=5", "PyQt-builder", "PyQt5"] >-+build-backend = "sipbuild.api" >-+ >-+[tool.sip.metadata] >-+name = "python-poppler-qt5" >-+version = "0.75.0" >-+summary = "A Python binding to Poppler-Qt5" >-+description-file = "README.rst" >-+home-page = "https://github.com/frescobaldi/python-poppler-qt5" >-+maintainer = "Wilbert Berendsen" >-+maintainer-email = "wbsoft@xs4all.nl" >-+license = "LGPL" >-+classifier = [ >-+ "Development Status :: 5 - Production/Stable", >-+ "Intended Audience :: Developers", >-+ "License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL)", >-+ "Operating System :: MacOS :: MacOS X", >-+ "Operating System :: Microsoft :: Windows", >-+ "Operating System :: POSIX", >-+ "Programming Language :: Python :: 3", >-+ "Topic :: Multimedia :: Graphics :: Viewers" >-+] >-+requires-dist = "PyQt5" >-+ >-+[tool.sip.project] >-+sip-files-dir = "." >-+sdist-excludes = [ >-+ "version.sip", >-+ ".git/*", >-+ ".git/*/*", >-+ ".git/*/*/*", >-+ ".git/*/*/*/*", >-+ ".git/*/*/*/*/*", >-+ ".git/*/*/*/*/*/*", >-+ ".git/*/*/*/*/*/*/*" >-+] >diff --git a/graphics/py-python-poppler-qt5/files/patch-types.sip b/graphics/py-python-poppler-qt5/files/patch-types.sip >deleted file mode 100644 >index 736b40fad956..000000000000 >--- a/graphics/py-python-poppler-qt5/files/patch-types.sip >+++ /dev/null >@@ -1,60 +0,0 @@ >-From https://github.com/frescobaldi/python-poppler-qt5/pull/33/commits/6cc4d83b172ffb2d206e696ce508e508cd46b7c3 >- >---- types.sip.orig 2019-11-22 05:56:45 UTC >-+++ types.sip >-@@ -182,7 +182,7 @@ template <TYPE> >- if ((l = PyList_New(sipCpp->size())) == NULL) >- return NULL; >- >-- const sipMappedType* qlinkedlist_type = sipFindMappedType("QLinkedList<TYPE>"); >-+ const sipTypeDef* qlinkedlist_type = sipFindType("QLinkedList<TYPE>"); >- >- // Set the list elements. >- for (int i = 0; i < sipCpp->size(); ++i) >-@@ -190,7 +190,7 @@ template <TYPE> >- QLinkedList<TYPE>* t = new QLinkedList<TYPE>(sipCpp->at(i)); >- PyObject *tobj; >- >-- if ((tobj = sipConvertFromMappedType(t, qlinkedlist_type, sipTransferObj)) == NULL) >-+ if ((tobj = sipConvertFromType(t, qlinkedlist_type, sipTransferObj)) == NULL) >- { >- Py_DECREF(l); >- delete t; >-@@ -203,7 +203,7 @@ template <TYPE> >- %End >- >- %ConvertToTypeCode >-- const sipMappedType* qlinkedlist_type = sipFindMappedType("QLinkedList<TYPE>"); >-+ const sipTypeDef* qlinkedlist_type = sipFindType("QLinkedList<TYPE>"); >- >- // Check the type if that is all that is required. >- if (sipIsErr == NULL) >-@@ -212,7 +212,7 @@ template <TYPE> >- return 0; >- >- for (int i = 0; i < PySequence_Size(sipPy); ++i) >-- if (!sipCanConvertToMappedType(PySequence_ITEM(sipPy, i), qlinkedlist_type, SIP_NOT_NONE)) >-+ if (!sipCanConvertToType(PySequence_ITEM(sipPy, i), qlinkedlist_type, SIP_NOT_NONE)) >- return 0; >- >- return 1; >-@@ -224,16 +224,16 @@ template <TYPE> >- for (int i = 0; i < PySequence_Size(sipPy); ++i) >- { >- int state; >-- QLinkedList<TYPE> * t = reinterpret_cast< QLinkedList<TYPE> * >(sipConvertToMappedType(PySequence_ITEM(sipPy, i), qlinkedlist_type, sipTransferObj, SIP_NOT_NONE, &state, sipIsErr)); >-+ QLinkedList<TYPE> * t = reinterpret_cast< QLinkedList<TYPE> * >(sipConvertToType(PySequence_ITEM(sipPy, i), qlinkedlist_type, sipTransferObj, SIP_NOT_NONE, &state, sipIsErr)); >- >- if (*sipIsErr) >- { >-- sipReleaseInstance(t, sipClass_TYPE, state); >-+ sipReleaseType(t, qlinkedlist_type, state); >- delete ql; >- return 0; >- } >- ql->append(*t); >-- sipReleaseInstance(t, sipClass_TYPE, state); >-+ sipReleaseType(t, qlinkedlist_type, state); >- } >- >- *sipCppPtr = ql; >diff --git a/graphics/py-python-poppler-qt5/files/patch-version.sip.in b/graphics/py-python-poppler-qt5/files/patch-version.sip.in >deleted file mode 100644 >index e09774be5c66..000000000000 >--- a/graphics/py-python-poppler-qt5/files/patch-version.sip.in >+++ /dev/null >@@ -1,26 +0,0 @@ >-From https://github.com/frescobaldi/python-poppler-qt5/pull/41/commits/4ee58b6ee02772db915fdc5e70e336e0e5b2f34c >- >---- version.sip.in.orig 2020-10-11 18:59:42 UTC >-+++ version.sip.in >-@@ -0,0 +1,21 @@ >-+// Generated by project.py -- Do not edit >-+ >-+PyObject *version(); >-+%Docstring >-+The version of the popplerqt5 python module. >-+%End >-+ >-+PyObject *poppler_version(); >-+%Docstring >-+The version of the Poppler library it was built with. >-+%End >-+ >-+%ModuleCode >-+ >-+PyObject *version() >-+{{ return Py_BuildValue("({vlen})", {vargs}); }}; >-+ >-+PyObject *poppler_version() >-+{{ return Py_BuildValue("({pvlen})", {pvargs}); }}; >-+ >-+%End >diff --git a/graphics/py-python-poppler-qt5/pkg-plist b/graphics/py-python-poppler-qt5/pkg-plist >index 86d2009f37c9..bcbefe9bb5bc 100644 >--- a/graphics/py-python-poppler-qt5/pkg-plist >+++ b/graphics/py-python-poppler-qt5/pkg-plist >@@ -21,6 +21,6 @@ > %%PYTHON_SITELIBDIR%%/PyQt5/bindings/popplerqt5/version.sip > %%PYTHON_SITELIBDIR%%/popplerqt5%%_PY_SONAME%%.so > %%PYTHON_SITELIBDIR%%/popplerqt5.so >-%%PYTHON_SITELIBDIR%%/python_poppler_qt5-0.75.0.dist-info/INSTALLER >-%%PYTHON_SITELIBDIR%%/python_poppler_qt5-0.75.0.dist-info/METADATA >-%%PYTHON_SITELIBDIR%%/python_poppler_qt5-0.75.0.dist-info/RECORD >+%%PYTHON_SITELIBDIR%%/python_poppler_qt5-21.3.0.dist-info/INSTALLER >+%%PYTHON_SITELIBDIR%%/python_poppler_qt5-21.3.0.dist-info/METADATA >+%%PYTHON_SITELIBDIR%%/python_poppler_qt5-21.3.0.dist-info/RECORD >-- >2.43.0 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 275667
: 246940 |
247167
|
247431