1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
| | ;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2024 Liliana Marie Prikler <liliana.prikler@gmail.com>
;;;
;;; This file is part of GNU Guix.
;;;
;;; GNU Guix is free software; you can redistribute it and/or modify it
;;; under the terms of the GNU General Public License as published by
;;; the Free Software Foundation; either version 3 of the License, or (at
;;; your option) any later version.
;;;
;;; GNU Guix is distributed in the hope that it will be useful, but
;;; WITHOUT ANY WARRANTY; without even the implied warranty of
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
;;; GNU General Public License for more details.
;;;
;;; You should have received a copy of the GNU General Public License
;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
(define-module (gnu packages perl-tex)
#:use-module ((guix licenses) #:prefix license:)
#:use-module (guix packages)
#:use-module (guix gexp)
#:use-module (guix download)
#:use-module (guix build-system perl)
#:use-module (gnu packages)
#:use-module (gnu packages bash)
#:use-module (gnu packages base)
#:use-module (gnu packages mail)
#:use-module (gnu packages perl)
#:use-module (gnu packages tex))
(define-public perl-arxiv
(package
(name "perl-arxiv")
(version "1.01")
(source
(origin
(method url-fetch)
(uri (string-append "mirror://cpan/authors/id/S/SI/SIMEON/arXiv-" version
".tar.gz"))
(sha256
(base32 "0swcgkncc0vk220g5jwpz9j5zyg2995csklmfv09lhwxf6ndrin2"))))
(build-system perl-build-system)
(home-page "https://metacpan.org/release/arXiv")
(synopsis "Utilities from arXiv.org")
(description "This package contains perl modules with utility procedures
used by other perl software at arXiv.org, most notably AutoTeX.")
(license license:perl-license)))
(define-public perl-tex-autotex
(package
(name "perl-tex-autotex")
(version "0.906.0")
(source
(origin
(method url-fetch)
(uri (string-append
"mirror://cpan/authors/id/T/TS/TSCHWAND/TeX-AutoTeX-v" version
".tar.gz"))
(sha256
(base32 "1iz64g0a22kb8h8gpkqrc9yxdyr3lvylznvlkpf2a9xanfjr5fki"))))
(build-system perl-build-system)
(arguments
(list
#:phases
#~(modify-phases %standard-phases
(add-after 'unpack 'patch-config
(lambda* (#:key inputs #:allow-other-keys)
(substitute* "lib/TeX/AutoTeX/Config.pm"
(("(\\$DEFAULT_BRANCH[ ]*=).*;" all assign)
;; XXX: Get year or smth
(string-append assign " 'texlive/guix';"))
(("/opt/texlive/[0-9]*/bin/arch")
(dirname (search-input-file inputs "/bin/tex")))
(("^(\\$AUTOTEX_ENV_PATH[ ]*=).*;" all assign)
(string-append assign " '"
(string-join
(map (lambda (bin)
(dirname (search-input-file inputs bin)))
'("/bin/sh"
"/bin/sed"
;; coreutils
"/bin/yes"))
":")
"';"))
(("/usr/bin/sendmail")
(search-input-file inputs "/bin/sendmail"))))))))
(inputs (list bash-minimal coreutils sed sendmail
texlive-scheme-basic))
(propagated-inputs (list perl-arxiv perl-cam-pdf perl-class-accessor
perl-error))
(native-inputs (list perl-module-build))
(home-page "https://metacpan.org/release/TeX-AutoTeX")
(synopsis "Automatically process (La-)TeX sources")
(description "AutoTeX is the basis for arXiv's automatic (La-)TeX
processing. The normal use is to point it at a directory with an assortment
of files in it, and the @code{process} method will attempt to generate DVI,
PostScript, or PDF from the input based on heuristics. The resulting file(s)
remain in the same directory.")
(license license:gpl3+)))
|