Date: Thu, 11 Jul 2019 16:21:00 +0000 (UTC) From: Kai Knoblich <kai@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r506412 - in head/textproc: . py-pikepdf Message-ID: <201907111621.x6BGL0pn016661@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: kai Date: Thu Jul 11 16:21:00 2019 New Revision: 506412 URL: https://svnweb.freebsd.org/changeset/ports/506412 Log: New port: textproc/py-pikepdf pikepdf is a Python library for reading and writing PDF files. It's based on QPDF, a powerful PDF manipulation and repair library. pikepdf is similar to PyPDF2 and pdfrw - it provides low level access to PDF features and allows editing and content transformation of existing PDFs. Some knowledge of the PDF specification may be helpful. It does not have the capability to render a PDF to image. WWW: https://github.com/pikepdf/pikepdf Added: head/textproc/py-pikepdf/ head/textproc/py-pikepdf/Makefile (contents, props changed) head/textproc/py-pikepdf/distinfo (contents, props changed) head/textproc/py-pikepdf/pkg-descr (contents, props changed) Modified: head/textproc/Makefile Modified: head/textproc/Makefile ============================================================================== --- head/textproc/Makefile Thu Jul 11 16:04:59 2019 (r506411) +++ head/textproc/Makefile Thu Jul 11 16:21:00 2019 (r506412) @@ -1320,6 +1320,7 @@ SUBDIR += py-pdfminer3k SUBDIR += py-pdfrw SUBDIR += py-pdftotext + SUBDIR += py-pikepdf SUBDIR += py-precis_i18n SUBDIR += py-pss SUBDIR += py-pyPEG2 Added: head/textproc/py-pikepdf/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/textproc/py-pikepdf/Makefile Thu Jul 11 16:21:00 2019 (r506412) @@ -0,0 +1,38 @@ +# $FreeBSD$ + +PORTNAME= pikepdf +DISTVERSION= 1.3.0 +CATEGORIES= textproc python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= kai@FreeBSD.org +COMMENT= Read and write PDFs with Python, powered by qpdf + +LICENSE= MPL20 +LICENSE_FILE= ${WRKSRC}/LICENSE.txt + +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pybind11>=2.2.4,<3:devel/py-pybind11@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}setuptools_scm>0:devel/py-setuptools_scm@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}setuptools_scm_git_archive>0:devel/py-setuptools_scm_git_archive@${PY_FLAVOR} +LIB_DEPENDS= libqpdf.so:print/qpdf +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}lxml>=4.0:devel/py-lxml@${PY_FLAVOR} +TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}attrs>=17.4.0:devel/py-attrs@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}hypothesis>=4.16,<5:devel/py-hypothesis@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pytest>=4.4.0,<5:devel/py-pytest@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pytest-helpers-namespace>=2019.1.8:devel/py-pytest-helpers-namespace@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pytest-timeout>=1.3.3:devel/py-pytest-timeout@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pytest-xdist>=1.28,<2:devel/py-pytest-xdist@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pillow>=5.0.0:graphics/py-pillow@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}python-xmp-toolkit>=2.0.1:textproc/py-python-xmp-toolkit@${PY_FLAVOR} + +USES= python:3.5+ +USE_PYTHON= distutils autoplist + +post-install: + ${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/pikepdf/_qpdf.so + +do-test: + @(cd ${WRKSRC} && ${SETENV} LC_ALL=en_US.UTF-8 ${PYTHON_CMD} -m pytest -v ) + +.include <bsd.port.mk> Added: head/textproc/py-pikepdf/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/textproc/py-pikepdf/distinfo Thu Jul 11 16:21:00 2019 (r506412) @@ -0,0 +1,3 @@ +TIMESTAMP = 1562859319 +SHA256 (pikepdf-1.3.0.tar.gz) = f6db680c47e01ab23ee813d7c0e2bc50469a6a9f4a33414e961d07cdec0ed541 +SIZE (pikepdf-1.3.0.tar.gz) = 1580729 Added: head/textproc/py-pikepdf/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/textproc/py-pikepdf/pkg-descr Thu Jul 11 16:21:00 2019 (r506412) @@ -0,0 +1,10 @@ +pikepdf is a Python library for reading and writing PDF files. It's based on +QPDF, a powerful PDF manipulation and repair library. + +pikepdf is similar to PyPDF2 and pdfrw - it provides low level access to PDF +features and allows editing and content transformation of existing PDFs. + +Some knowledge of the PDF specification may be helpful. It does not have the +capability to render a PDF to image. + +WWW: https://github.com/pikepdf/pikepdf
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201907111621.x6BGL0pn016661>