From owner-svn-ports-head@freebsd.org Sun Jun 24 20:06:34 2018 Return-Path: Delivered-To: svn-ports-head@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 A3352100C72B; Sun, 24 Jun 2018 20:06:34 +0000 (UTC) (envelope-from sunpoet@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 54CF674F46; Sun, 24 Jun 2018 20:06:34 +0000 (UTC) (envelope-from sunpoet@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 3591F234AB; Sun, 24 Jun 2018 20:06:34 +0000 (UTC) (envelope-from sunpoet@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w5OK6YHD043218; Sun, 24 Jun 2018 20:06:34 GMT (envelope-from sunpoet@FreeBSD.org) Received: (from sunpoet@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w5OK6Xvv043211; Sun, 24 Jun 2018 20:06:33 GMT (envelope-from sunpoet@FreeBSD.org) Message-Id: <201806242006.w5OK6Xvv043211@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: sunpoet set sender to sunpoet@FreeBSD.org using -f From: Sunpoet Po-Chuan Hsieh Date: Sun, 24 Jun 2018 20:06:33 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r473216 - in head/textproc: . py-xhtml2pdf X-SVN-Group: ports-head X-SVN-Commit-Author: sunpoet X-SVN-Commit-Paths: in head/textproc: . py-xhtml2pdf X-SVN-Commit-Revision: 473216 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 24 Jun 2018 20:06:34 -0000 Author: sunpoet Date: Sun Jun 24 20:06:33 2018 New Revision: 473216 URL: https://svnweb.freebsd.org/changeset/ports/473216 Log: Add py-xhtml2pdf 0.2.2 xhtml2pdf is a html2pdf converter using the ReportLab Toolkit, the HTML5lib and pyPdf. It supports HTML 5 and CSS 2.1 (and some of CSS 3). It is completely written in pure Python so it is platform independent. The main benefit of this tool that a user with Web skills like HTML and CSS is able to generate PDF templates very quickly without learning new technologies. WWW: https://github.com/xhtml2pdf/xhtml2pdf Added: head/textproc/py-xhtml2pdf/ head/textproc/py-xhtml2pdf/Makefile (contents, props changed) head/textproc/py-xhtml2pdf/distinfo (contents, props changed) head/textproc/py-xhtml2pdf/pkg-descr (contents, props changed) Modified: head/textproc/Makefile Modified: head/textproc/Makefile ============================================================================== --- head/textproc/Makefile Sun Jun 24 20:05:48 2018 (r473215) +++ head/textproc/Makefile Sun Jun 24 20:06:33 2018 (r473216) @@ -1414,6 +1414,7 @@ SUBDIR += py-wordnet SUBDIR += py-wstools SUBDIR += py-wtforms + SUBDIR += py-xhtml2pdf SUBDIR += py-xlrd SUBDIR += py-xlsxwriter SUBDIR += py-xlutils Added: head/textproc/py-xhtml2pdf/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/textproc/py-xhtml2pdf/Makefile Sun Jun 24 20:06:33 2018 (r473216) @@ -0,0 +1,31 @@ +# Created by: Po-Chuan Hsieh +# $FreeBSD$ + +PORTNAME= xhtml2pdf +PORTVERSION= 0.2.2 +CATEGORIES= textproc python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= PDF generator using HTML and CSS + +LICENSE= APACHE20 +LICENSE_FILE= ${WRKSRC}/LICENSE.txt + +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}html5lib>=1.0:www/py-html5lib@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}httplib2>=0:www/py-httplib2@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pdf2>=0:print/py-pdf2@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pillow>=0:graphics/py-pillow@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}reportlab>=3.0:print/py-reportlab@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}six>=0:devel/py-six@${PY_FLAVOR} +TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}nose>=1.0:devel/py-nose@${PY_FLAVOR} + +NO_ARCH= yes +USE_PYTHON= autoplist concurrent distutils +USES= python + +post-patch: + @${REINPLACE_CMD} -e 's|setup_requires=|tests_require=|' ${WRKSRC}/setup.py + +.include Added: head/textproc/py-xhtml2pdf/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/textproc/py-xhtml2pdf/distinfo Sun Jun 24 20:06:33 2018 (r473216) @@ -0,0 +1,3 @@ +TIMESTAMP = 1529613498 +SHA256 (xhtml2pdf-0.2.2.tar.gz) = b7eba9a59771e0a4d786a814cc33b5554b0afd255e9dd735effce9f05efdc912 +SIZE (xhtml2pdf-0.2.2.tar.gz) = 97280 Added: head/textproc/py-xhtml2pdf/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/textproc/py-xhtml2pdf/pkg-descr Sun Jun 24 20:06:33 2018 (r473216) @@ -0,0 +1,8 @@ +xhtml2pdf is a html2pdf converter using the ReportLab Toolkit, the HTML5lib and +pyPdf. It supports HTML 5 and CSS 2.1 (and some of CSS 3). It is completely +written in pure Python so it is platform independent. + +The main benefit of this tool that a user with Web skills like HTML and CSS is +able to generate PDF templates very quickly without learning new technologies. + +WWW: https://github.com/xhtml2pdf/xhtml2pdf