mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-01-19 05:57:04 +01:00
gnu: josm: Fix formatting and install more files.
This means that JOSM appears in the GNOME Shell menu. * gnu/packages/geo.scm (josm)[source]: Replace tab character. [arguments]: Reduce line length, and add install-share-directories phase.
This commit is contained in:
parent
a3f6f27bbc
commit
1192ae9404
1 changed files with 17 additions and 2 deletions
|
@ -12,6 +12,7 @@
|
|||
;;; Copyright © 2019 Wiktor Żelazny <wzelazny@vurv.cz>
|
||||
;;; Copyright © 2019 Hartmut Goebel <h.goebel@crazy-compilers.com>
|
||||
;;; Copyright © 2020 Marius Bakke <mbakke@fastmail.com>
|
||||
;;; Copyright © 2020 Christopher Baines <mail@cbaines.net>
|
||||
;;;
|
||||
;;; This file is part of GNU Guix.
|
||||
;;;
|
||||
|
@ -1339,7 +1340,8 @@ (define-public josm
|
|||
(filter
|
||||
(lambda (s)
|
||||
(let ((source (assoc-ref inputs "source")))
|
||||
(not (equal? (substring s 0 (string-length source)) source))))
|
||||
(not (equal? (substring s 0 (string-length source))
|
||||
source))))
|
||||
(string-split (getenv "CLASSPATH") #\:))
|
||||
":"))
|
||||
#t))
|
||||
|
@ -1386,6 +1388,19 @@ (define-public josm
|
|||
"Is-Local-Build: true\n"
|
||||
"Build-Date: 1970-01-01 00:00:00 +0000\n"))))
|
||||
#t))
|
||||
(add-after 'install 'install-share-directories
|
||||
(lambda* (#:key outputs #:allow-other-keys)
|
||||
(let ((out (assoc-ref outputs "out"))
|
||||
(share-directories '("applications" "icons" "man" "menu"
|
||||
"metainfo" "mime" "pixmaps")))
|
||||
(for-each (lambda (directory)
|
||||
(copy-recursively (string-append
|
||||
"native/linux/tested/usr/share/"
|
||||
directory)
|
||||
(string-append
|
||||
out "/share/" directory)))
|
||||
share-directories))
|
||||
#t))
|
||||
(add-after 'install 'install-bin
|
||||
(lambda* (#:key outputs inputs #:allow-other-keys)
|
||||
(let* ((out (assoc-ref outputs "out"))
|
||||
|
|
Loading…
Reference in a new issue