gnu: texlive-babel: Refresh package definition.
* gnu/packages/tex.scm (texlive-babel): Remove SIMPLE-TEXLIVE-PACKAGE call.
This commit is contained in:
parent
c79a2f0f50
commit
25ee881ba3
1 changed files with 36 additions and 36 deletions
|
@ -4619,48 +4619,48 @@ distribution.")
|
||||||
(define-deprecated-package texlive-latex-amscls texlive-amscls)
|
(define-deprecated-package texlive-latex-amscls texlive-amscls)
|
||||||
|
|
||||||
(define-public texlive-babel
|
(define-public texlive-babel
|
||||||
(let ((template (simple-texlive-package
|
(package
|
||||||
"texlive-babel"
|
(name "texlive-babel")
|
||||||
(list "/doc/latex/babel/"
|
(version (number->string %texlive-revision))
|
||||||
"/source/latex/babel/"
|
(source (texlive-origin
|
||||||
"/makeindex/babel/")
|
name version
|
||||||
(base32
|
(list "doc/latex/babel/"
|
||||||
"0qr5vjp79g1c1l6k173qhfdfabgbky73wymzhm56pazx4a8r08wz"))))
|
"makeindex/babel/"
|
||||||
(package
|
"source/latex/babel/"
|
||||||
(inherit template)
|
"tex/generic/babel/")
|
||||||
(arguments
|
(base32
|
||||||
(substitute-keyword-arguments (package-arguments template)
|
"00gl0b55hg912bmrqkpzn5rfyds7hcbsfwdlsmqishq5gjp6pnr0")))
|
||||||
((#:tex-directory _ #t)
|
(outputs '("out" "doc"))
|
||||||
"generic/babel")
|
(build-system texlive-build-system)
|
||||||
((#:phases phases)
|
(arguments
|
||||||
`(modify-phases ,phases
|
(list
|
||||||
;; This package tries to produce babel.aux twice but refuses to
|
#:phases
|
||||||
;; overwrite the first one.
|
#~(modify-phases %standard-phases
|
||||||
(add-before 'build 'fix-ins
|
;; This package tries to produce babel.aux twice but refuses to
|
||||||
(lambda _
|
;; overwrite the first one.
|
||||||
(substitute* "source/latex/babel/babel.ins"
|
(add-before 'build 'fix-ins
|
||||||
(("askonceonly") "askforoverwritefalse"))))
|
(lambda _
|
||||||
(add-after 'install 'install-locales
|
(substitute* "source/latex/babel/babel.ins"
|
||||||
(lambda* (#:key outputs #:allow-other-keys)
|
(("askonceonly") "askforoverwritefalse"))))
|
||||||
(let ((locale-directory
|
(add-before 'build 'generate-locales
|
||||||
(string-append (assoc-ref outputs "out")
|
(lambda _
|
||||||
"/share/texmf-dist/tex/generic/babel/locale/")))
|
(let ((locale-directory (string-append (getcwd) "/build/locale")))
|
||||||
(mkdir-p locale-directory)
|
(mkdir-p locale-directory)
|
||||||
(invoke "unzip" "locale.zip" "-d"
|
(with-directory-excursion "source/latex/babel/"
|
||||||
locale-directory))))))))
|
(invoke "unzip" "locale.zip" "-d" locale-directory))))))))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
(list unzip))
|
(list unzip))
|
||||||
(home-page "https://www.ctan.org/pkg/babel")
|
(home-page "https://www.ctan.org/pkg/babel")
|
||||||
(synopsis "Multilingual support for Plain TeX or LaTeX")
|
(synopsis "Multilingual support for Plain TeX or LaTeX")
|
||||||
(description
|
(description
|
||||||
"The package manages culturally-determined typographical (and other)
|
"The package manages culturally-determined typographical (and other)
|
||||||
rules, and hyphenation patterns for a wide range of languages. A document may
|
rules, and hyphenation patterns for a wide range of languages. A document may
|
||||||
select a single language to be supported, or it may select several, in which
|
select a single language to be supported, or it may select several, in which
|
||||||
case the document may switch from one language to another in a variety of
|
case the document may switch from one language to another in a variety of
|
||||||
ways. Babel uses contributed configuration files that provide the detail of
|
ways. Babel uses contributed configuration files that provide the detail of
|
||||||
what has to be done for each language. Users of XeTeX are advised to use the
|
what has to be done for each language. Users of XeTeX are advised to use the
|
||||||
polyglossia package rather than Babel.")
|
polyglossia package rather than Babel.")
|
||||||
(license license:lppl1.3+))))
|
(license license:lppl1.3+)))
|
||||||
|
|
||||||
(define-deprecated-package texlive-latex-babel texlive-babel)
|
(define-deprecated-package texlive-latex-babel texlive-babel)
|
||||||
|
|
||||||
|
|
Reference in a new issue