From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.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 oIXlHMRGgmLhWAAAbAwnHQ (envelope-from ) for ; Mon, 16 May 2022 14:42:44 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id EJjRHMRGgmJ8kgAAauVa8A (envelope-from ) for ; Mon, 16 May 2022 14:42:44 +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 DC9D41FF32 for ; Mon, 16 May 2022 14:42:43 +0200 (CEST) Received: from localhost ([::1]:56520 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nqa3e-0001Yd-M5 for larch@yhetil.org; Mon, 16 May 2022 08:42:42 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54234) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nqYX8-0004d3-Lz for guix-patches@gnu.org; Mon, 16 May 2022 07:05:06 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:57962) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nqYX8-00012k-Bo for guix-patches@gnu.org; Mon, 16 May 2022 07:05:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nqYX8-0007Zi-09 for guix-patches@gnu.org; Mon, 16 May 2022 07:05:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#55433] [PATCH] gnu: emacs-ledger-mode: Update to 4.0.0-0-11e85039. References: <20220515184114.146101-1-kyle@kyleam.com> In-Reply-To: <20220515184114.146101-1-kyle@kyleam.com> Resent-From: Aleksandr Vityazev Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 16 May 2022 11:05:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55433 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 55433@debbugs.gnu.org Received: via spool by 55433-submit@debbugs.gnu.org id=B55433.165269907629053 (code B ref 55433); Mon, 16 May 2022 11:05:01 +0000 Received: (at 55433) by debbugs.gnu.org; 16 May 2022 11:04:36 +0000 Received: from localhost ([127.0.0.1]:51859 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nqYWd-0007YL-9O for submit@debbugs.gnu.org; Mon, 16 May 2022 07:04:35 -0400 Received: from mout01.posteo.de ([185.67.36.65]:57093) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nqYWa-0007Y1-N2 for 55433@debbugs.gnu.org; Mon, 16 May 2022 07:04:29 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 8708324002D for <55433@debbugs.gnu.org>; Mon, 16 May 2022 13:04:22 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.org; s=2017; t=1652699062; bh=MQlQIlu8huWTkJzbuP88t7K1fokrSWTYGUN40KY9p04=; h=From:To:Subject:Date:From; b=nlCxqgPQZtJ4OYjjjFeBgsf7qQ+03cQ7w3//o72K2Jj5XJAqtKywVSR8cJ5KX1bjT aSqyoSYejJUCVrsNB2SJI9acVlDNQe5U8wzZ4qeKa0HupKCmsbIIJhtFLi376AqLY8 WOBecV+t4e4T/QMllo+jyoHrkIMSPxhwgAcQhFznyR+9HHrdNXKBXnCBG2CaCkdDA+ C8w6eDMY5fTc45QzbuwbDvEB8Hq82Ed6DA2dDMtNBuajZB2LLlzxinifZm1mr40ti0 YAZiTMoPncjzD21C9toivT0z3TCnkJtpmwMnMgfmplYicK5mtfxc70zHyyelFfwefm Xm46FMOhT+ghA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4L1xGF4Kj7z9rxR for <55433@debbugs.gnu.org>; Mon, 16 May 2022 13:04:21 +0200 (CEST) From: Aleksandr Vityazev Message-Id: Date: Mon, 16 May 2022 11:04:14 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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=1652704964; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=RLLrvqmul8GSfYq1Iujit3FB3IhpWWxjLJmrFWVVLH4=; b=pE8wjXb18X9wsctDqpY2/SXJBTLj8qp8Jb7Tzqqbhg+1FWiSNSgzBn6hBmC1gEXrlegQ+c jJ0KQ9KHwTr7zWuPvgqn9iZ2fGFlOhXltF9zM0uCdZ01Y9X0pyZgJhh6ADZQGtzRbaJF13 CaQXuDjkMUa/Nz1ahktC3d2x76H97SnwuAEfCOq36baktzRc8as+DG+jMVApbKwzoRW3yr K+UBX5Ja6Hg0jxPe8i2yki1EB4kst12Ued1WU7VqeUCQrgwMWagju8pnw/kQw7UsGmjwcM FPghdZ5a3pvUty2XZLOucNkasaYvNwjggkSYSIJ1lt7Sn0vc5ZR108c1RWW+PQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1652704964; a=rsa-sha256; cv=none; b=RthNExrExquJBjkFZkC94G0hZ6Kk33Q4i8YoK1cyWYSr+7c7yN0NqgX1FX5PVhOtkId95O SxZATfq7SaJWzgQADOE1wykILQm9ADGUws0SNm8Jw6su/WbAXz2zxdojdjiNjUCLgkcb5y z6Pd9e0z6ekZHz8xY4+pDcuAbIaaBTjEWg/uk/ZKW3A9nS97dkpVP0blE5KvO44vHLHJmT 5x57xKYdwvrJRotLw41kmDFU2fkdi795xGyVpQNnKzJd+fAcuXD57eD8IC1SNxkFknu6u8 llWcyVFPbneHBQSfUtCsN/A4OBaqZio/Mw9TaK0EcHWul7Rs4Slv+/uIBUJvlg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.org header.s=2017 header.b=nlCxqgPQ; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.org (policy=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: 5.97 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.org header.s=2017 header.b=nlCxqgPQ; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.org (policy=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: DC9D41FF32 X-Spam-Score: 5.97 X-Migadu-Scanner: scn0.migadu.com X-TUID: WgJ1/snwf7Ry Hi, I just went ahead and made changes to the arguments. * gnu/packages/finance.scm (emacs-ledger-mode): Update to 4.0.0-0-11e85039. [arguments]: Convert to list of G-Expressions. Use =E2=80=98search-input-fi= le=E2=80=99 where possible. Drop trailing =E2=80=98#t=E2=80=99s. While here, respect TESTS? in check p= hase. Co-authored-by: Aleksandr Vityazev --- gnu/packages/finance.scm | 96 +++++++++++++++++++++------------------- 1 file changed, 50 insertions(+), 46 deletions(-) diff --git a/gnu/packages/finance.scm b/gnu/packages/finance.scm index b5ab051a1f..09b979899d 100644 --- a/gnu/packages/finance.scm +++ b/gnu/packages/finance.scm @@ -26,6 +26,8 @@ ;;; Copyright =C2=A9 2021 Fran=C3=A7ois J ;;; Copyright =C2=A9 2021 Foo Chuan Wei ;;; Copyright =C2=A9 2021 John Kehayias +;;; Copyright =C2=A9 2022 Kyle Meyer +;;; Copyright =C2=A9 2022 Aleksandr Vityazev ;;; ;;; This file is part of GNU Guix. ;;; @@ -395,51 +397,53 @@ (define-public ledger "See src/wcwidth.cc in the distribution."))))) =20 (define-public emacs-ledger-mode - (package - (name "emacs-ledger-mode") - (version "4.0.0") - (source - (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/ledger/ledger-mode") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 "1r5rcyxd6d1rqwamzpvqdbkbdf1zbj75aaciqijrklnm59ps244y")))) - (build-system emacs-build-system) - (arguments - `(;; ledger-test.el is needed at runtime (but probably not for a good= reason). - #:exclude '() - #:phases - (modify-phases %standard-phases - (add-after 'unpack 'patch-path - (lambda* (#:key inputs #:allow-other-keys) - (let ((ledger (assoc-ref inputs "ledger"))) - (make-file-writable "ledger-exec.el") - (emacs-substitute-variables "ledger-exec.el" - ("ledger-binary-path" (string-append ledger "/bin/ledger"= )))) - #t)) - (add-after 'build 'build-doc - (lambda* (#:key outputs #:allow-other-keys) - (let ((target (string-append (assoc-ref outputs "out") - "/share/info"))) - (mkdir-p target) - (invoke "makeinfo" "-o" target - "../source/doc/ledger-mode.texi")) - #t)) - (replace 'check - (lambda _ - (with-directory-excursion "../source/test" - (invoke "make" "test-batch"))))))) - (inputs - (list ledger)) - (native-inputs - (list texinfo)) - (home-page "https://ledger-cli.org/") - (synopsis "Command-line double-entry accounting program") - (description - "Ledger is a powerful, double-entry accounting system that is + ;; The last release was on Nov 8, 2019 and doesn't build with Emacs 28. + (let ((commit "11e850395448ee7012dba16bd6df103f5552ebfb") + (revision "0")) + (package + (name "emacs-ledger-mode") + (version (git-version "4.0.0" revision commit)) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/ledger/ledger-mode") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0hzky36vrlb7kvpyz4gy3zn01zdlmlx0s58w6ggk5djbcvjc2rfx"))= )) + (build-system emacs-build-system) + (arguments + (list + ;; ledger-test.el is needed at runtime (but probably not for a goo= d reason). + #:exclude #~'() + #:tests? #t + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'patch-path + (lambda* (#:key inputs #:allow-other-keys) + (make-file-writable "ledger-exec.el") + (emacs-substitute-variables "ledger-exec.el" + ("ledger-binary-path" (search-input-file inputs "/bin/le= dger"))))) + (add-after 'build 'build-doc + (lambda _ + (let ((target (string-append #$output "/share/info"))) + (mkdir-p target) + (invoke "makeinfo" "-o" target + "../source/doc/ledger-mode.texi")))) + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (with-directory-excursion "../source/test" + (invoke "make" "test-batch")))))))) + (inputs + (list ledger)) + (native-inputs + (list texinfo)) + (home-page "https://ledger-cli.org/") + (synopsis "Command-line double-entry accounting program") + (description + "Ledger is a powerful, double-entry accounting system that is accessed from the UNIX command-line. This may put off some users, since there is no flashy UI, but for those who want unparalleled reporting access to their data there are few alternatives. @@ -453,7 +457,7 @@ (define-public emacs-ledger-mode in ability, and easy to use. =20 This package provides the Emacs mode.") - (license license:gpl2+))) + (license license:gpl2+)))) =20 (define-public geierlein (package --=20 2.36.0 --=20 Best regards,=20 Aleksandr Vityazev