From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id CApjMAwODmRB0AAASxT56A (envelope-from ) for ; Sun, 12 Mar 2023 18:38:20 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id ABCELwwODmSGMQAAG6o9tA (envelope-from ) for ; Sun, 12 Mar 2023 18:38:20 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 1BCA23CF72 for ; Sun, 12 Mar 2023 18:38:19 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=cx6tr66J; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1678642700; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=bVb3N32il3ls7AKCwDeacbD/Gqzv8ngG3xlkpTimJLw=; b=Kkc9PDBR2fLzJYE4xjxs5/jupu1X/x3Ivoy066y3no9JT/Wmf4AUYlZRHg59/fNWJoT+Ud JOnPzVHQYeh/lVtPFRizisf/S8A1OFrgHeP9oafE0FM0kY/4PAjmmTRfwAyjxIR3BSlZbd 0xQlqJz1ycZesuBB+PQ2wt77jbYrg3YoxE3r7LM/7zULQSNHdUzTBbZPOuMSTUylazXMaw 4ZId/8Hphi7lk/tfeeMt4I8/ETaT9ZszbwdMTVomUAnDJTYzfJ3Rnws4a2o8AAi/8GgC6r 6k1VYIOUpyWWUtp4AkfgclMPERPC++MC56ZxpG00ITiBrntmNzchNydSqv9tlw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=cx6tr66J; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1678642700; a=rsa-sha256; cv=none; b=njoLh4b50BLaCz++ek+L38uIw/+k57X00qJtMcDRK0YNLuYvkHbq4A6wH5NWR8wzGlZD+d rBNyGZXXFBLNnBfN+rlmNb8hdpYcZLRyyVIDNCH0ZOSwh3i+WGF1SJmaC6H+L79gozPkAF iJ2sYKU97m2VOwck1BhexGgIVTE5HvjR99LJ/AggTWuCxLYVv3M335gp5wIjx5SIzdFDHM dqPn4MTHhDe9TK+7tQy1tZLoYMdFqYLMa1X5qfjqSq9RICcGxYtn0UGxVNBhntv1St9n/w /F9O06rFYkbNFOhdm7wHMPT7z/kE/D230MSGtxetqkR2YASHSkn6p1kD/mFgIg== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pbPdz-0003lm-LR; Sun, 12 Mar 2023 13:38:04 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pbPdy-0003le-CM for guix-patches@gnu.org; Sun, 12 Mar 2023 13:38:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pbPdy-0000OJ-3y for guix-patches@gnu.org; Sun, 12 Mar 2023 13:38:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pbPdx-0004eC-Mh for guix-patches@gnu.org; Sun, 12 Mar 2023 13:38:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#62147] [PATCH] gnu: Add a4pdf. Resent-From: Liliana Marie Prikler Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 12 Mar 2023 17:38:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 62147 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 62147@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.167864267317836 (code B ref -1); Sun, 12 Mar 2023 17:38:01 +0000 Received: (at submit) by debbugs.gnu.org; 12 Mar 2023 17:37:53 +0000 Received: from localhost ([127.0.0.1]:33037 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pbPdp-0004db-3k for submit@debbugs.gnu.org; Sun, 12 Mar 2023 13:37:53 -0400 Received: from lists.gnu.org ([209.51.188.17]:43104) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pbPdo-0004dR-0Q for submit@debbugs.gnu.org; Sun, 12 Mar 2023 13:37:52 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pbPdi-0003l9-OH for guix-patches@gnu.org; Sun, 12 Mar 2023 13:37:48 -0400 Received: from mail-ed1-x541.google.com ([2a00:1450:4864:20::541]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pbPdf-0000JJ-RT for guix-patches@gnu.org; Sun, 12 Mar 2023 13:37:46 -0400 Received: by mail-ed1-x541.google.com with SMTP id x3so39870647edb.10 for ; Sun, 12 Mar 2023 10:37:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1678642662; h=mime-version:message-id:to:subject:date:from:from:to:cc:subject :date:message-id:reply-to; bh=bVb3N32il3ls7AKCwDeacbD/Gqzv8ngG3xlkpTimJLw=; b=cx6tr66JbaoiXYCNXc5Dft52HvLVR21byD8885SReCPS2HMy+S586ZrbjPN+7ycWWh 4ybVAXW17HZ3x4U5qqUaa6+egXMHth3tG12EFF1B5u/0sSQtQzkeV9BB6Z2p+GcvmZ7e CtMMJJ4nCmy+TfVX4TDmLJif2z52NzNKJV3IHd1/ZpwXx8IH5+C4xZRWXAO3N7OjmSqX 5PtdnNUyN93eK2kIOvDlXMkdOXt2pD06/gQIaFv2I2yj2CU1mVTchrRm8BZmoKbMlhqB gr7/oM9yDYhoQfMwaCbusbK0RtlZupPIF4RSov/0ie+G+FtVv2byao8C2Kgk9qF9A8Yx 3+Uw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678642662; h=mime-version:message-id:to:subject:date:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=bVb3N32il3ls7AKCwDeacbD/Gqzv8ngG3xlkpTimJLw=; b=bdq5/i2x/5N5gwi6kT64tfb3s3VdrmbLjn+avgt7d+J6HjWpqDSQqnNsE5GuVvelM/ G1b1tIRSatnykZrmGw+KTM/sx5Tey1fTjUfBp5SBjrcyHefgTqA6K0ePwCR7wUIKSPAL geJgcurMI9XGyvE3I77CJEb+RFxfxDZWksl+hM5hZ4XzVw7mB9LsnUwDudxSa0J1wTKA ZUkvh4Ld9l5eGgGbB8StLigUFD0N9kuHv2d6F2zViUikUvExTbf57/KsCfS+owzgZUir uFO0NqkcS6Ob+9Ay8pY8uX9RJEmR6SddPwPlnA9Qcl3zBpN8pmEqUI0Sl3elDUYrJ5Wu ysLQ== X-Gm-Message-State: AO0yUKUJec0/78VIt95AiTTZQ4dk4fg3b6pbjRwXTcr/JYLGWNIpSYkJ DdDjoTwCa6f+xI+qTWw0nC2vI63VpPjhzw== X-Google-Smtp-Source: AK7set9L0BQa9s0u+XuwK300BoTtCTMLNjAakd5XMRB/tP6PouFi23b+YCNkLIYr8PBF8+UOps69FQ== X-Received: by 2002:aa7:ca42:0:b0:4bd:ff78:9c89 with SMTP id j2-20020aa7ca42000000b004bdff789c89mr27670467edt.24.1678642662111; Sun, 12 Mar 2023 10:37:42 -0700 (PDT) Received: from lumine.fritz.box (85-127-52-93.dsl.dynamic.surfer.at. [85.127.52.93]) by smtp.gmail.com with ESMTPSA id w7-20020a50d787000000b004c19f1891fasm2400513edi.59.2023.03.12.10.37.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 12 Mar 2023 10:37:41 -0700 (PDT) From: Liliana Marie Prikler Date: Sun, 12 Mar 2023 18:36:58 +0100 Message-ID: <75920a546bb1513f646da8a6ba84921e79e6bde6.camel@gmail.com> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::541; envelope-from=liliana.prikler@gmail.com; helo=mail-ed1-x541.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: X-Migadu-Queue-Id: 1BCA23CF72 X-Spam-Score: -3.41 X-Migadu-Spam-Score: -3.41 X-Migadu-Scanner: scn0.migadu.com List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-TUID: h5iuiM6UgKyv * gnu/packages/pdf.scm (a4pdf): New variable. --- gnu/packages/pdf.scm | 47 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) diff --git a/gnu/packages/pdf.scm b/gnu/packages/pdf.scm index 6eee460740..0248cd16aa 100644 --- a/gnu/packages/pdf.scm +++ b/gnu/packages/pdf.scm @@ -89,6 +89,7 @@ (define-module (gnu packages pdf) #:use-module (gnu packages perl) #:use-module (gnu packages photo) #:use-module (gnu packages pkg-config) + #:use-module (gnu packages pretty-print) #:use-module (gnu packages pulseaudio) #:use-module (gnu packages python) #:use-module (gnu packages python-build) @@ -110,6 +111,52 @@ (define-module (gnu packages pdf) #:use-module (gnu packages xorg) #:use-module (srfi srfi-1)) +(define-public a4pdf + (package + (name "a4pdf") + (version "0.1.0") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/jpakkane/a4pdf") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 "18062cm1qsbaymmjar0whbd7kaggy4x7wzp7xw94kcd1pwx2jp1p")))) + (build-system meson-build-system) + (arguments + (list #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'add-missing-header + (lambda _ + (substitute* "src/pdfgen.cpp" + (("#include " all) + (string-append all "\n#include "))))) + (add-after 'unpack 'fix-glib-application-flags + (lambda _ + ;; XXX: remove when bumping glib + (substitute* "src/pdfviewer.cpp" + (("G_APPLICATION_DEFAULT_FLAGS") + "G_APPLICATION_FLAGS_NONE")))) + (add-after 'unpack 'fix-broken-tests + (lambda* (#:key inputs native-inputs #:allow-other-keys) + (substitute* "test/a4pdftests.py" + (("'Ghostscript not found, test suite can not be run.'") + ;; Sucks, but there's no point in repairing a certain test + ;; at the moment. + "0"))))))) + (inputs (list fmt freetype lcms libjpeg-turbo libpng gtk zlib)) + (native-inputs (list font-google-noto + ;; ghostscript + pkg-config + python + python-pillow)) + (home-page "https://github.com/jpakkane/a4pdf") + (synopsis "Color-managed PDF generator") + (description "A4PDF is a low-level libray for generating PDF files. +It does not have a document model, does not ") + (license license:asl2.0))) + (define-public extractpdfmark (package (name "extractpdfmark") -- 2.39.2