gnu: emacs-org: Work around missing version number.

Partly fixes <https://bugs.gnu.org/45448>.

* gnu/packages/emacs-xyz.scm (emacs-org)[arguments]: New
'fix-org-version phase.
This commit is contained in:
Pierre Langlois 2020-12-28 10:49:19 +00:00
parent 1be0da2c7b
commit cd11f6a2bd
No known key found for this signature in database
GPG key ID: A8FC9E447F4F7D54

View file

@ -10296,6 +10296,15 @@ (define-public emacs-org
(arguments
`(#:phases
(modify-phases %standard-phases
;; FIXME: The elpa tarball upstream does not include the version
;; number, remove this phase when this is fixed.
;; https://lists.gnu.org/archive/html/emacs-orgmode/2020-12/msg00729.html
(add-after 'unpack 'fix-org-version
(lambda _
(substitute* "org-version.el"
(("org-release \"\"")
(string-append "org-release \"" ,version "\"")))
#t))
(add-after 'install 'install-documentation
(lambda* (#:key outputs #:allow-other-keys)
(let* ((share (string-append (assoc-ref outputs "out") "/share"))