GNU bug report logs -
#62147
[PATCH] gnu: Add a4pdf.
Previous Next
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 62147 in the body.
You can then email your comments to 62147 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
guix-patches <at> gnu.org
:
bug#62147
; Package
guix-patches
.
(Sun, 12 Mar 2023 17:38:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Liliana Marie Prikler <liliana.prikler <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
guix-patches <at> gnu.org
.
(Sun, 12 Mar 2023 17:38:01 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
* 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
Information forwarded
to
guix-patches <at> gnu.org
:
bug#62147
; Package
guix-patches
.
(Sun, 12 Mar 2023 17:49:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 62147 <at> debbugs.gnu.org (full text, mbox):
Hello,
Liliana Marie Prikler <liliana.prikler <at> gmail.com> writes:
> * gnu/packages/pdf.scm (a4pdf): New variable.
Thank you.
> + (description "A4PDF is a low-level libray for generating PDF files.
> +It does not have a document model, does not ")
Sorry for the obvious feedback, but the description appears to be
incomplete. Otherwise, LGTM (although I would align native-inputs
vertically since there are more than 5 of them).
Regards,
--
Nicolas Goaziou
Information forwarded
to
guix-patches <at> gnu.org
:
bug#62147
; Package
guix-patches
.
(Sun, 12 Mar 2023 18:37:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 62147 <at> debbugs.gnu.org (full text, mbox):
* gnu/packages/pdf.scm (a4pdf): New variable.
---
gnu/packages/pdf.scm | 55 ++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 55 insertions(+)
diff --git a/gnu/packages/pdf.scm b/gnu/packages/pdf.scm
index 6eee460740..dd1064bd6c 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,60 @@ (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
+ gtk
+ lcms
+ libjpeg-turbo
+ libpng
+ 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 and instead uses PDF primitives
+directly. It uses LittleCMS for color management but otherwise does not
+convert data in any way.")
+ (license license:asl2.0)))
+
(define-public extractpdfmark
(package
(name "extractpdfmark")
--
2.39.2
Reply sent
to
Liliana Marie Prikler <liliana.prikler <at> gmail.com>
:
You have taken responsibility.
(Sun, 19 Mar 2023 08:30:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
Liliana Marie Prikler <liliana.prikler <at> gmail.com>
:
bug acknowledged by developer.
(Sun, 19 Mar 2023 08:30:02 GMT)
Full text and
rfc822 format available.
Message #16 received at 62147-done <at> debbugs.gnu.org (full text, mbox):
Am Sonntag, dem 12.03.2023 um 18:36 +0100 schrieb Liliana Marie
Prikler:
> * gnu/packages/pdf.scm (a4pdf): New variable.
> ---
Pushed.
Cheers
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sun, 16 Apr 2023 11:24:07 GMT)
Full text and
rfc822 format available.
This bug report was last modified 2 years and 28 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.