Archived
1
0
Fork 0

gnu: emacs-osm: Update to 0.8.

* gnu/packages/emacs-xyz.scm (emacs-osm): Update to 0.8.
[arguments]<#:phases>: Add MAKEINFO phase.
[native-inputs]: Add TEXINFO.

Signed-off-by: Nicolas Goaziou <mail@nicolasgoaziou.fr>
This commit is contained in:
Morgan Smith 2022-09-19 12:08:40 -04:00 committed by Nicolas Goaziou
parent 7c9d8b2e96
commit 90a73f6569
No known key found for this signature in database
GPG key ID: DA00B4F048E92F2D

View file

@ -32602,26 +32602,41 @@ hacker.")
(define-public emacs-osm (define-public emacs-osm
(package (package
(name "emacs-osm") (name "emacs-osm")
(version "0.6") (version "0.8")
(home-page "https://github.com/minad/osm") (home-page "https://github.com/minad/osm")
(source (source (origin
(origin (method git-fetch)
(method git-fetch) (uri (git-reference
(uri (git-reference (url home-page) (commit version))) (url home-page)
(file-name (git-file-name name version)) (commit version)))
(sha256 (file-name (git-file-name name version))
(base32 "0aiq2z9vv4jsl0s0x9vpjgp0mnn27wanhirzj3h80ivgiphzs7l5")))) (sha256
(base32
"039ac364f00slx1dxxgsgfcr4x47v9ymn8arcs0fyhdhw7jnky5j"))))
(build-system emacs-build-system) (build-system emacs-build-system)
(arguments (arguments
`(#:phases (modify-phases %standard-phases (list #:phases #~(modify-phases %standard-phases
(add-after 'unpack 'set-curl-file-name (add-after 'unpack 'set-curl-file-name
(lambda* (#:key inputs #:allow-other-keys) (lambda* (#:key inputs #:allow-other-keys)
(substitute* "osm.el" (substitute* "osm.el"
(("\"curl( ?)\"" _ space) (("\"curl( ?)\"" _ space)
(string-append "\"" (string-append "\""
(search-input-file inputs "/bin/curl") (search-input-file inputs
space "\"")))))))) "/bin/curl")
space "\"")))))
(add-after 'install 'makeinfo
(lambda _
(invoke "emacs"
"--batch"
"--eval=(require 'ox-texinfo)"
"--eval=(setq org-export-with-broken-links t)"
"--eval=(find-file \"README.org\")"
"--eval=(org-texinfo-export-to-info)")
(install-file "osm.info"
(string-append #$output
"/share/info")))))))
(inputs (list curl)) (inputs (list curl))
(native-inputs (list texinfo))
(synopsis "OpenStreetMap viewer for Emacs") (synopsis "OpenStreetMap viewer for Emacs")
(description (description
"This package provides an OpenStreetMap viewer for Emacs, featuring "This package provides an OpenStreetMap viewer for Emacs, featuring