mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-02-01 23:36:35 +01:00
gnu: texlive-xindy: Fix package.
This change reverts 81718f27fd0153c8637b0ce13fe5540c0085988c. * gnu/packages/tex.scm (texlive-xindy)[build-system]: Use GNU-BUILD-SYSTEM. [arguments]: Derive from texlive-libkpathsea's. Add a custom install phase.
This commit is contained in:
parent
1dc7971429
commit
6f48c2b28a
1 changed files with 36 additions and 25 deletions
|
@ -22442,40 +22442,51 @@ (define-public texlive-xifthen
|
||||||
|
|
||||||
(define-public texlive-xindy
|
(define-public texlive-xindy
|
||||||
(package
|
(package
|
||||||
|
;; Texmf tree in TeX Live is incomplete, as it doesn't include
|
||||||
|
;; "xindy.mem", so it is not possible to use `texlive-origin'. This file
|
||||||
|
;; isn't build by default by `texlive-bin' either. Build it specially
|
||||||
|
;; from `texlive-bin' source instead.
|
||||||
|
(inherit texlive-libkpathsea)
|
||||||
(name "texlive-xindy")
|
(name "texlive-xindy")
|
||||||
(version (number->string %texlive-revision))
|
(version (number->string %texlive-revision))
|
||||||
(source (texlive-origin
|
|
||||||
name version
|
|
||||||
(list "doc/man/man1/tex2xindy.1"
|
|
||||||
"doc/man/man1/tex2xindy.man1.pdf"
|
|
||||||
"doc/man/man1/texindy.1"
|
|
||||||
"doc/man/man1/texindy.man1.pdf"
|
|
||||||
"doc/man/man1/xindy.1"
|
|
||||||
"doc/man/man1/xindy.man1.pdf"
|
|
||||||
"doc/xindy/"
|
|
||||||
"scripts/xindy/"
|
|
||||||
"xindy/")
|
|
||||||
(base32
|
|
||||||
"12j2bi0wwp1hyxr1427hhigqmhsd1fyg90bvghxkm1qck85r24vf")))
|
|
||||||
(outputs '("out" "doc"))
|
(outputs '("out" "doc"))
|
||||||
(build-system texlive-build-system)
|
(build-system gnu-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
(list
|
(substitute-keyword-arguments (package-arguments texlive-libkpathsea)
|
||||||
#:link-scripts #~(list "texindy.pl" "xindy.pl")
|
((#:out-of-source? _ #t) #t)
|
||||||
#:phases
|
((#:configure-flags flags)
|
||||||
#~(modify-phases %standard-phases
|
#~(cons "--enable-xindy" (delete "--enable-kpathsea" #$flags)))
|
||||||
(add-after 'unpack 'patch-inputs
|
((#:phases _)
|
||||||
(lambda* (#:key inputs #:allow-other-keys)
|
#~(modify-phases %standard-phases
|
||||||
(with-directory-excursion "scripts/xindy/"
|
(replace 'install
|
||||||
|
(lambda _
|
||||||
|
(with-directory-excursion "utils/xindy/"
|
||||||
|
(invoke "make")
|
||||||
|
(mkdir-p (string-append #$output "/bin"))
|
||||||
|
(invoke "make" "install")
|
||||||
|
(let ((out (string-append #$output "/share"))
|
||||||
|
(doc (string-append #$output:doc "/share/texmf-dist")))
|
||||||
|
(mkdir-p doc)
|
||||||
|
(with-directory-excursion doc
|
||||||
|
(rename-file (string-append out "/texmf-dist/doc") "doc")
|
||||||
|
(rename-file (string-append out "/man") "doc/man"))))))
|
||||||
|
(add-after 'install 'patch-clisp-location
|
||||||
|
(lambda* (#:key inputs #:allow-other-keys)
|
||||||
;; The scripts are encoded in ISO-8859-1 (or iso-latin-1).
|
;; The scripts are encoded in ISO-8859-1 (or iso-latin-1).
|
||||||
(with-fluids ((%default-port-encoding "ISO-8859-1"))
|
(with-fluids ((%default-port-encoding "ISO-8859-1"))
|
||||||
(substitute* (list "texindy.pl" "xindy.pl")
|
(substitute* (find-files #$output "xindy\\.pl$")
|
||||||
(("our \\$clisp = .*")
|
(("our \\$clisp = .*")
|
||||||
(format #f "our $clisp = ~s;~%"
|
(format #f "our $clisp = ~s;~%"
|
||||||
(search-input-file inputs "/bin/clisp")))
|
(search-input-file inputs "/bin/clisp")))))))))))
|
||||||
(("/usr/bin/env perl")
|
(native-inputs
|
||||||
(search-input-file inputs "/bin/perl"))))))))))
|
(list clisp
|
||||||
|
(texlive-updmap.cfg
|
||||||
|
(list texlive-cbfonts-fd
|
||||||
|
texlive-cyrillic
|
||||||
|
texlive-greek-fontenc
|
||||||
|
texlive-lh))))
|
||||||
(inputs (list clisp perl))
|
(inputs (list clisp perl))
|
||||||
|
(native-search-paths '())
|
||||||
(home-page "https://ctan.org/pkg/xindy")
|
(home-page "https://ctan.org/pkg/xindy")
|
||||||
(synopsis "General-purpose index processor")
|
(synopsis "General-purpose index processor")
|
||||||
(description
|
(description
|
||||||
|
|
Loading…
Reference in a new issue