[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
455/458: gnu: Deprecate texlive-base in favor of texlive-scheme-basic.
From: |
guix-commits |
Subject: |
455/458: gnu: Deprecate texlive-base in favor of texlive-scheme-basic. |
Date: |
Wed, 14 Jun 2023 05:23:31 -0400 (EDT) |
ngz pushed a commit to branch tex-team-next
in repository guix.
commit 28d07ddf51ee6f54408f1aacc03f85817856c992
Author: Nicolas Goaziou <mail@nicolasgoaziou.fr>
AuthorDate: Sat Jun 10 09:40:38 2023 +0200
gnu: Deprecate texlive-base in favor of texlive-scheme-basic.
* gnu/packages/tex.scm (texlive-base): Deprecate variable.
(texlive-updmap.cfg): Use default packages from now deprecated TEXLIVE-BASE.
Also remove already implemented TODO.
* doc/build.scm (pdf-manual):
* gnu/packages/statistics.scm: Replace TEXLIVE-BASE with call to
TEXLIVE-UPDMAP.CFG.
* guix/profiles.scm (texlive-font-maps): Trigger TeX Live hook whenever
a texlive package is included in the manifest.
---
doc/build.scm | 9 +++---
gnu/packages/statistics.scm | 5 ++--
gnu/packages/tex.scm | 72 +++++++++++++--------------------------------
guix/profiles.scm | 4 +--
4 files changed, 29 insertions(+), 61 deletions(-)
diff --git a/doc/build.scm b/doc/build.scm
index 9c0cc99404..577f900e20 100644
--- a/doc/build.scm
+++ b/doc/build.scm
@@ -912,11 +912,10 @@ makeinfo OPTIONS."
sed
tar
texinfo
- texlive-base
- texlive-bin ;for GUIX_TEXMF
- texlive-epsf
- texlive-ec
- texlive-texinfo)))))
+ (texlive-updmap.cfg
+ (list texlive-ec
+ texlive-epsf
+ texlive-texinfo)))))))
(define build
(with-imported-modules '((guix build utils))
diff --git a/gnu/packages/statistics.scm b/gnu/packages/statistics.scm
index 0d49ddb021..c1f79e383c 100644
--- a/gnu/packages/statistics.scm
+++ b/gnu/packages/statistics.scm
@@ -4642,9 +4642,8 @@ from within R.")
(list hevea
perl
swig
- ;;texlive-aeguill ;;FIXME: package me!
- texlive-base
- texlive-jknapltx))
+ (texlive-updmap.cfg
+ (list texlive-aeguill texlive-jknapltx))))
(propagated-inputs
(list r-lattice
r-matrix))
diff --git a/gnu/packages/tex.scm b/gnu/packages/tex.scm
index d32af7993a..cec0ca02f1 100644
--- a/gnu/packages/tex.scm
+++ b/gnu/packages/tex.scm
@@ -4135,52 +4135,6 @@ part of the LaTeX required set of packages.")
(define-deprecated-package texlive-latex-psnfss texlive-psnfss)
-;; For user profiles
-(define-public texlive-base
- (let ((default-packages
- (list texlive-bin
- texlive-cm
- texlive-cm-super ; to avoid bitmap fonts
- texlive-dvips
- texlive-fontname
- texlive-graphics
- texlive-kpathsea ;for mktex.opt
- texlive-latex-base
- texlive-latex-fonts
- texlive-metafont
- ;; LaTeX packages from the "required" set.
- texlive-amsmath
- texlive-amscls
- texlive-babel
- texlive-babel-english
- texlive-cyrillic
- texlive-psnfss
- texlive-tools)))
- (package
- (name "texlive-base")
- (version (number->string %texlive-revision))
- (source #f)
- (build-system trivial-build-system)
- (arguments
- '(#:builder
- (begin (mkdir (assoc-ref %outputs "out")))))
- (propagated-inputs
- (map (lambda (package)
- (list (package-name package) package))
- default-packages))
- (home-page (package-home-page texlive-bin))
- (synopsis "TeX Live base packages")
- (description "This is a very limited subset of the TeX Live distribution.
-It includes little more than the required set of LaTeX packages.")
- (license (fold (lambda (package result)
- (match (package-license package)
- ((lst ...)
- (append lst result))
- ((? license:license? license)
- (cons license result))))
- '()
- default-packages)))))
-
(define-public texlive-default-updmap.cfg
(origin
(method url-fetch)
@@ -4193,15 +4147,29 @@ It includes little more than the required set of LaTeX
packages.")
(base32
"0zhpyld702im6352fwp41f2hgfkpj2b4j1kfsjqbkijlcmvb6w2c"))))
-;;; TODO: Add a TeX Live profile hook computing fonts maps (and others?)
-;;; configuration from the packages in the profile, similar to what's done
-;;; below.
(define-public texlive-updmap.cfg
(lambda* (#:optional (packages '()))
"Return a 'texlive-updmap.cfg' package which contains the fonts map
configuration of a base set of packages plus PACKAGES."
- (let ((default-packages (match (package-propagated-inputs texlive-base)
- (((labels packages) ...) packages))))
+ (let ((default-packages
+ (list texlive-bin
+ texlive-cm
+ texlive-cm-super
+ texlive-dvips
+ texlive-fontname
+ texlive-graphics
+ texlive-kpathsea
+ texlive-latex-base
+ texlive-latex-fonts
+ texlive-metafont
+ ;; LaTeX packages from the "required" set.
+ texlive-amsmath
+ texlive-amscls
+ texlive-babel
+ texlive-babel-english
+ texlive-cyrillic
+ texlive-psnfss
+ texlive-tools)))
(package
(version (number->string %texlive-revision))
(source (origin
@@ -13082,6 +13050,8 @@ Computer Modern fonts. This scheme corresponds to
@code{collection-basic} and
@code{collection-latex}.")
(license (license:fsf-free "https://www.tug.org/texlive/copying.html"))))
+(define-deprecated-package texlive-base texlive-scheme-basic)
+
;;;
;;; Avoid adding new packages to the end of this file. To reduce the chances
;;; of a merge conflict, place them above by existing packages with similar
diff --git a/guix/profiles.scm b/guix/profiles.scm
index 6467e464c8..05fa5fa862 100644
--- a/guix/profiles.scm
+++ b/guix/profiles.scm
@@ -1868,8 +1868,8 @@ MANIFEST."
(invoke mktexlsr b)
(install-file (string-append b "/ls-R") a))))))
- (mlet %store-monad ((texlive-base (manifest-lookup-package manifest
"texlive-base")))
- (if (and texlive-base (pair? texlive-inputs))
+ (with-monad %store-monad
+ (if (pair? texlive-inputs)
(gexp->derivation "texlive-font-maps" build
#:substitutable? #f
#:local-build? #t
- 385/458: gnu: texlive-soulutf8: Remove SIMPLE-TEXLIVE-PACKAGE call., (continued)
- 385/458: gnu: texlive-soulutf8: Remove SIMPLE-TEXLIVE-PACKAGE call., guix-commits, 2023/06/14
- 399/458: gnu: texlive-eurosym: Fix build., guix-commits, 2023/06/14
- 417/458: gnu: texlive-texmf: Improve package style., guix-commits, 2023/06/14
- 411/458: guix: import: Fix Creative Common licenses in texlive importer., guix-commits, 2023/06/14
- 432/458: gnu: texlive-xetex: Create formats., guix-commits, 2023/06/14
- 436/458: guix: texlive importer: Fix build system and arguments for meta-packages., guix-commits, 2023/06/14
- 440/458: gnu: Add texlive-xdvi., guix-commits, 2023/06/14
- 448/458: gnu: Add texlive-pslatex., guix-commits, 2023/06/14
- 449/458: gnu: Add texlive-pspicture., guix-commits, 2023/06/14
- 451/458: gnu: Add texlive-scheme-basic., guix-commits, 2023/06/14
- 455/458: gnu: Deprecate texlive-base in favor of texlive-scheme-basic.,
guix-commits <=
- 145/458: gnu: texlive-sourcecodepro: Refresh package definition., guix-commits, 2023/06/14
- 147/458: gnu: texlive-sourcesanspro: Refresh package definition., guix-commits, 2023/06/14
- 213/458: gnu: texlive-pgf: Refresh package definition., guix-commits, 2023/06/14
- 225/458: gnu: Add texlive-xmltexconfig., guix-commits, 2023/06/14
- 228/458: gnu: texlive-psnfss: Refresh package definition., guix-commits, 2023/06/14
- 232/458: gnu: texlive-babel: Refresh package definition., guix-commits, 2023/06/14
- 244/458: gnu: texlive-fancyhdr: Refresh package definition., guix-commits, 2023/06/14
- 279/458: gnu: texlive-filecontents: Refresh package definition., guix-commits, 2023/06/14
- 283/458: gnu: texlive-xcolor: Refresh package definition., guix-commits, 2023/06/14
- 303/458: gnu: texlive-ddphonism: Refresh package definition., guix-commits, 2023/06/14