[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
55/97: gnu: Add texlive-dvisvgm-bin.
From: |
guix-commits |
Subject: |
55/97: gnu: Add texlive-dvisvgm-bin. |
Date: |
Fri, 21 Jun 2024 08:23:07 -0400 (EDT) |
ngz pushed a commit to branch tex-team
in repository guix.
commit da0bf02067d3e6a91926a7739f180e7c9893fe58
Author: Nicolas Goaziou <mail@nicolasgoaziou.fr>
AuthorDate: Tue May 28 16:13:48 2024 +0200
gnu: Add texlive-dvisvgm-bin.
* gnu/packages/tex.scm (texlive-dvisvgm-bin): New variable.
(texlive-dvisvgm)[propagated-inputs]: Add TEXLIVE-DVISVGM-BIN.
Change-Id: I0e43627712943efd9e81204dfe76042e19368ea6
---
gnu/packages/tex.scm | 67 ++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 67 insertions(+)
diff --git a/gnu/packages/tex.scm b/gnu/packages/tex.scm
index 36c086aa08..48391b24ba 100644
--- a/gnu/packages/tex.scm
+++ b/gnu/packages/tex.scm
@@ -99,6 +99,7 @@
#:use-module (gnu packages ruby)
#:use-module (gnu packages shells)
#:use-module (gnu packages tcl)
+ #:use-module (gnu packages tls)
#:use-module (gnu packages base)
#:use-module (gnu packages gawk)
#:use-module (gnu packages web)
@@ -35189,6 +35190,7 @@ paper feed errors!")
"1fz3sa7p9wk2g1v0bpy87vz7nxwrh5bsfl4m734n6lhsh1bkj6fb")))
(outputs '("out" "doc"))
(build-system texlive-build-system)
+ (propagated-inputs (list texlive-dvisvgm-bin))
(home-page "https://ctan.org/pkg/dvisvgm")
(synopsis
"Convert DVI, EPS, and PDF files to Scalable Vector Graphics format
(SVG)")
@@ -35202,6 +35204,71 @@ optionally be replaced with graphics paths so that
applications that do not
support SVG fonts are enabled to render the graphics properly.")
(license license:gpl3+)))
+(define-public texlive-dvisvgm-bin
+ (package
+ (inherit texlive-bin)
+ (name "texlive-dvisvgm-bin")
+ (source
+ (origin
+ (inherit texlive-source)
+ (modules '((guix build utils)
+ (ice-9 ftw)))
+ (snippet
+ #~(let ((delete-other-directories
+ (lambda (root keep)
+ (with-directory-excursion root
+ (for-each
+ delete-file-recursively
+ (scandir
+ "."
+ (lambda (file)
+ (and (not (member file (append keep '("." ".."))))
+ (eq? 'directory (stat:type (stat file)))))))))))
+ (delete-other-directories "libs" '())
+ (delete-other-directories "utils" '())
+ ;; TODO: Unbundle stuff in texk/dvisvgm/dvisvgm-src/libs too.
+ (delete-other-directories "texk" '("dvisvgm"))))))
+ (arguments
+ (substitute-keyword-arguments (package-arguments texlive-bin)
+ ((#:configure-flags flags)
+ #~(cons "--enable-dvisvgm" (delete "--enable-web2c" #$flags)))
+ ((#:phases phases)
+ #~(modify-phases #$phases
+ ;; XXX: Ghostscript is detected, but HAVE_LIBGS is never set, so
+ ;; the appropriate linker flags are not added.
+ (add-after 'unpack 'patch-dvisvgm-build-files
+ (lambda _
+ (substitute* "texk/dvisvgm/configure"
+ (("^have_libgs=yes" all)
+ (string-append all "\nHAVE_LIBGS=1")))))
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (with-directory-excursion "texk/dvisvgm"
+ (invoke "make" "check")))))
+ (replace 'install
+ (lambda _
+ (with-directory-excursion "texk/dvisvgm"
+ (invoke "make" "install"))))))))
+ (native-inputs (list pkg-config))
+ (inputs
+ (list brotli
+ clipper
+ freetype
+ ghostscript
+ openssl
+ potrace
+ texlive-libkpathsea
+ woff2
+ xxhash
+ zlib))
+ (propagated-inputs '())
+ (home-page (package-home-page texlive-dvisvgm))
+ (synopsis "Binary for @code{texlive-dvisvgm}")
+ (description
+ "This package provides the binary for @code{texlive-dvisvgm}.")
+ (license (package-license texlive-dvisvgm))))
+
(define-public texlive-ebong
(package
(name "texlive-ebong")
- 28/97: gnu: Add texlive-afm2pl-bin., (continued)
- 28/97: gnu: Add texlive-afm2pl-bin., guix-commits, 2024/06/21
- 29/97: gnu: Add texlive-m-tx-bin., guix-commits, 2024/06/21
- 33/97: gnu: Add texlive-velthuis-bin., guix-commits, 2024/06/21
- 35/97: gnu: Add texlive-bibtexu-bin., guix-commits, 2024/06/21
- 39/97: gnu: Add texlive-xdvi-bin., guix-commits, 2024/06/21
- 50/97: gnu: Add texlive-dtl-bin., guix-commits, 2024/06/21
- 52/97: gnu: Add texlive-dvidvi-bin., guix-commits, 2024/06/21
- 54/97: gnu: Add texlive-dvipng-bin., guix-commits, 2024/06/21
- 56/97: gnu: Add texlive-lcdftypetools-bin., guix-commits, 2024/06/21
- 47/97: gnu: Add texlive-cjkutils-bin., guix-commits, 2024/06/21
- 55/97: gnu: Add texlive-dvisvgm-bin.,
guix-commits <=
- 80/97: gnu: texlive-hyphen-complete: Fix locations., guix-commits, 2024/06/21
- 70/97: gnu: texlive-musixtnt: Build binary separately., guix-commits, 2024/06/21
- 82/97: guix: import texlive: Rename some functions., guix-commits, 2024/06/21
- 51/97: gnu: Add texlive-dvi2tty-bin., guix-commits, 2024/06/21
- 57/97: gnu: Add texlive-lacheck-bin., guix-commits, 2024/06/21
- 58/97: gnu: Add texlive-seetexk-bin., guix-commits, 2024/06/21
- 65/97: gnu: Add texlive-luajittex-bin., guix-commits, 2024/06/21
- 66/97: gnu: Add texlive-mflua-bin., guix-commits, 2024/06/21
- 71/97: gnu: texlive-axodraw2: Build binary separately., guix-commits, 2024/06/21
- 75/97: gnu: Update commentary section in "tex.scm"., guix-commits, 2024/06/21