[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
36/36: gnu: emacs-org-fc: Update to 0.4.0.
From: |
guix-commits |
Subject: |
36/36: gnu: emacs-org-fc: Update to 0.4.0. |
Date: |
Sun, 21 Jan 2024 18:24:07 -0500 (EST) |
ngz pushed a commit to branch master
in repository guix.
commit 9e9c1613ddfb6147a59aaff85bfe3ee6b98da61c
Author: Nicolas Goaziou <mail@nicolasgoaziou.fr>
AuthorDate: Sun Jan 21 23:54:52 2024 +0100
gnu: emacs-org-fc: Update to 0.4.0.
* gnu/packages/emacs-xyz.scm (emacs-org-fc): Update to 0.4.0.
[arguments]<#:phases>: Fix build error by adding missing (require 'eieio).
<#:test-command>: Load more tests.
[native-inputs]: Add EMACS-EL-MOCK.
Change-Id: Ibdaf38f3dd8f3018bf2b7b53cd94626b983fc953
---
gnu/packages/emacs-xyz.scm | 91 +++++++++++++++++++++++++---------------------
1 file changed, 49 insertions(+), 42 deletions(-)
diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index 20bf05b679..48f437131b 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -4843,52 +4843,59 @@ that the binary uses instead of the actual binary
contents.")
(define-public emacs-org-fc
(package
- (name "emacs-org-fc")
- (version "0.3.0")
- (source
- (origin
- (method git-fetch)
- (uri (git-reference
- (url "https://git.sr.ht/~l3kn/org-fc")
- (commit (string-append "v" version))))
- (file-name (git-file-name name version))
- (sha256
- (base32 "17cdn4sdyb9fs9w725l155lb74inzdn86m8y62m6hn4dgb5l4spm"))))
- (build-system emacs-build-system)
- (arguments
- (list
- #:include #~(cons* "\\.awk$" "\\.org$" %default-include)
- #:exclude #~(cons "^tests/" %default-exclude)
- #:tests? #t
- #:test-command #~(list "emacs" "--batch"
- "-L" "."
- "-L" "tests/"
- "-l" "tests/org-fc-filter-test.el"
- "-l" "tests/org-fc-indexer-test.el"
- "-l" "tests/org-fc-review-data-test.el"
- "-f" "ert-run-tests-batch-and-exit")
- #:phases
- #~(modify-phases %standard-phases
- (add-after 'unpack 'qualify-paths
- (lambda* (#:key inputs #:allow-other-keys)
- (let ((find (search-input-file inputs "/bin/find"))
- (gawk (search-input-file inputs "/bin/gawk"))
- (xargs (search-input-file inputs "/bin/xargs")))
- (substitute* "org-fc-awk.el"
- (("\"find ") (string-append "\"" find " "))
- (("\"gawk ") (string-append "\"" gawk " "))
- (("\"xargs ") (string-append "\"" xargs " ")))))))))
- (inputs (list findutils gawk))
- (propagated-inputs (list emacs-hydra))
- (home-page "https://www.leonrische.me/fc/index.html")
- (synopsis "Spaced repetition system for Emacs Org mode")
- (description
- "Org-fc is a spaced-repetition system for Emacs' Org mode.
+ (name "emacs-org-fc")
+ (version "0.4.0")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://git.sr.ht/~l3kn/org-fc")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "09s493p2ccvc1zd297kldwinhn6imnmyik98qc56ndb7dp0dwa0x"))))
+ (build-system emacs-build-system)
+ (arguments
+ (list
+ #:include #~(cons* "\\.awk$" "\\.org$" %default-include)
+ #:exclude #~(cons "^tests/" %default-exclude)
+ #:tests? #t
+ #:test-command #~(list "emacs" "--batch"
+ "-L" "."
+ "-L" "tests/"
+ "-l" "tests/org-fc-card-test.el"
+ "-l" "tests/org-fc-filter-test.el"
+ "-l" "tests/org-fc-indexer-test.el"
+ "-l" "tests/org-fc-review-data-test.el"
+ "-f" "ert-run-tests-batch-and-exit")
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'qualify-paths
+ (lambda* (#:key inputs #:allow-other-keys)
+ (let ((find (search-input-file inputs "/bin/find"))
+ (gawk (search-input-file inputs "/bin/gawk"))
+ (xargs (search-input-file inputs "/bin/xargs")))
+ (substitute* "org-fc-awk.el"
+ (("\"find ") (string-append "\"" find " "))
+ (("\"gawk ") (string-append "\"" gawk " "))
+ (("\"xargs ") (string-append "\"" xargs " "))))))
+ (add-after 'unpack 'require-eieio
+ (lambda _
+ (substitute* "org-fc-core.el"
+ (("\\(require 'cl-lib\\)" line)
+ (string-append line "\n(require 'eieio)"))))))))
+ (native-inputs (list emacs-el-mock))
+ (inputs (list findutils gawk))
+ (propagated-inputs (list emacs-hydra))
+ (home-page "https://www.leonrische.me/fc/index.html")
+ (synopsis "Spaced repetition system for Emacs Org mode")
+ (description
+ "Org-fc is a spaced-repetition system for Emacs' Org mode.
It allows you to mark headlines in a file as flashcards, turning pieces of
knowledge you want to learn into a question-answer test. These cards are
reviewed at regular interval. After each review, the next review interval is
calculated based on how well you remembered the contents of the card.")
- (license license:gpl3+)))
+ (license license:gpl3+)))
(define-public emacs-font-lock+
(let ((commit "aa1c82d05c9222b09099a0ccd7468e955497940c")
- 24/36: gnu: emacs-edit-indirect: Update to 0.1.11., (continued)
- 24/36: gnu: emacs-edit-indirect: Update to 0.1.11., guix-commits, 2024/01/21
- 26/36: gnu: emacs-elisp-demos: Improve package style., guix-commits, 2024/01/21
- 32/36: gnu: emacs-org-re-reveal: Update to 3.25.1., guix-commits, 2024/01/21
- 34/36: gnu: emacs-plz: Update to 0.7.2., guix-commits, 2024/01/21
- 16/36: gnu: emacs-org-modern: Update to 1.1., guix-commits, 2024/01/21
- 17/36: gnu: emacs-frecency: Update to 1.0., guix-commits, 2024/01/21
- 22/36: gnu: emacs-clj-refactor: Update to 3.11.3., guix-commits, 2024/01/21
- 23/36: gnu: emacs-dtrt-indent: Update to 1.16., guix-commits, 2024/01/21
- 25/36: gnu: emacs-elisp-demos: Update to 2024.01.16., guix-commits, 2024/01/21
- 31/36: gnu: emacs-org-ql: Update to 0.8.4., guix-commits, 2024/01/21
- 36/36: gnu: emacs-org-fc: Update to 0.4.0.,
guix-commits <=
- 21/36: gnu: emacs-cider: Update to 1.13.0., guix-commits, 2024/01/21
- 27/36: gnu: emacs-gptel: Update to 0.6.0., guix-commits, 2024/01/21
- 14/36: gnu: emacs-emms-print-metadata: Update to 18., guix-commits, 2024/01/21
- 15/36: gnu: emacs-yeetube: Update to 2.0.9., guix-commits, 2024/01/21
- 20/36: gnu: emacs-boon: Update to 1.3., guix-commits, 2024/01/21
- 19/36: gnu: emacs-log4e: Update to 0.4.0., guix-commits, 2024/01/21
- 28/36: gnu: emacs-hackernews: Update to 0.7.0., guix-commits, 2024/01/21
- 29/36: gnu: emacs-helm: Update to 3.9.7., guix-commits, 2024/01/21
- 30/36: gnu: emacs-julia-snail: Update to 1.3.1., guix-commits, 2024/01/21
- 33/36: gnu: emacs-pg: Update to 0.27., guix-commits, 2024/01/21