From patchwork Wed Mar 11 14:34:59 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Hartmut Goebel X-Patchwork-Id: 20635 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 C970027BBEA; Wed, 11 Mar 2020 14:36:14 +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, URIBL_BLOCKED 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 48F3A27BBE4 for ; Wed, 11 Mar 2020 14:36:14 +0000 (GMT) Received: from localhost ([::1]:53566 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jC2Sz-0003Ua-Mw for patchwork@mira.cbaines.net; Wed, 11 Mar 2020 10:36:13 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46546) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jC2Sq-0003UF-4E for guix-patches@gnu.org; Wed, 11 Mar 2020 10:36:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jC2So-0005BM-SE for guix-patches@gnu.org; Wed, 11 Mar 2020 10:36:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:49339) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jC2So-0005BI-P1 for guix-patches@gnu.org; Wed, 11 Mar 2020 10:36:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jC2So-0000E6-N4 for guix-patches@gnu.org; Wed, 11 Mar 2020 10:36:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#40024] [PATCH 1/2] gnu: Add flyer-composer. Resent-From: Hartmut Goebel Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 11 Mar 2020 14:36:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 40024 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 40024@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.1583937317807 (code B ref -1); Wed, 11 Mar 2020 14:36:02 +0000 Received: (at submit) by debbugs.gnu.org; 11 Mar 2020 14:35:17 +0000 Received: from localhost ([127.0.0.1]:55310 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jC2S0-0000Ct-KV for submit@debbugs.gnu.org; Wed, 11 Mar 2020 10:35:17 -0400 Received: from lists.gnu.org ([209.51.188.17]:54378) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jC2Rz-0000Cm-U8 for submit@debbugs.gnu.org; Wed, 11 Mar 2020 10:35:12 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46379) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jC2Ry-00037G-Gh for guix-patches@gnu.org; Wed, 11 Mar 2020 10:35:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jC2Rw-0004IQ-EQ for guix-patches@gnu.org; Wed, 11 Mar 2020 10:35:10 -0400 Received: from mail-out.m-online.net ([2001:a60:0:28:0:1:25:1]:50680) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1jC2Rw-0004Ge-5t for guix-patches@gnu.org; Wed, 11 Mar 2020 10:35:08 -0400 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 48cvcl3qdgz1rpRh for ; Wed, 11 Mar 2020 15:35:03 +0100 (CET) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 48cvcl1cfhz1r0bZ for ; Wed, 11 Mar 2020 15:35:03 +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 lO4_TddFhU4y for ; Wed, 11 Mar 2020 15:35:02 +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 ; Wed, 11 Mar 2020 15:35:02 +0100 (CET) Received: from lenashee.fritz.box (lenashee.fritz.box [192.168.110.28]) by hermia.goebel-consult.de (Postfix) with ESMTP id 3F852601AE for ; Wed, 11 Mar 2020 15:39:46 +0100 (CET) From: Hartmut Goebel Date: Wed, 11 Mar 2020 15:34:59 +0100 Message-Id: X-Mailer: git-send-email 2.21.1 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 (flyer-composer): New variable. --- gnu/packages/pdf.scm | 47 +++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 46 insertions(+), 1 deletion(-) diff --git a/gnu/packages/pdf.scm b/gnu/packages/pdf.scm index 34a3fba042..3bf18ca649 100644 --- a/gnu/packages/pdf.scm +++ b/gnu/packages/pdf.scm @@ -16,7 +16,7 @@ ;;; Copyright © 2017, 2018, 2019, 2020 Tobias Geerinckx-Rice ;;; Copyright © 2019 Alex Griffin ;;; Copyright © 2019 Ben Sturmfels -;;; Copyright © 2019 Hartmut Goebel +;;; Copyright © 2019,2020 Hartmut Goebel ;;; Copyright © 2020 Nicolas Goaziou ;;; ;;; This file is part of GNU Guix. @@ -93,6 +93,51 @@ #:use-module (gnu packages xorg) #:use-module (srfi srfi-1)) +(define-public flyer-composer + (package + (name "flyer-composer") + (version "1.0rc2") + (source + (origin + (method url-fetch) + (uri (pypi-uri "flyer-composer" version)) + (sha256 + (base32 "17igqb5dlcgcq4nimjw6cf9qgz6a728zdx1d0rr90r2z0llcchsv")))) + (build-system python-build-system) + (arguments + `(#:tests? #f ;; TODO + #:phases + (modify-phases %standard-phases + (add-after 'install 'wrap-executable + (lambda* (#:key inputs outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (qtbase (assoc-ref inputs "qtbase")) + (qml "/lib/qt5/qml")) + (wrap-program (string-append out "/bin/flyer-composer-gui") + `("QT_PLUGIN_PATH" ":" = + (,(string-append qtbase "/lib/qt5/plugins"))) + `("QT_QPA_PLATFORM_PLUGIN_PATH" ":" = + (,(string-append qtbase "/lib/qt5/plugins/platforms")))) + #t)))))) + (inputs + `(("python-pypdf2" ,python-pypdf2) + ("python-pyqt" ,python-pyqt) + ("python-poppler-qt5" ,python-poppler-qt5) + ("qtbase" ,qtbase))) + (home-page "http://crazy-compilers.com/flyer-composer") + (synopsis "Rearrange PDF pages to print as flyers on one sheet") + (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 both the commnd line tool and the gui too.") + (license license:agpl3+))) + (define-public poppler (package (name "poppler")