[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
06/07: gnu: Add texlive-libkpathsea.
From: |
guix-commits |
Subject: |
06/07: gnu: Add texlive-libkpathsea. |
Date: |
Thu, 15 Jul 2021 07:43:14 -0400 (EDT) |
leoprikler pushed a commit to branch master
in repository guix.
commit e89036e2f18a558ecc810dadb428ee07e04442a6
Author: Leo Prikler <leo.prikler@student.tugraz.at>
AuthorDate: Sat May 15 16:16:48 2021 +0200
gnu: Add texlive-libkpathsea.
* gnu/packages/tex.scm (texlive-libkpathsea): New variable.
---
gnu/packages/tex.scm | 33 +++++++++++++++++++++++++++++++++
1 file changed, 33 insertions(+)
diff --git a/gnu/packages/tex.scm b/gnu/packages/tex.scm
index 8d86264..b404ca8 100644
--- a/gnu/packages/tex.scm
+++ b/gnu/packages/tex.scm
@@ -460,6 +460,39 @@ This package contains the binaries.")
(license (license:fsf-free "https://www.tug.org/texlive/copying.html"))
(home-page "https://www.tug.org/texlive/")))
+(define-public texlive-libkpathsea
+ (package/inherit texlive-bin
+ (name "texlive-libkpathsea")
+ (source
+ (origin
+ (inherit (package-source texlive-bin))
+ (snippet
+ `(begin
+ ,(origin-snippet (package-source texlive-bin))
+ (with-directory-excursion "texk"
+ (let ((preserved-directories '("." ".." "kpathsea")))
+ (for-each
+ delete-file-recursively
+ (scandir "."
+ (lambda (file)
+ (and (not (member file preserved-directories))
+ (eq? 'directory (stat:type (stat
file)))))))))))))
+ (arguments
+ (substitute-keyword-arguments (package-arguments texlive-bin)
+ ((#:configure-flags flags)
+ `(cons* "--disable-all-pkgs" "--enable-kpathsea"
+ "--enable-shared" ,flags))
+ ((#:phases phases)
+ `(modify-phases %standard-phases
+ (add-after 'install 'post-install
+ (lambda* (#:key inputs outputs #:allow-other-keys)
+ (with-directory-excursion "texk/kpathsea"
+ (invoke "make" "install"))))))))
+ (inputs '())
+ (synopsis "Path searching library")
+ (description "kpathsea is a library, whose purpose is to return a filename
+from a list of user-specified directories similar to how shells look up
+executables. It is maintained as a part of TeX Live.")))
(define texlive-docstrip
(package
- branch master updated (17c8fed -> a0c4465), guix-commits, 2021/07/15
- 01/07: gnu: python2-renpy: Drop unused Ren'py sources., guix-commits, 2021/07/15
- 02/07: gnu: python2-renpy: Update description., guix-commits, 2021/07/15
- 05/07: gnu: Add python-pygame-sdl2., guix-commits, 2021/07/15
- 07/07: gnu: evince: Build with libkpathsea., guix-commits, 2021/07/15
- 04/07: gnu: renpy: Correct inputs., guix-commits, 2021/07/15
- 03/07: gnu: python2-renpy: Correct inputs., guix-commits, 2021/07/15
- 06/07: gnu: Add texlive-libkpathsea.,
guix-commits <=