From patchwork Sat Feb 17 23:16:07 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Liliana Marie Prikler X-Patchwork-Id: 60790 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id EFC6927BBEE; Mon, 19 Feb 2024 20:42:17 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI, RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 2B73327BBE2 for ; Mon, 19 Feb 2024 20:42:13 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rcASP-00082L-E6; Mon, 19 Feb 2024 15:41:45 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rcASM-000819-IJ for guix-patches@gnu.org; Mon, 19 Feb 2024 15:41:42 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rcASM-00054x-5n for guix-patches@gnu.org; Mon, 19 Feb 2024 15:41:42 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rcASh-0001Ee-Dw for guix-patches@gnu.org; Mon, 19 Feb 2024 15:42:03 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#69212] [PATCH RFC 4/4] gnu: Add perl-tex-autotex. Resent-From: Liliana Marie Prikler Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 19 Feb 2024 20:42:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 69212 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 69212@debbugs.gnu.org Received: via spool by 69212-submit@debbugs.gnu.org id=B69212.17083753174715 (code B ref 69212); Mon, 19 Feb 2024 20:42:03 +0000 Received: (at 69212) by debbugs.gnu.org; 19 Feb 2024 20:41:57 +0000 Received: from localhost ([127.0.0.1]:43545 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rcASb-0001Du-7R for submit@debbugs.gnu.org; Mon, 19 Feb 2024 15:41:57 -0500 Received: from mail-ed1-f66.google.com ([209.85.208.66]:56625) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rcASU-0001D4-NC for 69212@debbugs.gnu.org; Mon, 19 Feb 2024 15:41:51 -0500 Received: by mail-ed1-f66.google.com with SMTP id 4fb4d7f45d1cf-55c2cf644f3so6440978a12.1 for <69212@debbugs.gnu.org>; Mon, 19 Feb 2024 12:41:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1708375223; x=1708980023; darn=debbugs.gnu.org; h=mime-version:to:subject:date:from:references:in-reply-to:message-id :from:to:cc:subject:date:message-id:reply-to; bh=tZb8cBM5EpeWpqU9q76/IXd37CF1/m7IRy8YEiTUF7Q=; b=ilFuvN/0Whb9bQvtgXVMRE8BfwVXfFJHpjR53GfkMkDHedqG3PUpjB9LxSdOQtZK6S pUfHl7Xto0i0etNC0BcCWNkzxHuYLMj6RoLTATH7LWzDFK5SY2hgBfaM8IHDTuS1wQAj s7qxSE+w1cmueXjMsWTHUNAjfRaKTGvblCEjSu+CWYxSbwRqbkP4tsbR8+YeteU3k3NR 1h0z1B3NVBtAX+5bYiG5SYpJpUx9/72smdhlftuRN2ubS0w+mUEZa+Qt9WqtbLaBjs0w OIouHYMkUwpiXeNIsufvKqCzVVjREhvc2YAv3cvsaJSDAEnNOm4KRlxqhf4qOoWGsZVe dwtw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708375223; x=1708980023; h=mime-version:to:subject:date:from:references:in-reply-to:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=tZb8cBM5EpeWpqU9q76/IXd37CF1/m7IRy8YEiTUF7Q=; b=qx4W0h+dbNuRecv4Bs66YAiN37E1KC806dxVDBPKx5Pej7I+02uwjTFU8kIjZHIJkI AeJJBpuw7mEUpb4oy1jw9MIsLMcGiIP+8scB4s+gM0L+v0QllFdyX+xAnwQpvoBUOO2d taKmmSp7WPhYsHa/WCu/zbK4uPjeH8qxNOzregxW/QUDAwabKILDjYOgQkuwrRs65KXu 4RWCR7ZDma7opb43lwGLZ+Iw9FZ1YVB0ze6rYNrR7SGB7rVYTRz4hFXv5wGM+ljomyHa rAWcW7LEixb8Px6ddXAP4kL29SMN0wTZv2QJs8prFKhqX1X5Sj2z92XcQrnMq8Vxp92z 8D6A== X-Gm-Message-State: AOJu0Ywktc2H+07GuZ4YVHyG+xf8bImznAeKYBFQGMPQsyuROHPT+0k0 MJwtq/TQtxTEiFu2q452PZPoSwInDmKJeQDR6Lt7WneobyJHroV1icUkOCTgjc8= X-Google-Smtp-Source: AGHT+IEUvJx5uZlO5voRUF1si+mR0UMRNx5I9c7XLszRTQZapa64OaNQeELIEvMWna2w2Iw2kQwgWA== X-Received: by 2002:a17:906:3514:b0:a3e:3952:f085 with SMTP id r20-20020a170906351400b00a3e3952f085mr3850922eja.61.1708375223289; Mon, 19 Feb 2024 12:40:23 -0800 (PST) Received: from lumine.fritz.box (85-127-52-93.dsl.dynamic.surfer.at. [85.127.52.93]) by smtp.gmail.com with ESMTPSA id vh9-20020a170907d38900b00a3d559a8872sm3242058ejc.116.2024.02.19.12.40.22 for <69212@debbugs.gnu.org> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Feb 2024 12:40:23 -0800 (PST) Message-ID: <7a4a072fcc94161b25c4e1b6804aa5e3bd5aa204.1708211806.git.liliana.prikler@gmail.com> In-Reply-To: References: From: Liliana Marie Prikler Date: Sun, 18 Feb 2024 00:16:07 +0100 MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * 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+)))