diff options
author | Tobias C. Berner <tcberner@FreeBSD.org> | 2018-12-27 20:10:30 +0000 |
---|---|---|
committer | Tobias C. Berner <tcberner@FreeBSD.org> | 2018-12-27 20:10:30 +0000 |
commit | c27c5e8d74f84627ed95d41e834c88b40445b36d (patch) | |
tree | 5a60ac8039660e90bb9bdf3d31c1932974d62c93 /graphics/py-python-poppler-qt5 | |
parent | accessibility/redshift: make geoclue optional (diff) |
Reinstate graphics/py-poppler-qt4@r487595 as graphics/py-python-poppler-qt5
PR: 234085
Submitted by: m.ne@gmx.net
Diffstat (limited to 'graphics/py-python-poppler-qt5')
-rw-r--r-- | graphics/py-python-poppler-qt5/Makefile | 26 | ||||
-rw-r--r-- | graphics/py-python-poppler-qt5/distinfo | 3 | ||||
-rw-r--r-- | graphics/py-python-poppler-qt5/files/patch-poppler-qt5.sip | 23 | ||||
-rw-r--r-- | graphics/py-python-poppler-qt5/files/patch-types.sip | 16 | ||||
-rw-r--r-- | graphics/py-python-poppler-qt5/pkg-descr | 10 |
5 files changed, 78 insertions, 0 deletions
diff --git a/graphics/py-python-poppler-qt5/Makefile b/graphics/py-python-poppler-qt5/Makefile new file mode 100644 index 000000000000..3c2cfd86ae1f --- /dev/null +++ b/graphics/py-python-poppler-qt5/Makefile @@ -0,0 +1,26 @@ +# $FreeBSD$ + +PORTNAME= python-poppler-qt5 +DISTVERSIONPREFIX= v +DISTVERSION= 0.24.2 +CATEGORIES= graphics python +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= m.ne@gmx.net +COMMENT= Python bindings for the Poppler-Qt PDF rendering library + +LICENSE= LGPL21 LGPL3 +LICENSE_COMB= dual + +LIB_DEPENDS= libpoppler-qt5.so:graphics/poppler-qt5 + +USES= pkgconfig pyqt:5 python:3.4+ qmake qt:5 +USE_PYQT= gui xml sip_build +USE_PYTHON= distutils autoplist +USE_GITHUB= yes +GH_ACCOUNT= wbsoft + +PYDISTUTILS_BUILD_TARGET= build_ext +PYDISTUTILS_BUILDARGS+= --pyqt-sip-dir=${PYQT_SIPDIR} + +.include <bsd.port.mk> diff --git a/graphics/py-python-poppler-qt5/distinfo b/graphics/py-python-poppler-qt5/distinfo new file mode 100644 index 000000000000..71fff5b27346 --- /dev/null +++ b/graphics/py-python-poppler-qt5/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1545059766 +SHA256 (wbsoft-python-poppler-qt5-v0.24.2_GH0.tar.gz) = 542b5ab183e95debd4e05642425da6914e1b5c5a98a8c94752833d5b5ca7289b +SIZE (wbsoft-python-poppler-qt5-v0.24.2_GH0.tar.gz) = 19858 diff --git a/graphics/py-python-poppler-qt5/files/patch-poppler-qt5.sip b/graphics/py-python-poppler-qt5/files/patch-poppler-qt5.sip new file mode 100644 index 000000000000..0abbbdecef2e --- /dev/null +++ b/graphics/py-python-poppler-qt5/files/patch-poppler-qt5.sip @@ -0,0 +1,23 @@ +--- poppler-qt5.sip.orig 2018-12-19 10:55:11 UTC ++++ poppler-qt5.sip +@@ -1,15 +1,18 @@ +-%Module(name=popplerqt5, version=0) ++%Module(name=popplerqt5) + + /* + * Bindings for Poppler-Qt5 to Python + * Maintained by Wilbert Berendsen <wbsoft@xs4all.nl> + */ + ++%Feature QTXML_AVAILABLE + + %Import QtCore/QtCoremod.sip + %Import QtGui/QtGuimod.sip + +-%Feature QTXML_AVAILABLE ++%If(QTXML_AVAILABLE) ++%Import QtXml/QtXmlmod.sip ++%End + + %Timeline { + POPPLER_V0_20_0 diff --git a/graphics/py-python-poppler-qt5/files/patch-types.sip b/graphics/py-python-poppler-qt5/files/patch-types.sip new file mode 100644 index 000000000000..8ce1d17660a3 --- /dev/null +++ b/graphics/py-python-poppler-qt5/files/patch-types.sip @@ -0,0 +1,16 @@ +PyList_SET_ITEM() is supposed to be void, but as a macro it's an +expression and has a pointer value. Clang 4.0 trips on the bogus +pointer comparison; given the comparison, it should be PyList_SetItem() +which returns -1 on failure. + +--- types.sip.orig 2017-01-21 07:19:29 UTC ++++ types.sip +@@ -27,7 +27,7 @@ + foreach (Poppler::Document::RenderBackend value, set) + { + PyObject *obj = PyLong_FromLong ((long) value); +- if (obj == NULL || PyList_SET_ITEM (l, i, obj) < 0) ++ if (obj == NULL || PyList_SetItem (l, i, obj) < 0) + { + Py_DECREF(l); + diff --git a/graphics/py-python-poppler-qt5/pkg-descr b/graphics/py-python-poppler-qt5/pkg-descr new file mode 100644 index 000000000000..5e22f0e3aee9 --- /dev/null +++ b/graphics/py-python-poppler-qt5/pkg-descr @@ -0,0 +1,10 @@ +A Python binding for libpoppler-qt5 that aims for completeness +and for being actively maintained. + +Created and currently maintained by Wilbert Berendsen <wbsoft@xs4all.nl>. + +Usage: + import popplerqt5 + d = popplerqt5.Poppler.Document.load('file.pdf') + +WWW: https://pypi.python.org/pypi/python-poppler-qt5 |