summaryrefslogtreecommitdiff
path: root/gnu/packages/pdf.scm
diff options
context:
space:
mode:
authorMarius Bakke <marius@gnu.org>2022-09-18 16:30:21 +0200
committerMarius Bakke <marius@gnu.org>2022-09-18 16:30:21 +0200
commit80c76f5d8eaa0aff40c08eac19a62e0e7957a7c8 (patch)
tree68938c2e5ed14adc2af9ef9be6691b1948175f39 /gnu/packages/pdf.scm
parentcbe461f2d497554fd667429cd9db5ee990c7fadb (diff)
parent2266ec5eb1bcc2c87baa27297a4205eebf325424 (diff)
Merge branch 'staging' into core-updates
Diffstat (limited to 'gnu/packages/pdf.scm')
-rw-r--r--gnu/packages/pdf.scm60
1 files changed, 31 insertions, 29 deletions
diff --git a/gnu/packages/pdf.scm b/gnu/packages/pdf.scm
index c18e7f7f62..bdc773f650 100644
--- a/gnu/packages/pdf.scm
+++ b/gnu/packages/pdf.scm
@@ -22,6 +22,7 @@
;;; Copyright © 2020 Timotej Lazar <timotej.lazar@araneo.si>
;;; Copyright © 2020, 2022 Maxim Cournoyer <maxim.cournoyer@gmail.com>
;;; Copyright © 2021 Maxime Devos <maximedevos@telenet.be>
+;;; Copyright © 2022 Paul A. Patience <paul@apatience.com>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -385,36 +386,37 @@ Poppler PDF rendering library.")
(define-public libharu
(package
- (name "libharu")
- (version "2.3.0")
- (source (origin
- (method git-fetch)
- (uri (git-reference
- (url "https://github.com/libharu/libharu")
- (commit (string-append
- "RELEASE_"
- (string-join (string-split version #\.) "_")))))
- (file-name (git-file-name name version))
- (sha256
- (base32
- "15s9hswnl3qqi7yh29jyrg0hma2n99haxznvcywmsp8kjqlyg75q"))))
- (build-system gnu-build-system)
- (arguments
- `(#:configure-flags
- (list (string-append "--with-zlib="
- (assoc-ref %build-inputs "zlib"))
- (string-append "--with-png="
- (assoc-ref %build-inputs "libpng")))))
- (inputs
- (list zlib libpng))
- (native-inputs
- (list autoconf automake libtool))
- (home-page "http://libharu.org/")
- (synopsis "Library for generating PDF files")
- (description
- "libHaru is a library for generating PDF files. libHaru does not support
+ (name "libharu")
+ (version "2.4.2")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/libharu/libharu")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "1jwzqvv81zf5f7zssyixhyjirlp9ddwkbaabd177syb1bxljlsdc"))))
+ (build-system cmake-build-system)
+ (arguments
+ (list #:tests? #f ; No tests
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'patch-cmake
+ (lambda _
+ (substitute* "CMakeLists.txt"
+ (("^install\\(FILES (README\\.md CHANGES) INSTALL DESTINATION .*\\)"
+ _ files)
+ (format #f "install(FILES ~a DESTINATION ~a/share/doc/~a-~a)"
+ files #$output #$name #$version))))))))
+ (inputs
+ (list libpng zlib))
+ (home-page "http://libharu.org/")
+ (synopsis "Library for generating PDF files")
+ (description
+ "libHaru is a library for generating PDF files. libHaru does not support
reading and editing of existing PDF files.")
- (license license:zlib)))
+ (license license:zlib)))
(define-public xpdf
(package