[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
06/11: gnu: mupdf: Remove more bundled software.
From: |
guix-commits |
Subject: |
06/11: gnu: mupdf: Remove more bundled software. |
Date: |
Tue, 24 Nov 2020 06:22:52 -0500 (EST) |
nckx pushed a commit to branch master
in repository guix.
commit 089f9be4f200b40e397e82728cb29baae12a1021
Author: Tobias Geerinckx-Rice <me@tobias.gr>
AuthorDate: Tue Nov 24 01:25:29 2020 +0100
gnu: mupdf: Remove more bundled software.
* gnu/packages/pdf.scm (mupdf)[source]: In the snippet, list the
thirdparty/ packages we want to keep instead of those to delete.
---
gnu/packages/pdf.scm | 37 ++++++++++++++++++++-----------------
1 file changed, 20 insertions(+), 17 deletions(-)
diff --git a/gnu/packages/pdf.scm b/gnu/packages/pdf.scm
index afcea4d..15f37ed 100644
--- a/gnu/packages/pdf.scm
+++ b/gnu/packages/pdf.scm
@@ -685,23 +685,26 @@ extracting content or merging files.")
(name "mupdf")
(version "1.16.1")
(source
- (origin
- (method url-fetch)
- (uri (string-append "https://mupdf.com/downloads/archive/"
- "mupdf-" version "-source.tar.xz"))
- (sha256
- (base32
- "1npmy92lkj41nnc14b4fpq7z62pminy94zsdbrczj22jpn283rvg"))
- (modules '((guix build utils)))
- (snippet
- ;; We keep lcms2 since it is different than our lcms.
- '(begin
- (for-each
- (lambda (dir)
- (delete-file-recursively (string-append "thirdparty/" dir)))
- '("freeglut" "freetype" "harfbuzz" "jbig2dec"
- "libjpeg" "mujs" "openjpeg" "zlib"))
- #t))))
+ (origin
+ (method url-fetch)
+ (uri (string-append "https://mupdf.com/downloads/archive/"
+ "mupdf-" version "-source.tar.xz"))
+ (sha256
+ (base32 "16m5sksil22sshxy70xkslsb2qhvcqb1d95i9savnhds1xn4ybar"))
+ (modules '((guix build utils)))
+ (snippet
+ '(begin
+ ;; Remove bundled software.
+ (let* ((keep (list "lcms2")) ; different from our lcms2 package
+ (from "thirdparty")
+ (kept (string-append from "~temp")))
+ (mkdir-p kept)
+ (for-each (lambda (file) (rename-file (string-append from "/"
file)
+ (string-append kept "/" file)))
+ keep)
+ (delete-file-recursively from)
+ (rename-file kept from))
+ #t))))
(build-system gnu-build-system)
(inputs
`(("curl" ,curl)
- branch master updated (097b725 -> eddf3db), guix-commits, 2020/11/24
- 02/11: gnu: youtube-dl: Update to 2020.11.24., guix-commits, 2020/11/24
- 01/11: gnu: poppler-data: Update to 0.4.10., guix-commits, 2020/11/24
- 03/11: gnu: earlyoom: Update to 1.6.2., guix-commits, 2020/11/24
- 04/11: gnu: python-databricks-cli: Update to 0.14.1., guix-commits, 2020/11/24
- 05/11: gnu: axel: Update to 2.17.10., guix-commits, 2020/11/24
- 06/11: gnu: mupdf: Remove more bundled software.,
guix-commits <=
- 07/11: gnu: mupdf: Update to 1.18.0., guix-commits, 2020/11/24
- 09/11: gnu: chirp: Update to 20201121., guix-commits, 2020/11/24
- 10/11: gnu: s6-linux-init: Update to 1.0.5.1., guix-commits, 2020/11/24
- 11/11: gnu: s6-linux-init: Omit static library., guix-commits, 2020/11/24
- 08/11: gnu: mupdf: Prepare for cross-compilation., guix-commits, 2020/11/24