diff options
author | Nicolas Goaziou <mail@nicolasgoaziou.fr> | 2022-12-05 22:55:14 +0100 |
---|---|---|
committer | Nicolas Goaziou <mail@nicolasgoaziou.fr> | 2022-12-05 22:55:14 +0100 |
commit | 55fc653edf69598bcccf3eec2c1cd80ebbb3f5e4 (patch) | |
tree | 070862cbb8ee9b3e78dd9369336cb6031a9c392d | |
parent | 517618b2401c2ab5861e63df60ae49918b94f727 (diff) | |
download | guix-55fc653edf69598bcccf3eec2c1cd80ebbb3f5e4.tar.gz |
gnu: emacs-org: Fix generated version string.
* gnu/packages/emacs-xyz.scm (emacs-org)[arguments]<#:phase>: Re-order phases. Set ORGVERSION on the last MAKE invocation.
-rw-r--r-- | gnu/packages/emacs-xyz.scm | 35 |
1 files changed, 17 insertions, 18 deletions
diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm index 492db98ead..09b640e795 100644 --- a/gnu/packages/emacs-xyz.scm +++ b/gnu/packages/emacs-xyz.scm @@ -14166,18 +14166,17 @@ passive voice.") #:test-command #~(list "make" "test-dirty") #:phases #~(modify-phases %standard-phases - (add-after 'unpack 'configure - ;; XXX: Generate "org-loaddefs.el" and set proper version string. + (replace 'expand-load-path + ;; Make sure `load-path' includes "lisp" directory, otherwise + ;; byte-compilation fails. + (lambda args + (with-directory-excursion "lisp" + (apply (assoc-ref %standard-phases 'expand-load-path) args)))) + (add-after 'expand-load-path 'bootstrap + ;; XXX: Generate "org-loaddefs.el". (lambda _ - (invoke "make" "autoloads" - (string-append "ORGVERSION=" #$version)) - (let ((elpa (elpa-directory #$output)) - (info (string-append #$output "/share/info"))) - (substitute* "local.mk" - (("^lispdir.*") (string-append "lispdir = " elpa)) - (("^datadir.*") (string-append "datadir = " elpa "/etc")) - (("^infodir.*") (string-append "infodir = " info)))))) - (add-after 'configure 'fix-tests + (invoke "make" "autoloads"))) + (add-before 'check 'fix-tests (lambda* (#:key inputs #:allow-other-keys) ;; XXX: Running tests updates ID locations. The process expects ;; a file to be writeable in "~/.emacs.d/". @@ -14201,15 +14200,15 @@ passive voice.") (substitute* "testing/lisp/test-org.el" (("test-org/org-(encode-time|time-string-to-time) .*" all) (string-append all " (skip-unless nil)\n"))))) - (replace 'expand-load-path - ;; Make sure `load-path' includes "lisp" directory, otherwise - ;; byte-compilation fails. - (lambda args - (with-directory-excursion "lisp" - (apply (assoc-ref %standard-phases 'expand-load-path) args)))) (replace 'install (lambda _ - (invoke "make" "install"))) + (let ((elpa (elpa-directory #$output)) + (info (string-append #$output "/share/info"))) + (substitute* "local.mk" + (("^lispdir.*") (string-append "lispdir = " elpa)) + (("^datadir.*") (string-append "datadir = " elpa "/etc")) + (("^infodir.*") (string-append "infodir = " info)))) + (invoke "make" "install" (string-append "ORGVERSION=" #$version)))) (add-after 'install 'install-org-news ;; Install ORG-NEWS files in doc directory. (lambda _ |