[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
06/08: gnu: texlive-bin: Purge unused bundled software from the source.
From: |
guix-commits |
Subject: |
06/08: gnu: texlive-bin: Purge unused bundled software from the source. |
Date: |
Mon, 13 Jan 2020 18:19:26 -0500 (EST) |
mbakke pushed a commit to branch core-updates
in repository guix.
commit 928fc7c5116c3ecd8b9d4487eef0c07c71a43c37
Author: Marius Bakke <address@hidden>
AuthorDate: Thu Jan 9 22:38:35 2020 +0100
gnu: texlive-bin: Purge unused bundled software from the source.
* gnu/packages/tex.scm (texlive-bin)[source](modules, snippet): New fields.
---
gnu/packages/tex.scm | 17 ++++++++++++++++-
1 file changed, 16 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/tex.scm b/gnu/packages/tex.scm
index 3653e1d..c9b211e 100644
--- a/gnu/packages/tex.scm
+++ b/gnu/packages/tex.scm
@@ -266,7 +266,22 @@ copied to their outputs; otherwise the
TEXLIVE-BUILD-SYSTEM is used."
"03vc88dz37mjjyaspzv0fik2fp5gp8qv82114869akd1dhszbaax")
(search-patch "texlive-bin-poppler-0.83.patch")
(arch-patch "texlive-poppler-0.84.patch" arch-revision
-
"1ia6cr99krk4ipx4hdi2qdb98bh2h26mckjlpxdzrjnfhlnghksa"))))))
+
"1ia6cr99krk4ipx4hdi2qdb98bh2h26mckjlpxdzrjnfhlnghksa"))))
+ (modules '((guix build utils)
+ (ice-9 ftw)))
+ (snippet
+ '(begin
+ (with-directory-excursion "libs"
+ (let ((preserved-directories '("." ".." "lua53" "luajit")))
+ ;; Delete bundled software, except Lua which cannot easily be
+ ;; used as an external dependency.
+ (for-each delete-file-recursively
+ (scandir "."
+ (lambda (file)
+ (and (not (member file
preserved-directories))
+ (eq? 'directory (stat:type (stat
file)))))))))
+ ;; TODO: Unbundle stuff in texk/dvisvgm/dvisvgm-src/libs too.
+ #t))))
(build-system gnu-build-system)
(inputs
`(("texlive-extra-src" ,texlive-extra-src)
- branch core-updates updated (3963fc7 -> 8589294), guix-commits, 2020/01/13
- 01/08: gnu: Add ruby-hydra., guix-commits, 2020/01/13
- 05/08: gnu: texlive-bin: Do not build static libraries., guix-commits, 2020/01/13
- 03/08: build-system/texlive: Update to texlive-2019.3, revision 51265., guix-commits, 2020/01/13
- 06/08: gnu: texlive-bin: Purge unused bundled software from the source.,
guix-commits <=
- 07/08: gnu: Add texlive-hyphen-pali., guix-commits, 2020/01/13
- 02/08: gnu: poppler: Update to 0.84.0., guix-commits, 2020/01/13
- 04/08: gnu: texlive-bin: Update to 20190410., guix-commits, 2020/01/13
- 08/08: gnu: TeX Live: Update packages to 2019.3., guix-commits, 2020/01/13