From owner-svn-ports-all@freebsd.org Sat Aug 12 05:43:47 2017 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 80C5DD94CA7; Sat, 12 Aug 2017 05:43:47 +0000 (UTC) (envelope-from woodsb02@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 mx1.freebsd.org (Postfix) with ESMTPS id 5C84074F92; Sat, 12 Aug 2017 05:43:47 +0000 (UTC) (envelope-from woodsb02@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v7C5hk7x001311; Sat, 12 Aug 2017 05:43:46 GMT (envelope-from woodsb02@FreeBSD.org) Received: (from woodsb02@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v7C5hkQA001307; Sat, 12 Aug 2017 05:43:46 GMT (envelope-from woodsb02@FreeBSD.org) Message-Id: <201708120543.v7C5hkQA001307@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: woodsb02 set sender to woodsb02@FreeBSD.org using -f From: Ben Woods Date: Sat, 12 Aug 2017 05:43:46 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r447816 - in head/print: . py-stapler X-SVN-Group: ports-head X-SVN-Commit-Author: woodsb02 X-SVN-Commit-Paths: in head/print: . py-stapler X-SVN-Commit-Revision: 447816 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.23 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: Sat, 12 Aug 2017 05:43:47 -0000 Author: woodsb02 Date: Sat Aug 12 05:43:46 2017 New Revision: 447816 URL: https://svnweb.freebsd.org/changeset/ports/447816 Log: Add new port print/py-stapler Stapler is a pure Python alternative to PDFtk, a tool for manipulating PDF documents from the command line. Like pdftk, stapler is a command-line tool. With the select command, you can cherry-pick pages from pdfs and concatenate them into a new pdf file. The delete command works almost exactly the same as select, but inverse. It uses the pages and ranges which you didn't specify. The split command splits the specified pdf files into their single pages and writes each page into it's own pdf file. With the zip command, you can cherry-pick pages from pdfs (like select). The pages from each pdf are merged together in an interleaving manner. This can be used to collate a pdf with odd pages and a pdf with even pages into a single file. The info command shows information on the metadata stored inside a PDF file. WWW: https://github.com/hellerbarde/stapler Added: head/print/py-stapler/ head/print/py-stapler/Makefile (contents, props changed) head/print/py-stapler/distinfo (contents, props changed) head/print/py-stapler/pkg-descr (contents, props changed) Modified: head/print/Makefile Modified: head/print/Makefile ============================================================================== --- head/print/Makefile Sat Aug 12 03:51:33 2017 (r447815) +++ head/print/Makefile Sat Aug 12 05:43:46 2017 (r447816) @@ -201,6 +201,7 @@ SUBDIR += py-reportlab SUBDIR += py-reportlab1 SUBDIR += py-rtf + SUBDIR += py-stapler SUBDIR += py-trml2pdf SUBDIR += py3-fonttools SUBDIR += py3-pycups Added: head/print/py-stapler/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/print/py-stapler/Makefile Sat Aug 12 05:43:46 2017 (r447816) @@ -0,0 +1,23 @@ +# Created by: Ben Woods +# $FreeBSD$ + +PORTNAME= stapler +PORTVERSION= 0.3.3 +CATEGORIES= print python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} +#DISTNAME= PyPDF2-${PORTVERSION} + +MAINTAINER= woodsb02@FreeBSD.org +COMMENT= Manipulate PDF documents from the command line + +LICENSE= BSD3CLAUSE +LICENSE_FILE= ${WRKSRC}/LICENSE + +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}more-itertools>=2.2:devel/py-more-itertools \ + ${PYTHON_PKGNAMEPREFIX}pdf2>=1.24:print/py-pdf2 + +USES= python:2.7+ +USE_PYTHON= autoplist distutils + +.include Added: head/print/py-stapler/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/print/py-stapler/distinfo Sat Aug 12 05:43:46 2017 (r447816) @@ -0,0 +1,3 @@ +TIMESTAMP = 1502515886 +SHA256 (stapler-0.3.3.tar.gz) = 326d2eeb2556e98162d1c2671f944deb912f757469cf0316de121a25d16a6e4a +SIZE (stapler-0.3.3.tar.gz) = 8130 Added: head/print/py-stapler/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/print/py-stapler/pkg-descr Sat Aug 12 05:43:46 2017 (r447816) @@ -0,0 +1,20 @@ +Stapler is a pure Python alternative to PDFtk, a tool for manipulating PDF +documents from the command line. Like pdftk, stapler is a command-line tool. + +With the select command, you can cherry-pick pages from pdfs and concatenate +them into a new pdf file. + +The delete command works almost exactly the same as select, but inverse. +It uses the pages and ranges which you didn't specify. + +The split command splits the specified pdf files into their single pages and +writes each page into it's own pdf file. + +With the zip command, you can cherry-pick pages from pdfs (like select). +The pages from each pdf are merged together in an interleaving manner. +This can be used to collate a pdf with odd pages and a pdf with even pages +into a single file. + +The info command shows information on the metadata stored inside a PDF file. + +WWW: https://github.com/hellerbarde/stapler