From patchwork Mon May 16 11:04:14 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Aleksandr Vityazev X-Patchwork-Id: 39414 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 11A2327BBEA; Mon, 16 May 2022 13:42:49 +0100 (BST) 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_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable 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 783C827BBE9 for ; Mon, 16 May 2022 13:42:48 +0100 (BST) Received: from localhost ([::1]:56520 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nqa3j-0001Yd-Gr for patchwork@mira.cbaines.net; Mon, 16 May 2022 08:42:47 -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 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" X-getmail-retrieved-from-mailbox: Patches 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 ‘search-input-file’ where possible. Drop trailing ‘#t’s. While here, respect TESTS? in check phase. 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 © 2021 François J ;;; Copyright © 2021 Foo Chuan Wei ;;; Copyright © 2021 John Kehayias +;;; Copyright © 2022 Kyle Meyer +;;; Copyright © 2022 Aleksandr Vityazev ;;; ;;; This file is part of GNU Guix. ;;; @@ -395,51 +397,53 @@ (define-public ledger "See src/wcwidth.cc in the distribution."))))) (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 good 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/ledger"))))) + (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. This package provides the Emacs mode.") - (license license:gpl2+))) + (license license:gpl2+)))) (define-public geierlein (package