emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#62147: closed ([PATCH] gnu: Add a4pdf.)


From: GNU bug Tracking System
Subject: bug#62147: closed ([PATCH] gnu: Add a4pdf.)
Date: Sun, 19 Mar 2023 08:30:02 +0000

Your message dated Sun, 19 Mar 2023 09:29:20 +0100
with message-id <d015c0d95c0305eeb50790b785d5e2364a4cbd48.camel@gmail.com>
and subject line Re: [PATCH v2] gnu: Add a4pdf.
has caused the debbugs.gnu.org bug report #62147,
regarding [PATCH] gnu: Add a4pdf.
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs@gnu.org.)


-- 
62147: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=62147
GNU Bug Tracking System
Contact help-debbugs@gnu.org with problems
--- Begin Message --- Subject: [PATCH] gnu: Add a4pdf. Date: Sun, 12 Mar 2023 18:36:58 +0100
* 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 <cassert>" all)
+                      (string-append all "\n#include <unistd.h>")))))
+               (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




--- End Message ---
--- Begin Message --- Subject: Re: [PATCH v2] gnu: Add a4pdf. Date: Sun, 19 Mar 2023 09:29:20 +0100 User-agent: Evolution 3.46.0
Am Sonntag, dem 12.03.2023 um 18:36 +0100 schrieb Liliana Marie
Prikler:
> * gnu/packages/pdf.scm (a4pdf): New variable.
> ---
Pushed.

Cheers


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]