mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-01-24 19:27:44 +01:00
gnu: texlive-latex-frankenstein -> texlive-frankenstein.
* gnu/packages/tex.scm (texlive-frankenstein): New variable. (texlive-latex-frankenstein): Deprecate variable.
This commit is contained in:
parent
bd12824e56
commit
17cdf29a9c
1 changed files with 59 additions and 31 deletions
|
@ -6744,45 +6744,73 @@ (define-public texlive-letltxmacro
|
||||||
|
|
||||||
(define-deprecated-package texlive-latex-letltxmacro texlive-letltxmacro)
|
(define-deprecated-package texlive-latex-letltxmacro texlive-letltxmacro)
|
||||||
|
|
||||||
(define-public texlive-latex-frankenstein
|
(define-public texlive-frankenstein
|
||||||
(package
|
(package
|
||||||
(name "texlive-latex-frankenstein")
|
(name "texlive-frankenstein")
|
||||||
(version (number->string %texlive-revision))
|
(version (number->string %texlive-revision))
|
||||||
(source (origin
|
(source (texlive-origin
|
||||||
(method svn-fetch)
|
name version
|
||||||
(uri (svn-reference (url (string-append
|
(list "bibtex/bib/frankenstein/"
|
||||||
"svn://www.tug.org/texlive/tags/"
|
"bibtex/bst/frankenstein/"
|
||||||
%texlive-tag "/Master/texmf-dist/"
|
"doc/latex/frankenstein/"
|
||||||
"/tex/latex/frankenstein"))
|
"source/latex/frankenstein/"
|
||||||
(revision %texlive-revision)))
|
"tex/latex/frankenstein/")
|
||||||
(file-name (string-append name "-" version "-checkout"))
|
(base32
|
||||||
(sha256
|
"1x494vl4acl0bhfshs96ap8j47xk4m4njfincfhg2b0mi7l5mj1i")))
|
||||||
(base32
|
(outputs '("out" "doc"))
|
||||||
"1zhdvn3zgdarlzfcyq8nzilvw0v0bqgl4m0y7j233cbqw8wiil4z"))))
|
(build-system texlive-build-system)
|
||||||
(build-system trivial-build-system)
|
|
||||||
(arguments
|
(arguments
|
||||||
`(#:modules ((guix build utils))
|
(list
|
||||||
#:builder (begin
|
#:modules '((guix build texlive-build-system)
|
||||||
(use-modules (guix build utils))
|
(guix build utils)
|
||||||
(let ((target (string-append (assoc-ref %outputs "out")
|
(ice-9 match))
|
||||||
"/share/texmf-dist/tex/latex/frankenstein")))
|
#:phases
|
||||||
(mkdir-p target)
|
#~(modify-phases %standard-phases
|
||||||
(copy-recursively (assoc-ref %build-inputs "source")
|
(add-after 'unpack 'set-TEXINPUTS
|
||||||
target) #t))))
|
;; The ".ins" files strip comments from ".sty", turning them into
|
||||||
|
;; faster ".stq" (and ".bsq") files. Unfortunately, the ".ins"
|
||||||
|
;; and the ".sty" files are not located in the same
|
||||||
|
;; directory. This phase extends TEXINPUTS so everyone can see
|
||||||
|
;; each other, including the docstrip utility.
|
||||||
|
(lambda* (#:key inputs #:allow-other-keys)
|
||||||
|
(setenv "TEXINPUTS"
|
||||||
|
(let ((cwd (getcwd)))
|
||||||
|
(string-append
|
||||||
|
cwd "/tex/latex/frankenstein//:"
|
||||||
|
cwd "/source/latex/frankenstein//:"
|
||||||
|
(string-join
|
||||||
|
(map (match-lambda ((_ . dir) dir)) inputs)
|
||||||
|
"//:"))))))
|
||||||
|
(add-before 'install 'install-faster-files
|
||||||
|
(lambda _
|
||||||
|
;; Replace ".sty" and ".bst" files with their faster
|
||||||
|
;; counterpart.
|
||||||
|
(copy-file "build/achicago.bsq"
|
||||||
|
"bibtex/bst/frankenstein/achicago.bst")
|
||||||
|
;; "build/tex/.../xxx.stq" -> "tex/.../xxx.sty"
|
||||||
|
(for-each (lambda (file)
|
||||||
|
(copy-file file
|
||||||
|
(string-append "tex/latex/frankenstein/"
|
||||||
|
(basename file ".stq")
|
||||||
|
".sty")))
|
||||||
|
(find-files "build/tex" "\\.stq$")))))))
|
||||||
|
(propagated-inputs
|
||||||
|
(list texlive-relsize texlive-tools texlive-url))
|
||||||
(home-page "https://ctan.org/pkg/frankenstein")
|
(home-page "https://ctan.org/pkg/frankenstein")
|
||||||
(synopsis "Collection of unrelated LaTeX packages")
|
(synopsis "Collection of LaTeX packages")
|
||||||
(description
|
(description
|
||||||
"Frankenstein is a bundle of LaTeX packages serving various purposes and a
|
"Frankenstein is a bundle of LaTeX packages serving various purposes
|
||||||
BibTeX bibliography style. The individual packages are: @code{abbrevs},
|
and a BibTeX bibliography style. The individual packages are: @code{abbrevs},
|
||||||
@code{achicago}, @code{achicago} bibstyle, @code{attrib}, @code{blkcntrl},
|
@code{achicago}, @code{achicago} bibstyle, @code{attrib}, @code{blkcntrl},
|
||||||
@code{compsci}, @code{dialogue}, @code{lips}, @code{moredefs}, @code{newclude},
|
@code{compsci}, @code{dialogue}, @code{lips}, @code{moredefs},
|
||||||
@code{slemph} and @code{titles}. Note: The installation follows the suboptimal
|
@code{newclude}, @code{slemph} and @code{titles}.")
|
||||||
``Quick and dirty'' recipe, rendering some features unavailable.")
|
;; README mentions an unspecified version of GNU GPL and points to
|
||||||
;; README mentions an unspecified version of GNU GPL and points to COPYING,
|
;; COPYING, which is missing. However, the individual files mention LPPL
|
||||||
;; which is missing. However, the individual files mention LPPL 1.2 or
|
;; 1.2 or later.
|
||||||
;; later.
|
|
||||||
(license license:lppl1.2+)))
|
(license license:lppl1.2+)))
|
||||||
|
|
||||||
|
(define-deprecated-package texlive-latex-frankenstein texlive-frankenstein)
|
||||||
|
|
||||||
(define-public texlive-listings
|
(define-public texlive-listings
|
||||||
(let ((template
|
(let ((template
|
||||||
(simple-texlive-package
|
(simple-texlive-package
|
||||||
|
|
Loading…
Reference in a new issue