From owner-svn-ports-all@freebsd.org Thu Jul 11 16:21:02 2019 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D924015D81E8; Thu, 11 Jul 2019 16:21:01 +0000 (UTC) (envelope-from kai@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 8114286984; Thu, 11 Jul 2019 16:21:01 +0000 (UTC) (envelope-from kai@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 5E454FE1; Thu, 11 Jul 2019 16:21:01 +0000 (UTC) (envelope-from kai@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id x6BGL1kP016665; Thu, 11 Jul 2019 16:21:01 GMT (envelope-from kai@FreeBSD.org) Received: (from kai@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id x6BGL0pn016661; Thu, 11 Jul 2019 16:21:00 GMT (envelope-from kai@FreeBSD.org) Message-Id: <201907111621.x6BGL0pn016661@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: kai set sender to kai@FreeBSD.org using -f From: Kai Knoblich Date: Thu, 11 Jul 2019 16:21:00 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r506412 - in head/textproc: . py-pikepdf X-SVN-Group: ports-head X-SVN-Commit-Author: kai X-SVN-Commit-Paths: in head/textproc: . py-pikepdf X-SVN-Commit-Revision: 506412 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 8114286984 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-2.97 / 15.00]; local_wl_from(0.00)[FreeBSD.org]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; NEURAL_HAM_SHORT(-0.97)[-0.967,0]; ASN(0.00)[asn:11403, ipnet:2610:1c1:1::/48, country:US]; NEURAL_HAM_LONG(-1.00)[-1.000,0] X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Jul 2019 16:21:02 -0000 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 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