diff options
author | Loïc Bartoletti <lbartoletti@FreeBSD.org> | 2020-12-08 20:03:07 +0000 |
---|---|---|
committer | Loïc Bartoletti <lbartoletti@FreeBSD.org> | 2020-12-08 20:03:07 +0000 |
commit | 47b26d9293f196d71c39ba4d82df23d179884405 (patch) | |
tree | 3984ac0366432e29f9e1ac47cbac9b18032f7c04 /deskutils/calibre/files/patch-src_calibre_linux.py | |
parent | Update benchmarks/ali to version 0.5.4. (diff) |
Update Qt/PySide2 to 5.15.2 / PyQt to 5.15.1 / SIP to 5.4.0
This commit combines several updates.
- Update Qt to 5.12.2
- Update PyQt to 5.15.1
- Since PySide 5.15.1 is broken with Qt 5.15.2, so PySide and Shiboken are also updated to 5.15.2.
- Update sip to 5.4.0
SIP is a collection of tools to create Python bindings for C and C++ libraries and used by PyQt and wxPython. There are some changes with sip5 [1]:
- python 3.5+ is required
- sip drops support of old deprecated methods as sipdistutils & cie.
- this version breaks also PyQt5 extension ABI. SIP files will be installed in ${PYTHON_SITELIBDIR}/PyQt${_PYQT_VERSION}/bindings
- some ports will use the new pyqtbuilder package with the pyproject.toml setup. Instead if the project have a setup.py, you should use sip-build to build it.
- if a port needs sip, it should also needs pysip. BTW, py-qt5-core requires pysip, so that should be enough for PyQt packages.
List of ports impacted by this change. Most of the patches have been integrated or are in the process of being integrated upstream:
- devel/libsavitar
- graphics/py-python-poppler-qt5
- net-im/scudcloud
- net/libarcus
- print/py-frescobaldi
- science/py-veusz
- graphics/qgis and graphics/qgis-ltr
- deskutils/calibre
A special note regarding calibre. New versions require sip>=5, we update it to the latest version (thanks to madpilot@)
science/scidavis will remove the PyQt binding soon and there is no patch planned, so we remove the python option (ok makc@)
While here, convert some ports to USE_PYQT (cad/cura, cad/uranium, devel/eric6, ...)
Thanks to tcberner and adridg!
[1] https://www.riverbankcomputing.com/static/Docs/sip/
PR: 250853
Exp-run by: antoine
Diffstat (limited to '')
-rw-r--r-- | deskutils/calibre/files/patch-src_calibre_linux.py | 23 |
1 files changed, 7 insertions, 16 deletions
diff --git a/deskutils/calibre/files/patch-src_calibre_linux.py b/deskutils/calibre/files/patch-src_calibre_linux.py index cf1abfb2ecf6..3068880baa5a 100644 --- a/deskutils/calibre/files/patch-src_calibre_linux.py +++ b/deskutils/calibre/files/patch-src_calibre_linux.py @@ -1,15 +1,6 @@ ---- src/calibre/linux.py.orig 2018-01-05 05:41:54 UTC +--- src/calibre/linux.py.orig 2020-11-13 01:58:49 UTC +++ src/calibre/linux.py -@@ -841,7 +841,7 @@ class PostInstall: - f.close() - des = ('calibre-gui.desktop', 'calibre-lrfviewer.desktop', - 'calibre-ebook-viewer.desktop', 'calibre-ebook-edit.desktop') -- appdata = os.path.join(os.path.dirname(self.opts.staging_sharedir), 'metainfo') -+ appdata = os.path.join(os.path.dirname(self.opts.staging_sharedir), 'appdata') - if not os.path.exists(appdata): - try: - os.mkdir(appdata) -@@ -1008,7 +1008,7 @@ Name=E-book Viewer +@@ -1103,7 +1103,7 @@ Name=E-book viewer GenericName=Viewer for E-books Comment=Viewer for E-books in all the major formats TryExec=ebook-viewer @@ -18,7 +9,7 @@ Icon=calibre-viewer Categories=Graphics;Viewer; ''' -@@ -1021,7 +1021,7 @@ Name=E-book Editor +@@ -1116,7 +1116,7 @@ Name=E-book editor GenericName=Editor for E-books Comment=Edit E-books in various formats TryExec=ebook-edit @@ -27,12 +18,12 @@ Icon=calibre-ebook-edit Categories=Office; ''' -@@ -1034,7 +1034,7 @@ Name=calibre +@@ -1129,7 +1129,7 @@ Name=calibre GenericName=E-book library management Comment=E-book library management: Convert, view, share, catalogue all your e-books TryExec=calibre --Exec=calibre --detach %F -+Exec=calibre %F +-Exec=calibre --detach %U ++Exec=calibre %U Icon=calibre-gui Categories=Office; - ''' + X-GNOME-UsesNotifications=true |