From patchwork Mon Sep 9 15:01:00 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Arun Isaac X-Patchwork-Id: 15330 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id F349E173AA; Mon, 9 Sep 2019 16:02:11 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_DKIM_INVALID, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id 9F087173A3 for ; Mon, 9 Sep 2019 16:02:11 +0100 (BST) Received: from localhost ([::1]:57694 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i7LBD-0004Rd-07 for patchwork@mira.cbaines.net; Mon, 09 Sep 2019 11:02:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47703) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i7LB6-0004Qm-0q for guix-patches@gnu.org; Mon, 09 Sep 2019 11:02:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i7LB4-0008Uc-G4 for guix-patches@gnu.org; Mon, 09 Sep 2019 11:02:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:59820) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1i7LB4-0008UN-9y for guix-patches@gnu.org; Mon, 09 Sep 2019 11:02:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1i7LB4-0000BB-3S for guix-patches@gnu.org; Mon, 09 Sep 2019 11:02:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#37356] [PATCH] gnu: Add stapler. Resent-From: Arun Isaac Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 09 Sep 2019 15:02:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 37356 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 37356@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.1568041299657 (code B ref -1); Mon, 09 Sep 2019 15:02:01 +0000 Received: (at submit) by debbugs.gnu.org; 9 Sep 2019 15:01:39 +0000 Received: from localhost ([127.0.0.1]:40408 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i7LAc-0000AP-TD for submit@debbugs.gnu.org; Mon, 09 Sep 2019 11:01:39 -0400 Received: from lists.gnu.org ([209.51.188.17]:52292) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i7LAW-0000AD-NI for submit@debbugs.gnu.org; Mon, 09 Sep 2019 11:01:32 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47520) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i7LAU-0004Iy-Hn for guix-patches@gnu.org; Mon, 09 Sep 2019 11:01:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i7LAQ-00087D-1a for guix-patches@gnu.org; Mon, 09 Sep 2019 11:01:25 -0400 Received: from mugam.systemreboot.net ([139.59.75.54]:35606) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1i7LAN-000825-Es for guix-patches@gnu.org; Mon, 09 Sep 2019 11:01:20 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=systemreboot.net; s=default; h=Content-Transfer-Encoding:Content-Type: MIME-Version:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=H3xZOfdduzgixo74Lq6wdAPwHJHcx0LVEmAHXzsHgpY=; b=MRckp18cnHflejCKeJr35yBauK 6gbyMhb/khz5OrZSrmeRdzoHK4JY2jLjwSWqEiR/T+Y7r0C07Bcd5vVs+6EQujTiSyt7f2uYbNRlc kt4vUAHlmeno6YiI654TrgpQA3BEBUPNpW7OMscxmMS0E5+19g5IcCtINXBW8iGvIFqs=; Received: from [49.206.3.117] (helo=steel.lan) by systemreboot.net with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.92.1) (envelope-from ) id 1i7LAH-0004dS-86; Mon, 09 Sep 2019 20:31:13 +0530 From: Arun Isaac Date: Mon, 9 Sep 2019 20:31:00 +0530 Message-Id: <20190909150100.20014-1-arunisaac@systemreboot.net> X-Mailer: git-send-email 2.23.0 MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/pdf.scm (stapler): New variable. --- gnu/packages/pdf.scm | 36 +++++++++++++++++++++++++++++++++++- 1 file changed, 35 insertions(+), 1 deletion(-) diff --git a/gnu/packages/pdf.scm b/gnu/packages/pdf.scm index d45a78222c..af915422de 100644 --- a/gnu/packages/pdf.scm +++ b/gnu/packages/pdf.scm @@ -9,7 +9,7 @@ ;;; Copyright © 2016, 2017 Marius Bakke ;;; Copyright © 2016, 2017 Ludovic Courtès ;;; Copyright © 2016 Julien Lepiller -;;; Copyright © 2016 Arun Isaac +;;; Copyright © 2016, 2019 Arun Isaac ;;; Copyright © 2017, 2018 Leo Famulari ;;; Copyright © 2017 Alex Vong ;;; Copyright © 2017, 2018 Rene Saavedra @@ -1116,3 +1116,37 @@ presentation. The input files processed by pdfpc are PDF documents.") rendering of the file. The rendering is done by creating outline curves through the Pango @code{ft2} backend.") (license license:lgpl2.0+)))) + +(define-public stapler + (package + (name "stapler") + (version "0.3.2") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/hellerbarde/stapler") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "06w7xanzr7cicqik62g7zqs57j4y6fc7hflrc1rlmphxx40hkg6r")))) + (build-system python-build-system) + (inputs + `(("python2-pypdf2" ,python2-pypdf2))) + (arguments + `(#:python ,python-2 + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'fix-pypdf-version-requirement + ;; A PyPDF2 version requirement of 1.25.1 is hard-coded in + ;; setup.py. Relax it to work with any version of PyPDF2. + (lambda _ + (substitute* "setup.py" + (("PyPDF2==1.25.1") "PyPDF2")) + #t))))) + (home-page "https://github.com/hellerbarde/stapler") + (synopsis "PDF manipulation tool") + (description "Stapler is a pure Python alternative to PDFtk, a tool for +manipulating PDF documents from the command line.") + (license license:bsd-3)))