From patchwork Wed Mar 11 14:37:25 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hartmut Goebel X-Patchwork-Id: 20636 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 D553627BBEA; Wed, 11 Mar 2020 14:38:48 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id AB98327BBE4 for ; Wed, 11 Mar 2020 14:38:48 +0000 (GMT) Received: from localhost ([::1]:53606 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jC2VU-0000BV-8g for patchwork@mira.cbaines.net; Wed, 11 Mar 2020 10:38:48 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47010) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jC2Ul-0007O3-Nt for guix-patches@gnu.org; Wed, 11 Mar 2020 10:38:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jC2Uk-0006uw-Me for guix-patches@gnu.org; Wed, 11 Mar 2020 10:38:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:49345) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jC2Uk-0006um-JX for guix-patches@gnu.org; Wed, 11 Mar 2020 10:38:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jC2Uk-0000HS-Dx for guix-patches@gnu.org; Wed, 11 Mar 2020 10:38:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#40024] [PATCH 2/2] gnu: Add flyer-composer-cli. Resent-From: Hartmut Goebel Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 11 Mar 2020 14:38:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 40024 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 40024@debbugs.gnu.org Received: via spool by 40024-submit@debbugs.gnu.org id=B40024.15839374521039 (code B ref 40024); Wed, 11 Mar 2020 14:38:02 +0000 Received: (at 40024) by debbugs.gnu.org; 11 Mar 2020 14:37:32 +0000 Received: from localhost ([127.0.0.1]:55318 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jC2UG-0000Gh-9S for submit@debbugs.gnu.org; Wed, 11 Mar 2020 10:37:32 -0400 Received: from mail-out.m-online.net ([212.18.0.10]:52637) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jC2UE-0000GX-IG for 40024@debbugs.gnu.org; Wed, 11 Mar 2020 10:37:31 -0400 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 48cvgY30jRz1rpRh for <40024@debbugs.gnu.org>; Wed, 11 Mar 2020 15:37:29 +0100 (CET) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 48cvgY0BXFz1r0bZ for <40024@debbugs.gnu.org>; Wed, 11 Mar 2020 15:37:29 +0100 (CET) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id 1VtMOtuLaAA7 for <40024@debbugs.gnu.org>; Wed, 11 Mar 2020 15:37:28 +0100 (CET) Received: from hermia.goebel-consult.de (ppp-188-174-57-185.dynamic.mnet-online.de [188.174.57.185]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPS for <40024@debbugs.gnu.org>; Wed, 11 Mar 2020 15:37:28 +0100 (CET) Received: from lenashee.fritz.box (lenashee.fritz.box [192.168.110.28]) by hermia.goebel-consult.de (Postfix) with ESMTP id A5441601AE for <40024@debbugs.gnu.org>; Wed, 11 Mar 2020 15:42:12 +0100 (CET) From: Hartmut Goebel Date: Wed, 11 Mar 2020 15:37:25 +0100 Message-Id: <5baa7abbe71cc761cb16dfa28288507a3fbc7be4.1583937251.git.h.goebel@crazy-compilers.com> X-Mailer: git-send-email 2.21.1 In-Reply-To: References: MIME-Version: 1.0 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 (flyer-composer-cli): New variable. --- gnu/packages/pdf.scm | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/gnu/packages/pdf.scm b/gnu/packages/pdf.scm index 3bf18ca649..c4c2d3a157 100644 --- a/gnu/packages/pdf.scm +++ b/gnu/packages/pdf.scm @@ -138,6 +138,33 @@ times. If you have a second page, Flyer Composer can arrange it the same way This package contains both the commnd line tool and the gui too.") (license license:agpl3+))) +(define-public flyer-composer-cli + (package/inherit flyer-composer + (name "flyer-composer-cli") + (arguments + `(#:tests? #f ;; TODO + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'remove-gui + (lambda _ + (delete-file-recursively "flyer_composer/gui") + (substitute* "setup.cfg" + (("^\\s+flyer-composer-gui\\s*=.*") "")) + #t))))) + (inputs + `(("python-pypdf2" ,python-pypdf2))) + (description "@command{flyer-composer} can be used to prepare one- or +two-sided flyers for printing on one sheet of paper. + +Imagine you have designed a flyer in A6 format and want to print it using your +A4 printer. Of course, you want to print four flyers on each sheet. This is +where Flyer Composer steps in, creating a PDF which holds your flyer four +times. If you have a second page, Flyer Composer can arrange it the same way +- even if the second page is in a separate PDF file. + +This package contains only the commnd line tool. If you like to use the gui, +please install the @code{flyer-composer-gui} package."))) + (define-public poppler (package (name "poppler")