mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-25 13:58:15 -05:00
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.
This commit is contained in:
parent
f1b21bcfb1
commit
36d7acf003
4 changed files with 29 additions and 61 deletions
|
@ -912,11 +912,10 @@ (define texinfo-profile
|
||||||
sed
|
sed
|
||||||
tar
|
tar
|
||||||
texinfo
|
texinfo
|
||||||
texlive-base
|
(texlive-updmap.cfg
|
||||||
texlive-bin ;for GUIX_TEXMF
|
(list texlive-ec
|
||||||
texlive-epsf
|
texlive-epsf
|
||||||
texlive-ec
|
texlive-texinfo)))))))
|
||||||
texlive-texinfo)))))
|
|
||||||
|
|
||||||
(define build
|
(define build
|
||||||
(with-imported-modules '((guix build utils))
|
(with-imported-modules '((guix build utils))
|
||||||
|
|
|
@ -4837,9 +4837,8 @@ (define-public r-spams
|
||||||
(list hevea
|
(list hevea
|
||||||
perl
|
perl
|
||||||
swig
|
swig
|
||||||
;;texlive-aeguill ;;FIXME: package me!
|
(texlive-updmap.cfg
|
||||||
texlive-base
|
(list texlive-aeguill texlive-jknapltx))))
|
||||||
texlive-jknapltx))
|
|
||||||
(propagated-inputs
|
(propagated-inputs
|
||||||
(list r-lattice
|
(list r-lattice
|
||||||
r-matrix))
|
r-matrix))
|
||||||
|
|
|
@ -4135,52 +4135,6 @@ (define-public texlive-psnfss
|
||||||
|
|
||||||
(define-deprecated-package texlive-latex-psnfss texlive-psnfss)
|
(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
|
(define-public texlive-default-updmap.cfg
|
||||||
(origin
|
(origin
|
||||||
(method url-fetch)
|
(method url-fetch)
|
||||||
|
@ -4193,15 +4147,29 @@ (define-public texlive-default-updmap.cfg
|
||||||
(base32
|
(base32
|
||||||
"0zhpyld702im6352fwp41f2hgfkpj2b4j1kfsjqbkijlcmvb6w2c"))))
|
"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
|
(define-public texlive-updmap.cfg
|
||||||
(lambda* (#:optional (packages '()))
|
(lambda* (#:optional (packages '()))
|
||||||
"Return a 'texlive-updmap.cfg' package which contains the fonts map
|
"Return a 'texlive-updmap.cfg' package which contains the fonts map
|
||||||
configuration of a base set of packages plus PACKAGES."
|
configuration of a base set of packages plus PACKAGES."
|
||||||
(let ((default-packages (match (package-propagated-inputs texlive-base)
|
(let ((default-packages
|
||||||
(((labels packages) ...) 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
|
(package
|
||||||
(version (number->string %texlive-revision))
|
(version (number->string %texlive-revision))
|
||||||
(source (origin
|
(source (origin
|
||||||
|
@ -13082,6 +13050,8 @@ (define-public texlive-scheme-basic
|
||||||
@code{collection-latex}.")
|
@code{collection-latex}.")
|
||||||
(license (license:fsf-free "https://www.tug.org/texlive/copying.html"))))
|
(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
|
;;; 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
|
;;; of a merge conflict, place them above by existing packages with similar
|
||||||
|
|
|
@ -1868,8 +1868,8 @@ (define build
|
||||||
(invoke mktexlsr b)
|
(invoke mktexlsr b)
|
||||||
(install-file (string-append b "/ls-R") a))))))
|
(install-file (string-append b "/ls-R") a))))))
|
||||||
|
|
||||||
(mlet %store-monad ((texlive-base (manifest-lookup-package manifest "texlive-base")))
|
(with-monad %store-monad
|
||||||
(if (and texlive-base (pair? texlive-inputs))
|
(if (pair? texlive-inputs)
|
||||||
(gexp->derivation "texlive-font-maps" build
|
(gexp->derivation "texlive-font-maps" build
|
||||||
#:substitutable? #f
|
#:substitutable? #f
|
||||||
#:local-build? #t
|
#:local-build? #t
|
||||||
|
|
Loading…
Reference in a new issue