[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
52/73: gnu: Add texlive-dvisvgm-bin.
From: |
guix-commits |
Subject: |
52/73: gnu: Add texlive-dvisvgm-bin. |
Date: |
Tue, 4 Jun 2024 16:40:07 -0400 (EDT) |
ngz pushed a commit to branch tex-team
in repository guix.
commit a64f1d35b36cf9f5b123674110b7899c7cd2703b
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 c2877d78dd..1a89971b30 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)
@@ -35175,6 +35176,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)")
@@ -35188,6 +35190,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")
- 27/73: gnu: Add texlive-autosp-bin., (continued)
- 27/73: gnu: Add texlive-autosp-bin., guix-commits, 2024/06/04
- 28/73: gnu: Add texlive-gregoriotex-bin., guix-commits, 2024/06/04
- 30/73: gnu: Add texlive-velthuis-bin., guix-commits, 2024/06/04
- 33/73: gnu: Add texlive-dvips-bin., guix-commits, 2024/06/04
- 36/73: gnu: Add texlive-xdvi-bin., guix-commits, 2024/06/04
- 37/73: gnu: Add texlive-tpic2pdftex-bin., guix-commits, 2024/06/04
- 38/73: gnu: Add texlive-ttfutils-bin., guix-commits, 2024/06/04
- 42/73: gnu: Add texlive-metapost-bin., guix-commits, 2024/06/04
- 45/73: gnu: Add texlive-chktex-bin., guix-commits, 2024/06/04
- 47/73: gnu: Add texlive-dtl-bin., guix-commits, 2024/06/04
- 52/73: gnu: Add texlive-dvisvgm-bin.,
guix-commits <=
- 50/73: gnu: Add texlive-dviljk-bin., guix-commits, 2024/06/04
- 49/73: gnu: Add texlive-dvidvi-bin., guix-commits, 2024/06/04
- 60/73: gnu: texlive-kpathsea: Propagate the binaries., guix-commits, 2024/06/04
- 59/73: gnu: Add texlive-xpdfopen-bin., guix-commits, 2024/06/04
- 35/73: gnu: Add texlive-tex4ht-bin., guix-commits, 2024/06/04
- 40/73: gnu: Add texlive-gsftopk-bin., guix-commits, 2024/06/04
- 70/73: gnu: texlive importer: Propagate binaries when necessary., guix-commits, 2024/06/04
- 51/73: gnu: Add texlive-dvipng-bin., guix-commits, 2024/06/04
- 62/73: gnu: Add texlive-luajittex-bin., guix-commits, 2024/06/04
- 69/73: gnu: texlive-xindy: Build binary separately., guix-commits, 2024/06/04