Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 27 Dec 2018 20:10:30 +0000 (UTC)
From:      "Tobias C. Berner" <tcberner@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r488564 - in head/graphics: . py-python-poppler-qt5 py-python-poppler-qt5/files
Message-ID:  <201812272010.wBRKAUF3007644@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: tcberner
Date: Thu Dec 27 20:10:30 2018
New Revision: 488564
URL: https://svnweb.freebsd.org/changeset/ports/488564

Log:
  Reinstate graphics/py-poppler-qt4@r487595 as graphics/py-python-poppler-qt5
  
  PR:		234085
  Submitted by:	m.ne@gmx.net

Added:
  head/graphics/py-python-poppler-qt5/
     - copied from r487595, head/graphics/py-poppler-qt4/
  head/graphics/py-python-poppler-qt5/files/patch-poppler-qt5.sip   (contents, props changed)
Modified:
  head/graphics/Makefile
  head/graphics/py-python-poppler-qt5/Makefile
  head/graphics/py-python-poppler-qt5/distinfo
  head/graphics/py-python-poppler-qt5/pkg-descr

Modified: head/graphics/Makefile
==============================================================================
--- head/graphics/Makefile	Thu Dec 27 19:51:19 2018	(r488563)
+++ head/graphics/Makefile	Thu Dec 27 20:10:30 2018	(r488564)
@@ -943,6 +943,7 @@
     SUBDIR += py-pypillowfight
     SUBDIR += py-pyproj
     SUBDIR += py-pyqtgraph
+    SIBDIR += py-python-poppler-qt5
     SUBDIR += py-qt4-svg
     SUBDIR += py-qt5-svg
     SUBDIR += py-sane

Modified: head/graphics/py-python-poppler-qt5/Makefile
==============================================================================
--- head/graphics/py-poppler-qt4/Makefile	Sun Dec 16 14:59:10 2018	(r487595)
+++ head/graphics/py-python-poppler-qt5/Makefile	Thu Dec 27 20:10:30 2018	(r488564)
@@ -1,26 +1,26 @@
 # $FreeBSD$
 
-PORTNAME=	poppler-qt4
-PORTVERSION=	0.18.1
-PORTREVISION=	12
+PORTNAME=	python-poppler-qt5
+DISTVERSIONPREFIX=	v
+DISTVERSION=	0.24.2
 CATEGORIES=	graphics python
-MASTER_SITES=	CHEESESHOP
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
-DISTNAME=	python-${PORTNAME}-${PORTVERSION}
 
-MAINTAINER=	martin.dieringer@gmx.de
-COMMENT=	Python bindings for the Poppler-Qt4 PDF rendering library
+MAINTAINER=	m.ne@gmx.net
+COMMENT=	Python bindings for the Poppler-Qt PDF rendering library
 
 LICENSE=	LGPL21 LGPL3
 LICENSE_COMB=	dual
 
-DEPRECATED=		Qt4 has been EOL since december 2015
-EXPIRATION_DATE=	2019-03-15
+LIB_DEPENDS=	libpoppler-qt5.so:graphics/poppler-qt5
 
-LIB_DEPENDS=	libpoppler-qt4.so:graphics/poppler-qt4
-
-USES=		compiler:c++11-lang pkgconfig pyqt:4 python
+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>

Modified: head/graphics/py-python-poppler-qt5/distinfo
==============================================================================
--- head/graphics/py-poppler-qt4/distinfo	Sun Dec 16 14:59:10 2018	(r487595)
+++ head/graphics/py-python-poppler-qt5/distinfo	Thu Dec 27 20:10:30 2018	(r488564)
@@ -1,2 +1,3 @@
-SHA256 (python-poppler-qt4-0.18.1.tar.gz) = 00e3f89f4e23a844844d082918a89c2cbb1e8231ecb011b81d592e7e3c33a74c
-SIZE (python-poppler-qt4-0.18.1.tar.gz) = 15523
+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

Added: head/graphics/py-python-poppler-qt5/files/patch-poppler-qt5.sip
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/graphics/py-python-poppler-qt5/files/patch-poppler-qt5.sip	Thu Dec 27 20:10:30 2018	(r488564)
@@ -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

Modified: head/graphics/py-python-poppler-qt5/pkg-descr
==============================================================================
--- head/graphics/py-poppler-qt4/pkg-descr	Sun Dec 16 14:59:10 2018	(r487595)
+++ head/graphics/py-python-poppler-qt5/pkg-descr	Thu Dec 27 20:10:30 2018	(r488564)
@@ -1,3 +1,10 @@
-Python bindings for graphics/poppler-qt4.
+A Python binding for libpoppler-qt5 that aims for completeness
+and for being actively maintained.
 
-WWW: https://pypi.org/project/python-poppler-qt4/
+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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201812272010.wBRKAUF3007644>