[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
06/06: gnu: poppler: Enable tests.
From: |
guix-commits |
Subject: |
06/06: gnu: poppler: Enable tests. |
Date: |
Sat, 5 Feb 2022 18:57:39 -0500 (EST) |
lilyp pushed a commit to branch core-updates
in repository guix.
commit 10ee2542e825d0c430836dd546137e85e7cc41c2
Author: Liliana Marie Prikler <liliana.prikler@gmail.com>
AuthorDate: Sun Feb 6 00:52:33 2022 +0100
gnu: poppler: Enable tests.
* gnu/package/pdf.scm (poppler-tests): New variable.
(poppler)[arguments]: Drop #:tests?. Add "-DTESTDATADIR" to
#:configure-flags.
---
gnu/packages/pdf.scm | 19 +++++++++++++++++--
1 file changed, 17 insertions(+), 2 deletions(-)
diff --git a/gnu/packages/pdf.scm b/gnu/packages/pdf.scm
index eda93ba981..024138c964 100644
--- a/gnu/packages/pdf.scm
+++ b/gnu/packages/pdf.scm
@@ -221,6 +221,21 @@ times. If you have a second page, Flyer Composer can
arrange it the same way
This package contains only the command line tool. If you like to use the gui,
please install the @code{flyer-composer-gui} package.")))
+(define poppler-tests
+ (let ((poppler-version "22.01.0") ; bump when bumping poppler version
+ (revision "0")
+ (commit "0762e0144143e680e24ec8d4c34c46c3716b8713"))
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://gitlab.freedesktop.org/poppler/test.git")
+ (commit commit)))
+ (file-name (git-file-name "poppler-tests"
+ (git-version poppler-version revision commit)))
+ (sha256
+ (base32
+ "1nwgwcddj5fiq200p4f07fl0i5f885c1nfzmvpc6q9p55qxp6brv")))))
+
(define-public poppler
(package
(name "poppler")
@@ -258,13 +273,13 @@ please install the @code{flyer-composer-gui} package.")))
gobject-introspection))
(arguments
(list
- #:tests? #f ;no test data provided with the tarball
#:configure-flags
#~(list "-DENABLE_UNSTABLE_API_ABI_HEADERS=ON" ;to install header files
"-DENABLE_ZLIB=ON"
"-DENABLE_BOOST=OFF" ;disable Boost to save size
(string-append "-DCMAKE_INSTALL_LIBDIR=" #$output "/lib")
- (string-append "-DCMAKE_INSTALL_RPATH=" #$output "/lib"))
+ (string-append "-DCMAKE_INSTALL_RPATH=" #$output "/lib")
+ (string-append "-DTESTDATADIR=" #+poppler-tests))
#:phases
(if (%current-target-system) #~%standard-phases
#~(modify-phases %standard-phases
- branch core-updates updated (6ac6a7e020 -> 10ee2542e8), guix-commits, 2022/02/05
- 01/06: gnu: poppler: Add poppler-data., guix-commits, 2022/02/05
- 02/06: gnu: pdf2djvu: Remove poppler-data., guix-commits, 2022/02/05
- 03/06: gnu: poppler: Use new input style., guix-commits, 2022/02/05
- 06/06: gnu: poppler: Enable tests.,
guix-commits <=
- 04/06: gnu: poppler: Use gexps in arguments., guix-commits, 2022/02/05
- 05/06: gnu: poppler: Update to 22.01.0., guix-commits, 2022/02/05