Archived
1
0
Fork 0

gnu: texlive-xindy: Use TEXLIVE-BUILD-SYSTEM and related tools.

* gnu/packages/tex.scm (texlive-xindy)[source]: Use TEXLIVE-ORIGIN.
[build-system]: Use TEXLIVE-BUILD-SYSTEM.
[arguments]<#:phases>: Also set Perl executable location in scripts.
This commit is contained in:
Nicolas Goaziou 2023-05-20 09:45:22 +02:00
parent 64c3ae85b7
commit 68d9c5da48
No known key found for this signature in database
GPG key ID: DA00B4F048E92F2D

View file

@ -12142,49 +12142,46 @@ handle complex tests.")
(define-public texlive-xindy (define-public texlive-xindy
(package (package
(name "texlive-xindy") (name "texlive-xindy")
(version "2.5.1") (version (number->string %texlive-revision))
(source (origin (source (texlive-origin
(method url-fetch) name version
(uri (string-append "mirror://ctan/indexing/xindy/base/xindy-" (list "doc/man/man1/tex2xindy.1"
version ".tar.gz")) "doc/man/man1/tex2xindy.man1.pdf"
(sha256 "doc/man/man1/texindy.1"
(base32 "doc/man/man1/texindy.man1.pdf"
"0hxsx4zw19kmixkmrln17sxgg1ln4pfp4lpfn5v5fyr1nwfyk3ic")))) "doc/man/man1/xindy.1"
(build-system gnu-build-system) "doc/man/man1/xindy.man1.pdf"
"doc/xindy/"
"scripts/xindy/"
"xindy/")
(base32
"0rgzckyy6w4rmgxins5kakllkpn2hrccaps7lwb8h2nzvd29yj3m")))
(outputs '("out" "doc"))
(build-system texlive-build-system)
(arguments (arguments
(list (list
#:configure-flags #~(list "--enable-docs")
#:phases #:phases
#~(modify-phases %standard-phases #~(modify-phases %standard-phases
(add-after 'unpack 'patch-clisp (add-after 'unpack 'patch-inputs
(lambda* (#:key inputs #:allow-other-keys) (lambda* (#:key inputs #:allow-other-keys)
;; The xindy.in file is encoded in ISO-8859-1 (or iso-latin-1). (with-directory-excursion "scripts/xindy/"
(with-fluids ((%default-port-encoding "ISO-8859-1")) ;; The scripts are encoded in ISO-8859-1 (or iso-latin-1).
(substitute* "user-commands/xindy.in" (with-fluids ((%default-port-encoding "ISO-8859-1"))
(("(our \\$clisp = ).*" _ head) (substitute* (list "texindy.pl" "xindy.pl")
(format #f "our $clisp = ~s;~%" (("our \\$clisp = .*")
(search-input-file inputs "bin/clisp")))))))))) (format #f "our $clisp = ~s;~%"
(native-inputs (list clisp (search-input-file inputs "/bin/clisp")))
glibc-locales (("/usr/bin/env perl")
perl (search-input-file inputs "/bin/perl"))))))))))
texlive-bin (inputs (list clisp perl))
texlive-greek-fontenc (home-page "https://ctan.org/pkg/xindy")
texlive-hyperref
texlive-latex-base
texlive-cyrillic
texlive-geometry
(texlive-updmap.cfg ;fonts
(list texlive-cbfonts
texlive-lh
texlive-jknapltx))))
(inputs (list clisp perl)) ;used at run time
(home-page "https://www.ctan.org/pkg/xindy")
(synopsis "General-purpose index processor") (synopsis "General-purpose index processor")
(description "Xindy was developed after an impasse had been encountered in (description
the attempt to complete internationalisation of @command{makeindex}. Xindy "Xindy was developed after an impasse had been encountered in the attempt
can be used to process indexes for documents marked up using (La)TeX, Nroff to complete internationalisation of @command{makeindex}. Xindy can be used to
family and SGML-based languages. Xindy is highly configurable, both in markup process indexes for documents marked up using (La)TeX, Nroff family and
terms and in terms of the collating order of the text being processed.") SGML-based languages. Xindy is highly configurable, both in markup terms and
in terms of the collating order of the text being processed.")
(license license:gpl2+))) (license license:gpl2+)))
(define-public texlive-nth (define-public texlive-nth