gnu: texlive-hyphen-package: Remove SIMPLE-TEXLIVE-PACKAGE call.

* gnu/packages/tex.scm (texlive-hyphen-package): Remove SIMPLE-TEXLIVE-PACKAGE call.
This commit is contained in:
Nicolas Goaziou 2023-05-18 10:54:09 +02:00
parent 8c0d071dfc
commit 6a09a6c5eb
No known key found for this signature in database
GPG key ID: DA00B4F048E92F2D

View file

@ -184,19 +184,21 @@ (define hyph-utf8-scripts
(define (texlive-hyphen-package name code locations hash)
"Return a TeX Live hyphenation package with the given NAME, using source
files from LOCATIONS with expected checksum HASH. CODE is not currently in use."
(let ((parent (simple-texlive-package
name locations hash #:trivial? #t)))
files from LOCATIONS with expected checksum HASH. CODE is not currently in
use."
(package
(inherit parent)
(name name)
(version (number->string %texlive-revision))
(source (texlive-origin name version location hash))
(build-system texlive-build-system)
(arguments
(substitute-keyword-arguments (package-arguments parent)
((#:phases phases)
`(modify-phases ,phases
(list
#:texlive-latex-base #f
#:phases
#~(modify-phases %standard-phases
(replace 'build
(lambda* (#:key inputs outputs #:allow-other-keys)
(let* ((out (assoc-ref outputs "out"))
(root (string-append out "/share/texmf-dist"))
(lambda* (#:key inputs #:allow-other-keys)
(let* ((root (string-append #$output "/share/texmf-dist"))
(patterns
(string-append root "/tex/generic/hyph-utf8/patterns/txt/"))
(loaders
@ -244,10 +246,13 @@ (define (texlive-hyphen-package name code locations hash)
(substitute* "generate-ptex-patterns.rb"
(("File\\.join\\(PATH::PTEX")
(string-append "File.join(\"" ptex "\"")))
(invoke "ruby" "generate-ptex-patterns.rb")))))))))
(invoke "ruby" "generate-ptex-patterns.rb"))))))))
(native-inputs
(list ruby-2.7 ruby-hydra-minimal/pinned hyph-utf8-scripts))
(home-page "https://ctan.org/pkg/hyph-utf8"))))
(list hyph-utf8-scripts ruby-2.7 ruby-hydra-minimal/pinned))
(home-page "https://ctan.org/pkg/hyph-utf8")
(synopsis #f)
(description #f)
(license #f)))
(define texlive-extra-src
(origin