Subject: [PATCH 1/3] gnu: emacs-polymode: Update to 0.1.5-1.06c4329.

From: Oleg Pykhalov <[email-masked]>
Date: Mon, 26 Nov 2018 16:45:35 +0300

* gnu/packages/emacs.scm (emacs-polymode): Update to 0.1.5-1.06c4329.
---
 gnu/packages/emacs.scm | 21 +++++----------------
 1 file changed, 5 insertions(+), 16 deletions(-)

diff --git a/gnu/packages/emacs.scm b/gnu/packages/emacs.scm
index 911290254..c18225792 100644
--- a/gnu/packages/emacs.scm
+++ b/gnu/packages/emacs.scm
@@ -7914,32 +7914,21 @@ contexts.
     (license license:gpl3+)))
 
 (define-public emacs-polymode
-  ;; There hasn't been a proper release.
-  (let ((commit "0340f5e7e55235832e59673f027cc79a23cbdcd6")
-        (revision "1"))
+  (let ((commit "06c4329fdf765b4f9072e20906c8737a19e6646b"))
     (package
       (name "emacs-polymode")
-      (version (string-append "1.0-" revision "." (string-take commit 7)))
+      (version (git-version "0.1.5" "1" commit))
       (source (origin
                 (method git-fetch)
                 (uri (git-reference
                       (url "https://github.com/vspinu/polymode.git")
                       (commit commit)))
-                (file-name (string-append name "-" version "-checkout"))
+                (file-name (git-file-name name version))
                 (sha256
                  (base32
-                  "057cybkq3cy07n5s332k071sjiky3mziy003lza4rh75mgqkwhmh"))))
+                  "0wwphs54jx48a3ca6x1qaz56j3j9bg4mv8g2akkffrzbdcb8sbc7"))))
       (build-system emacs-build-system)
-      (arguments
-       `(#:include (cons* "^modes/.*\\.el$" %default-include)
-         #:phases
-         (modify-phases %standard-phases
-           (add-after 'set-emacs-load-path 'add-modes-subdir-to-load-path
-             (lambda _
-               (setenv "EMACSLOADPATH"
-                       (string-append (getenv "EMACSLOADPATH")
-                                      ":" (getcwd) "/modes" ":")))))))
-      (home-page "https://github.com/vspinu/polymode")
+      (home-page "https://github.com/polymode/polymode")
       (synopsis "Framework for multiple Emacs modes based on indirect buffers")
       (description "Polymode is an Emacs package that offers generic support
 for multiple major modes inside a single Emacs buffer.  It is lightweight,
-- 
2.19.1