me
/
guix
Archived
1
0
Fork 0

gnu: libharu: Update to 2.4.2.

* gnu/packages/pdf.scm (libharu): Update to 2.4.2.
[build-system]: Switch to cmake-build-system.
[arguments]: Remove #:configure-flags, add #:tests? and #:phases.
[inputs]: Sort them.
[native-inputs]: Remove.

Signed-off-by: Christopher Baines <mail@cbaines.net>
master
Paul A. Patience 2022-09-12 19:25:32 +00:00 committed by Christopher Baines
parent 5d22261db3
commit 140a08d44a
No known key found for this signature in database
GPG Key ID: 5E28A33B0B84F577
1 changed files with 31 additions and 29 deletions

View File

@ -22,6 +22,7 @@
;;; Copyright © 2020 Timotej Lazar <timotej.lazar@araneo.si> ;;; Copyright © 2020 Timotej Lazar <timotej.lazar@araneo.si>
;;; Copyright © 2020, 2022 Maxim Cournoyer <maxim.cournoyer@gmail.com> ;;; Copyright © 2020, 2022 Maxim Cournoyer <maxim.cournoyer@gmail.com>
;;; Copyright © 2021 Maxime Devos <maximedevos@telenet.be> ;;; Copyright © 2021 Maxime Devos <maximedevos@telenet.be>
;;; Copyright © 2022 Paul A. Patience <paul@apatience.com>
;;; ;;;
;;; This file is part of GNU Guix. ;;; This file is part of GNU Guix.
;;; ;;;
@ -381,36 +382,37 @@ Poppler PDF rendering library.")
(define-public libharu (define-public libharu
(package (package
(name "libharu") (name "libharu")
(version "2.3.0") (version "2.4.2")
(source (origin (source
(method git-fetch) (origin
(uri (git-reference (method git-fetch)
(url "https://github.com/libharu/libharu") (uri (git-reference
(commit (string-append (url "https://github.com/libharu/libharu")
"RELEASE_" (commit (string-append "v" version))))
(string-join (string-split version #\.) "_"))))) (file-name (git-file-name name version))
(file-name (git-file-name name version)) (sha256
(sha256 (base32 "1jwzqvv81zf5f7zssyixhyjirlp9ddwkbaabd177syb1bxljlsdc"))))
(base32 (build-system cmake-build-system)
"15s9hswnl3qqi7yh29jyrg0hma2n99haxznvcywmsp8kjqlyg75q")))) (arguments
(build-system gnu-build-system) (list #:tests? #f ; No tests
(arguments #:phases
`(#:configure-flags #~(modify-phases %standard-phases
(list (string-append "--with-zlib=" (add-after 'unpack 'patch-cmake
(assoc-ref %build-inputs "zlib")) (lambda _
(string-append "--with-png=" (substitute* "CMakeLists.txt"
(assoc-ref %build-inputs "libpng"))))) (("^install\\(FILES (README\\.md CHANGES) INSTALL DESTINATION .*\\)"
(inputs _ files)
(list zlib libpng)) (format #f "install(FILES ~a DESTINATION ~a/share/doc/~a-~a)"
(native-inputs files #$output #$name #$version))))))))
(list autoconf automake libtool)) (inputs
(home-page "http://libharu.org/") (list libpng zlib))
(synopsis "Library for generating PDF files") (home-page "http://libharu.org/")
(description (synopsis "Library for generating PDF files")
"libHaru is a library for generating PDF files. libHaru does not support (description
"libHaru is a library for generating PDF files. libHaru does not support
reading and editing of existing PDF files.") reading and editing of existing PDF files.")
(license license:zlib))) (license license:zlib)))
(define-public xpdf (define-public xpdf
(package (package