all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Liliana Marie Prikler <liliana.prikler@gmail.com>
To: 69212@debbugs.gnu.org
Subject: [bug#69212] [PATCH RFC 4/4] gnu: Add perl-tex-autotex.
Date: Sun, 18 Feb 2024 00:16:07 +0100	[thread overview]
Message-ID: <7a4a072fcc94161b25c4e1b6804aa5e3bd5aa204.1708211806.git.liliana.prikler@gmail.com> (raw)
In-Reply-To: <cover.1708211806.git.liliana.prikler@gmail.com>

* gnu/packages/perl-tex.scm (perl-tex-autotex): New variable.
---
 gnu/packages/perl-tex.scm | 56 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 56 insertions(+)

diff --git a/gnu/packages/perl-tex.scm b/gnu/packages/perl-tex.scm
index 315d34856f..c2f04547ad 100644
--- a/gnu/packages/perl-tex.scm
+++ b/gnu/packages/perl-tex.scm
@@ -19,9 +19,13 @@
 (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))
 
@@ -42,3 +46,55 @@ (define-public perl-arxiv
     (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+)))
-- 
2.41.0





  parent reply	other threads:[~2024-02-19 20:42 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-02-17 23:16 [bug#69212] [PATCH RFC 0/4] Add AutoTeX Liliana Marie Prikler
2024-02-17 22:45 ` [bug#69212] [PATCH RFC 3/4] gnu: Add perl-arxiv Liliana Marie Prikler
2024-02-17 22:46 ` [bug#69212] [PATCH RFC 2/4] gnu: Add perl-cam-pdf Liliana Marie Prikler
2024-02-17 22:48 ` [bug#69212] [PATCH RFC 1/4] gnu: Add perl-text-pdf Liliana Marie Prikler
2024-02-17 23:16 ` Liliana Marie Prikler [this message]
2024-05-22  7:10   ` [bug#69212] [PATCH RFC 4/4] gnu: Add perl-tex-autotex Nicolas Goaziou via Guix-patches via
2024-05-22 16:55     ` Liliana Marie Prikler
2024-05-23  9:56       ` Nicolas Goaziou via Guix-patches via

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=7a4a072fcc94161b25c4e1b6804aa5e3bd5aa204.1708211806.git.liliana.prikler@gmail.com \
    --to=liliana.prikler@gmail.com \
    --cc=69212@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.