aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Neubauer <m.ne@gmx.net>2022-07-03 19:05:23 +0000
committerNuno Teixeira <eduardo@FreeBSD.org>2022-07-03 19:08:00 +0000
commitc0026dd4b8d5278c9fad00a32c56bc85fc1da28f (patch)
tree5106f32e0de6bb222bc6b6831ed88d79e0d90a85
parenta7d025a598e274bda718fe299cf559357d581944 (diff)
downloadports-c0026dd4b8d5278c9fad00a32c56bc85fc1da28f.tar.gz
ports-c0026dd4b8d5278c9fad00a32c56bc85fc1da28f.zip
graphics/py-qpageview: New port: Page-based viewer widget for Qt5/PyQt5
- author becomes maintainer qpageview provides a page based document viewer widget for Qt5/PyQt5. It has a flexible architecture potentionally supporting many formats. Currently, it supports SVG documents, images, and, using the Poppler-Qt5 binding, PDF documents. https://qpageview.org/ PR: 264987
-rw-r--r--graphics/Makefile1
-rw-r--r--graphics/py-qpageview/Makefile29
-rw-r--r--graphics/py-qpageview/distinfo3
-rw-r--r--graphics/py-qpageview/pkg-descr7
4 files changed, 40 insertions, 0 deletions
diff --git a/graphics/Makefile b/graphics/Makefile
index 85d1eb877603..b73569570c04 100644
--- a/graphics/Makefile
+++ b/graphics/Makefile
@@ -909,6 +909,7 @@
SUBDIR += py-pyvips
SUBDIR += py-pyvista
SUBDIR += py-pyx
+ SUBDIR += py-qpageview
SUBDIR += py-qrencode
SUBDIR += py-railroad-diagrams
SUBDIR += py-rasterio
diff --git a/graphics/py-qpageview/Makefile b/graphics/py-qpageview/Makefile
new file mode 100644
index 000000000000..684ea2c3f1ac
--- /dev/null
+++ b/graphics/py-qpageview/Makefile
@@ -0,0 +1,29 @@
+PORTNAME= qpageview
+DISTVERSIONPREFIX= v
+DISTVERSION= 0.6.2
+CATEGORIES= graphics python
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= m.ne@gmx.net
+COMMENT= Page-based viewer widget for Qt5/PyQt5
+
+LICENSE= GPLv3
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}python-poppler-qt5>=0:graphics/py-python-poppler-qt5@${PY_FLAVOR}
+
+USES= pyqt:5 python:3.6+ qt:5
+USE_GITHUB= yes
+GH_ACCOUNT= frescobaldi
+USE_PYQT= pyqt5
+USE_PYTHON= autoplist distutils
+
+NO_ARCH= yes
+
+OPTIONS_DEFINE= CUPS
+
+CUPS_DESC= Use print/py-pycups for printing
+
+CUPS_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pycups>0:print/py-pycups@${PY_FLAVOR}
+
+.include <bsd.port.mk>
diff --git a/graphics/py-qpageview/distinfo b/graphics/py-qpageview/distinfo
new file mode 100644
index 000000000000..2ca2c24d0a9d
--- /dev/null
+++ b/graphics/py-qpageview/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1653158600
+SHA256 (frescobaldi-qpageview-v0.6.2_GH0.tar.gz) = 5ac3140396f11b15d6438ce34d5ce77f8b7e76f7dcd4c0439c85740d9e5d3674
+SIZE (frescobaldi-qpageview-v0.6.2_GH0.tar.gz) = 159098
diff --git a/graphics/py-qpageview/pkg-descr b/graphics/py-qpageview/pkg-descr
new file mode 100644
index 000000000000..4868f8692c9a
--- /dev/null
+++ b/graphics/py-qpageview/pkg-descr
@@ -0,0 +1,7 @@
+qpageview provides a page based document viewer widget for Qt5/PyQt5.
+
+It has a flexible architecture potentionally supporting many formats.
+Currently, it supports SVG documents, images, and, using the
+Poppler-Qt5 binding, PDF documents.
+
+WWW: https://qpageview.org/