gnu: emms: Update to 4.2.

* gnu/packages/emacs.scm (emms): Update to 4.2.
[arguments]: EMMS installs "emms-print-metadata" now but assumes that
BINDIR exists, so do not install it manually in 'post-install' phase,
and make "/bin" directory in 'pre-install' phase.
This commit is contained in:
Alex Kost 2016-11-29 20:33:30 +03:00
parent c44ec4a8b4
commit c3a10d30d1
No known key found for this signature in database
GPG Key ID: 82460C082A0EE98F
1 changed files with 7 additions and 10 deletions

View File

@ -897,14 +897,14 @@ provides an optional IDE-like error list.")
(define-public emms (define-public emms
(package (package
(name "emacs-emms") (name "emacs-emms")
(version "4.1") (version "4.2")
(source (origin (source (origin
(method url-fetch) (method url-fetch)
(uri (string-append "mirror://gnu/emms/emms-" (uri (string-append "mirror://gnu/emms/emms-"
version ".tar.gz")) version ".tar.gz"))
(sha256 (sha256
(base32 (base32
"0ay6631p3dr6xnhkm7skwn0gp317r1mxbip28m126w4zqf05cbh3")) "1xa9y64g5z8gfnxk1c2rf3plfjhqn4r6j8dpiygnfs6w4giysn22"))
(modules '((guix build utils))) (modules '((guix build utils)))
(snippet (snippet
'(substitute* "Makefile" '(substitute* "Makefile"
@ -974,22 +974,19 @@ provides an optional IDE-like error list.")
(string-append "\"" mp3info "/bin/mp3info\""))))))) (string-append "\"" mp3info "/bin/mp3info\"")))))))
(add-before 'install 'pre-install (add-before 'install 'pre-install
(lambda* (#:key outputs #:allow-other-keys) (lambda* (#:key outputs #:allow-other-keys)
;; The 'install' rule expects the target directory to exist. ;; The 'install' rule expects the target directories to exist.
(let* ((out (assoc-ref outputs "out")) (let* ((out (assoc-ref outputs "out"))
(bin (string-append out "/bin"))
(man1 (string-append out "/share/man/man1"))) (man1 (string-append out "/share/man/man1")))
(mkdir-p bin)
(mkdir-p man1) (mkdir-p man1)
#t))) #t)))
(add-after 'install 'post-install (add-after 'install 'post-install
(lambda* (#:key outputs #:allow-other-keys) (lambda* (#:key outputs #:allow-other-keys)
(let* ((out (assoc-ref outputs "out")) (let ((out (assoc-ref outputs "out")))
(target (string-append
out "/bin/emms-print-metadata")))
(symlink "emms-auto.el" (symlink "emms-auto.el"
(string-append out "/share/emacs/site-lisp/" (string-append out "/share/emacs/site-lisp/"
"emms-autoloads.el")) "emms-autoloads.el"))))))
(mkdir-p (dirname target))
(copy-file "src/emms-print-metadata" target)
(chmod target #o555)))))
#:tests? #f)) #:tests? #f))
(native-inputs `(("emacs" ,emacs-minimal) ;for (guix build emacs-utils) (native-inputs `(("emacs" ,emacs-minimal) ;for (guix build emacs-utils)
("texinfo" ,texinfo))) ("texinfo" ,texinfo)))