diff options
| author | Nicolas Goaziou <mail@nicolasgoaziou.fr> | 2023-06-10 09:40:38 +0200 |
|---|---|---|
| committer | Nicolas Goaziou <mail@nicolasgoaziou.fr> | 2023-07-18 18:15:02 +0200 |
| commit | 36d7acf003f14af2203f4a35cdf2a9801cb1c672 (patch) | |
| tree | c08733715012ad279fcad135b338303355d5b3f7 | |
| parent | f1b21bcfb1c024a2830d3e2817970bd9056a7756 (diff) | |
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.
| -rw-r--r-- | doc/build.scm | 9 | ||||
| -rw-r--r-- | gnu/packages/statistics.scm | 5 | ||||
| -rw-r--r-- | gnu/packages/tex.scm | 72 | ||||
| -rw-r--r-- | guix/profiles.scm | 4 |
4 files changed, 29 insertions, 61 deletions
diff --git a/doc/build.scm b/doc/build.scm index 9c0cc994047..577f900e20e 100644 --- a/doc/build.scm +++ b/doc/build.scm | |||
| @@ -912,11 +912,10 @@ makeinfo OPTIONS." | |||
| 912 | sed | 912 | sed |
| 913 | tar | 913 | tar |
| 914 | texinfo | 914 | texinfo |
| 915 | texlive-base | 915 | (texlive-updmap.cfg |
| 916 | texlive-bin ;for GUIX_TEXMF | 916 | (list texlive-ec |
| 917 | texlive-epsf | 917 | texlive-epsf |
| 918 | texlive-ec | 918 | texlive-texinfo))))))) |
| 919 | texlive-texinfo))))) | ||
| 920 | 919 | ||
| 921 | (define build | 920 | (define build |
| 922 | (with-imported-modules '((guix build utils)) | 921 | (with-imported-modules '((guix build utils)) |
diff --git a/gnu/packages/statistics.scm b/gnu/packages/statistics.scm index 11b57ae57af..a25b8d2cb37 100644 --- a/gnu/packages/statistics.scm +++ b/gnu/packages/statistics.scm | |||
| @@ -4837,9 +4837,8 @@ from within R.") | |||
| 4837 | (list hevea | 4837 | (list hevea |
| 4838 | perl | 4838 | perl |
| 4839 | swig | 4839 | swig |
| 4840 | ;;texlive-aeguill ;;FIXME: package me! | 4840 | (texlive-updmap.cfg |
| 4841 | texlive-base | 4841 | (list texlive-aeguill texlive-jknapltx)))) |
| 4842 | texlive-jknapltx)) | ||
| 4843 | (propagated-inputs | 4842 | (propagated-inputs |
| 4844 | (list r-lattice | 4843 | (list r-lattice |
| 4845 | r-matrix)) | 4844 | r-matrix)) |
diff --git a/gnu/packages/tex.scm b/gnu/packages/tex.scm index 63b835c6bb6..19272dbbc50 100644 --- a/gnu/packages/tex.scm +++ b/gnu/packages/tex.scm | |||
| @@ -4135,52 +4135,6 @@ part of the LaTeX required set of packages.") | |||
| 4135 | 4135 | ||
| 4136 | (define-deprecated-package texlive-latex-psnfss texlive-psnfss) | 4136 | (define-deprecated-package texlive-latex-psnfss texlive-psnfss) |
| 4137 | 4137 | ||
| 4138 | ;; For user profiles | ||
| 4139 | (define-public texlive-base | ||
| 4140 | (let ((default-packages | ||
| 4141 | (list texlive-bin | ||
| 4142 | texlive-cm | ||
| 4143 | texlive-cm-super ; to avoid bitmap fonts | ||
| 4144 | texlive-dvips | ||
| 4145 | texlive-fontname | ||
| 4146 | texlive-graphics | ||
| 4147 | texlive-kpathsea ;for mktex.opt | ||
| 4148 | texlive-latex-base | ||
| 4149 | texlive-latex-fonts | ||
| 4150 | texlive-metafont | ||
| 4151 | ;; LaTeX packages from the "required" set. | ||
| 4152 | texlive-amsmath | ||
| 4153 | texlive-amscls | ||
| 4154 | texlive-babel | ||
| 4155 | texlive-babel-english | ||
| 4156 | texlive-cyrillic | ||
| 4157 | texlive-psnfss | ||
| 4158 | texlive-tools))) | ||
| 4159 | (package | ||
| 4160 | (name "texlive-base") | ||
| 4161 | (version (number->string %texlive-revision)) | ||
| 4162 | (source #f) | ||
| 4163 | (build-system trivial-build-system) | ||
| 4164 | (arguments | ||
| 4165 | '(#:builder | ||
| 4166 | (begin (mkdir (assoc-ref %outputs "out"))))) | ||
| 4167 | (propagated-inputs | ||
| 4168 | (map (lambda (package) | ||
| 4169 | (list (package-name package) package)) | ||
| 4170 | default-packages)) | ||
| 4171 | (home-page (package-home-page texlive-bin)) | ||
| 4172 | (synopsis "TeX Live base packages") | ||
| 4173 | (description "This is a very limited subset of the TeX Live distribution. | ||
| 4174 | It includes little more than the required set of LaTeX packages.") | ||
| 4175 | (license (fold (lambda (package result) | ||
| 4176 | (match (package-license package) | ||
| 4177 | ((lst ...) | ||
| 4178 | (append lst result)) | ||
| 4179 | ((? license:license? license) | ||
| 4180 | (cons license result)))) | ||
| 4181 | '() | ||
| 4182 | default-packages))))) | ||
| 4183 | |||
| 4184 | (define-public texlive-default-updmap.cfg | 4138 | (define-public texlive-default-updmap.cfg |
| 4185 | (origin | 4139 | (origin |
| 4186 | (method url-fetch) | 4140 | (method url-fetch) |
| @@ -4193,15 +4147,29 @@ It includes little more than the required set of LaTeX packages.") | |||
| 4193 | (base32 | 4147 | (base32 |
| 4194 | "0zhpyld702im6352fwp41f2hgfkpj2b4j1kfsjqbkijlcmvb6w2c")))) | 4148 | "0zhpyld702im6352fwp41f2hgfkpj2b4j1kfsjqbkijlcmvb6w2c")))) |
| 4195 | 4149 | ||
| 4196 | ;;; TODO: Add a TeX Live profile hook computing fonts maps (and others?) | ||
| 4197 | ;;; configuration from the packages in the profile, similar to what's done | ||
| 4198 | ;;; below. | ||
| 4199 | (define-public texlive-updmap.cfg | 4150 | (define-public texlive-updmap.cfg |
| 4200 | (lambda* (#:optional (packages '())) | 4151 | (lambda* (#:optional (packages '())) |
| 4201 | "Return a 'texlive-updmap.cfg' package which contains the fonts map | 4152 | "Return a 'texlive-updmap.cfg' package which contains the fonts map |
| 4202 | configuration of a base set of packages plus PACKAGES." | 4153 | configuration of a base set of packages plus PACKAGES." |
| 4203 | (let ((default-packages (match (package-propagated-inputs texlive-base) | 4154 | (let ((default-packages |
| 4204 | (((labels packages) ...) packages)))) | 4155 | (list texlive-bin |
| 4156 | texlive-cm | ||
| 4157 | texlive-cm-super | ||
| 4158 | texlive-dvips | ||
| 4159 | texlive-fontname | ||
| 4160 | texlive-graphics | ||
| 4161 | texlive-kpathsea | ||
| 4162 | texlive-latex-base | ||
| 4163 | texlive-latex-fonts | ||
| 4164 | texlive-metafont | ||
| 4165 | ;; LaTeX packages from the "required" set. | ||
| 4166 | texlive-amsmath | ||
| 4167 | texlive-amscls | ||
| 4168 | texlive-babel | ||
| 4169 | texlive-babel-english | ||
| 4170 | texlive-cyrillic | ||
| 4171 | texlive-psnfss | ||
| 4172 | texlive-tools))) | ||
| 4205 | (package | 4173 | (package |
| 4206 | (version (number->string %texlive-revision)) | 4174 | (version (number->string %texlive-revision)) |
| 4207 | (source (origin | 4175 | (source (origin |
| @@ -13082,6 +13050,8 @@ Computer Modern fonts. This scheme corresponds to @code{collection-basic} and | |||
| 13082 | @code{collection-latex}.") | 13050 | @code{collection-latex}.") |
| 13083 | (license (license:fsf-free "https://www.tug.org/texlive/copying.html")))) | 13051 | (license (license:fsf-free "https://www.tug.org/texlive/copying.html")))) |
| 13084 | 13052 | ||
| 13053 | (define-deprecated-package texlive-base texlive-scheme-basic) | ||
| 13054 | |||
| 13085 | ;;; | 13055 | ;;; |
| 13086 | ;;; Avoid adding new packages to the end of this file. To reduce the chances | 13056 | ;;; Avoid adding new packages to the end of this file. To reduce the chances |
| 13087 | ;;; of a merge conflict, place them above by existing packages with similar | 13057 | ;;; of a merge conflict, place them above by existing packages with similar |
diff --git a/guix/profiles.scm b/guix/profiles.scm index 6467e464c89..05fa5fa862e 100644 --- a/guix/profiles.scm +++ b/guix/profiles.scm | |||
| @@ -1868,8 +1868,8 @@ MANIFEST." | |||
| 1868 | (invoke mktexlsr b) | 1868 | (invoke mktexlsr b) |
| 1869 | (install-file (string-append b "/ls-R") a)))))) | 1869 | (install-file (string-append b "/ls-R") a)))))) |
| 1870 | 1870 | ||
| 1871 | (mlet %store-monad ((texlive-base (manifest-lookup-package manifest "texlive-base"))) | 1871 | (with-monad %store-monad |
| 1872 | (if (and texlive-base (pair? texlive-inputs)) | 1872 | (if (pair? texlive-inputs) |
| 1873 | (gexp->derivation "texlive-font-maps" build | 1873 | (gexp->derivation "texlive-font-maps" build |
| 1874 | #:substitutable? #f | 1874 | #:substitutable? #f |
| 1875 | #:local-build? #t | 1875 | #:local-build? #t |
