[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
52/72: gnu: Add texlive-dvisvgm-bin.
From: |
guix-commits |
Subject: |
52/72: gnu: Add texlive-dvisvgm-bin. |
Date: |
Mon, 3 Jun 2024 09:00:12 -0400 (EDT) |
ngz pushed a commit to branch tex-team
in repository guix.
commit fc15867420037384175ea25de0d0aafe47b1d196
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 658d7c77d3..732aae9e8a 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)
@@ -35174,6 +35175,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)")
@@ -35187,6 +35189,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")
- 34/72: gnu: Add texlive-psutils-bin., (continued)
- 34/72: gnu: Add texlive-psutils-bin., guix-commits, 2024/06/03
- 35/72: gnu: Add texlive-tex4ht-bin., guix-commits, 2024/06/03
- 36/72: gnu: Add texlive-xdvi-bin., guix-commits, 2024/06/03
- 37/72: gnu: Add texlive-tpic2pdftex-bin., guix-commits, 2024/06/03
- 41/72: gnu: Add texlive-makeindex-bin., guix-commits, 2024/06/03
- 42/72: gnu: Add texlive-metapost-bin., guix-commits, 2024/06/03
- 43/72: gnu: Add texlive-vlna-bin., guix-commits, 2024/06/03
- 46/72: gnu: Add texlive-detex-bin., guix-commits, 2024/06/03
- 48/72: gnu: Add texlive-dvi2tty-bin., guix-commits, 2024/06/03
- 51/72: gnu: Add texlive-dvipng-bin., guix-commits, 2024/06/03
- 52/72: gnu: Add texlive-dvisvgm-bin.,
guix-commits <=
- 54/72: gnu: Add texlive-lacheck-bin., guix-commits, 2024/06/03
- 50/72: gnu: Add texlive-dviljk-bin., guix-commits, 2024/06/03
- 47/72: gnu: Add texlive-dtl-bin., guix-commits, 2024/06/03
- 49/72: gnu: Add texlive-dvidvi-bin., guix-commits, 2024/06/03
- 53/72: gnu: Add texlive-lcdftypetools-bin., guix-commits, 2024/06/03
- 55/72: gnu: Add texlive-seetexk-bin., guix-commits, 2024/06/03
- 56/72: gnu: Add texlive-ps2eps-bin., guix-commits, 2024/06/03
- 58/72: gnu: texlive-texdoctk: Fix runtime error., guix-commits, 2024/06/03
- 57/72: gnu: Add texlive-t1utils-bin., guix-commits, 2024/06/03
- 64/72: gnu: texlive-dviout-util: Build binaries separately., guix-commits, 2024/06/03