From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id sCV2Ez6vjmLx5AAAbAwnHQ (envelope-from ) for ; Thu, 26 May 2022 00:35:42 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id 6Ox8Ej6vjmKDpgAAG6o9tA (envelope-from ) for ; Thu, 26 May 2022 00:35:42 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id A36131F247 for ; Thu, 26 May 2022 00:35:41 +0200 (CEST) Received: from localhost ([::1]:50678 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ntzbP-000055-Rx for larch@yhetil.org; Wed, 25 May 2022 18:35:40 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47662) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ntzao-0008VL-JR for guix-patches@gnu.org; Wed, 25 May 2022 18:35:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:34439) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ntzao-0005q0-Ae for guix-patches@gnu.org; Wed, 25 May 2022 18:35:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ntzan-0001yi-Ve for guix-patches@gnu.org; Wed, 25 May 2022 18:35:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#55644] [PATCH] gnu: Add texlive-qrcode. Resent-From: Jack Hill Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 25 May 2022 22:35:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 55644 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 55644@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16535180677549 (code B ref -1); Wed, 25 May 2022 22:35:01 +0000 Received: (at submit) by debbugs.gnu.org; 25 May 2022 22:34:27 +0000 Received: from localhost ([127.0.0.1]:56569 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ntzaB-0001xZ-3K for submit@debbugs.gnu.org; Wed, 25 May 2022 18:34:27 -0400 Received: from lists.gnu.org ([209.51.188.17]:57598) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ntza6-0001xN-3q for submit@debbugs.gnu.org; Wed, 25 May 2022 18:34:21 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47568) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ntza5-00085f-UA for guix-patches@gnu.org; Wed, 25 May 2022 18:34:17 -0400 Received: from minsky.hcoop.net ([104.248.1.95]:49108) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ntza4-0005m8-59 for guix-patches@gnu.org; Wed, 25 May 2022 18:34:17 -0400 Received: from [2001:470:8:9f5:e878:315c:5ed6:89d] (helo=leyden.home.eronel.org) by minsky.hcoop.net with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ntza2-0000g9-KV for guix-patches@gnu.org; Wed, 25 May 2022 18:34:14 -0400 From: Jack Hill Date: Wed, 25 May 2022 18:34:05 -0400 Message-Id: <20220525223405.15414-1-jackhill@jackhill.us> X-Mailer: git-send-email 2.36.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=104.248.1.95; envelope-from=jackhill@jackhill.us; helo=minsky.hcoop.net X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action 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+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1653518141; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=gtcd8f2O1HSb+zIy8v1iG0Ev9/Iy96T4QHVMNb6ZEiI=; b=dZv5PthqSYUFP9JiTZKWzeKJMz5evou3U/pKzjdaG6tffzUsm6fX/QB7fUiGiPFwcPqniS 9RFdsp/MgO3hOWfB1FjT+UUpV9Mlm70XJie/aW3zjGYciiVbV69qKoUfkC2BHKWxFZ04W2 EnIUtnnid8qVvx6AXXFCxtAdWpFko9K0Q/FUfLLboXUN99m2eml5PK3gPsVswH4MqhWXdz BjlaA2SxqdPNDA27ok6PPCQ1qwseuaEbpZtISvg0ymBig4AQuKUOXJ0lgViRql4HjzU7Dj DX8dGpngJBq8aDqnFo2/4KsXS31L3cuZUE+AoNXqqP0yIeBeJ6NWUWOKM8BVVA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1653518141; a=rsa-sha256; cv=none; b=E3Be8pldn8qQBKGJgp0UJ+ROkI+bZawh/9qobxft0TGxxwYlbjcOiht+QvU8KQvLYl0s7+ 5Ox4QgIXBy0BEvJCwiDIGV6x6vLIFhkVpmn4/374vxHa2KSB/I0K6PRFk3tAiT9uMZGm90 SkAcOO3O9pXGwcawHl8sTy8i+rEI6XSYUjC6u6OeIXC9C9JOHnJbJqqkq4zWcBDSHcneKF 9a8y+I+SzMLnRpRoBGuPenL5+J7AXRggq9eFWuVj8uINwPNxTgRwa57b9WMhgj/5cIUiTu s8KwMBJbkM3Ml1LBvn6VlIAioXikX7tQRryg3x5edtNK82yctUWAudndjq107w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -3.64 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: A36131F247 X-Spam-Score: -3.64 X-Migadu-Scanner: scn0.migadu.com X-TUID: iJ/zb1rIS91D * gnu/packages/tex.scm (texlive-qrcode): New variable. --- This is my first texlive package, so hopefully I got it at least somewhat right. It is based heavily on the texlive-makecmds package. I determined the native-inputs by what was required to build qrcode.pdf and the propagated inputs by what was required to build this test document: ``` \documentclass{article} \usepackage{qrcode} \begin{document} \qrcode{test text} \end{document} ``` gnu/packages/tex.scm | 53 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) diff --git a/gnu/packages/tex.scm b/gnu/packages/tex.scm index 818316a4e5..58829627c6 100644 --- a/gnu/packages/tex.scm +++ b/gnu/packages/tex.scm @@ -20,6 +20,7 @@ ;;; Copyright © 2021 Ivan Gankevich ;;; Copyright © 2021 Julien Lepiller ;;; Copyright © 2021 Thiago Jung Bauermann +;;; Copyright © 2022 Jack Hill ;;; ;;; This file is part of GNU Guix. ;;; @@ -10593,6 +10594,58 @@ (define-public texlive-adjustbox @code{\\minsizebox}, @code{\\maxsizebox} and @code{\\phantombox}.") (license license:lppl1.3)))) +(define-public texlive-qrcode + (package + (inherit (simple-texlive-package + "texlive-qrcode" + (list "doc/latex/qrcode/README" + "source/latex/qrcode/qrcode.dtx" + "source/latex/qrcode/qrcode.ins") + (base32 + "1xfv0imrrbxjqwjapcf2silg19rwz2jinawy1x65c1krg919vn02"))) + (outputs '("out" "doc")) + (arguments + (list + #:tex-directory "latex/qrcode" + #:phases + #~(modify-phases %standard-phases + (add-before 'build 'chdir + (lambda _ + (setenv "ROOT_DIR" (getcwd)) + (chdir "source/latex/qrcode"))) + (add-after 'build 'build-doc + (lambda _ + (copy-file "qrcode.dtx" "build/qrcode.dtx") + (chdir "build") + (invoke "xelatex" "qrcode.dtx") + (invoke "xelatex" "qrcode.dtx"))) ;generate qrcode.pdf + (replace 'install + (lambda* (#:key tex-directory #:allow-other-keys) + (let ((doc (string-append #$output:doc "/share/doc/" + tex-directory)) + (out (string-append #$output "/share/texmf-dist/tex/" + tex-directory))) + (install-file "qrcode.pdf" doc) + (install-file (car (find-files (getenv "ROOT_DIR") "README")) + doc) + (install-file "qrcode.sty" out))))))) + (propagated-inputs + (list texlive-lm + texlive-latex-xkeyval + texlive-xcolor)) + (native-inputs + (list (texlive-updmap.cfg (list texlive-lm texlive-zapfding)) + texlive-hyperref + texlive-latex-xkeyval + texlive-stringenc + texlive-xcolor)) + (home-page "https://www.ctan.org/pkg/qrcode") + (synopsis "QR codes without external tools") + (description "This package reates @acronym{QR,Quick Response} codes for +LaTeX documents without depending on external graphic packages. It supports +generating codes of different sizes and with different error correction levels.") + (license license:lppl1.3c+))) + (define-public texlive-tcolorbox (let ((template (simple-texlive-package "texlive-tcolorbox" -- 2.36.1