unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#31275] Update 'magit' and add 'emacs-ghub'
@ 2018-04-26 20:11 Alex Kost
  2018-04-26 20:14 ` [bug#31275] [PATCH 1/2] gnu: Add emacs-ghub Alex Kost
  2018-04-28 21:23 ` [bug#31275] Update 'magit' and add 'emacs-ghub' Ludovic Courtès
  0 siblings, 2 replies; 5+ messages in thread
From: Alex Kost @ 2018-04-26 20:11 UTC (permalink / raw)
  To: 31275

Hello,

the new version of Magit requires a new dependency - "ghub.el".
So the upcoming 2 patches add the required package and update magit.

-- 
Alex

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [bug#31275] [PATCH 1/2] gnu: Add emacs-ghub.
  2018-04-26 20:11 [bug#31275] Update 'magit' and add 'emacs-ghub' Alex Kost
@ 2018-04-26 20:14 ` Alex Kost
  2018-04-26 20:14   ` [bug#31275] [PATCH 2/2] gnu: magit: Update to 2.12.1 Alex Kost
  2018-04-28 21:23 ` [bug#31275] Update 'magit' and add 'emacs-ghub' Ludovic Courtès
  1 sibling, 1 reply; 5+ messages in thread
From: Alex Kost @ 2018-04-26 20:14 UTC (permalink / raw)
  To: 31275

* gnu/packages/emacs.scm (emacs-ghub): New variable.
---
 gnu/packages/emacs.scm | 31 +++++++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)

diff --git a/gnu/packages/emacs.scm b/gnu/packages/emacs.scm
index 2f0212e42..940707801 100644
--- a/gnu/packages/emacs.scm
+++ b/gnu/packages/emacs.scm
@@ -588,6 +588,37 @@ these arguments.  The prototypical use is for the command to call an external
 process, passing on the arguments as command line arguments.")
     (license license:gpl3+)))
 
+(define-public emacs-ghub
+  (package
+    (name "emacs-ghub")
+    (version "2.0.0")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append
+                    "https://github.com/magit/ghub/archive/v"
+                    version ".tar.gz"))
+              (file-name (string-append name "-" version ".tar.gz"))
+              (sha256
+               (base32
+                "1zrb3xk04a228g2ahx0r02d0d3xskj60q73qavvmm2i56r66cxvc"))))
+    (build-system emacs-build-system)
+    (arguments
+     `(#:phases
+       (modify-phases %standard-phases
+         (add-before 'install 'make-info
+           (lambda _
+             (zero? (system* "make" "info")))))))
+    (native-inputs
+     `(("texinfo" ,texinfo)))
+    (home-page "https://github.com/magit/ghub")
+    (synopsis "Emacs client library for Github API and Gitlab API")
+    (description
+     "This package provides 2 files: @file{ghub.el} and @file{glab.el},
+which are the libraries that provide basic support for using the Github and
+Gitlab APIs from Emacs packages.  It abstracts access to API resources using
+only a handful of functions that are not resource-specific.")
+    (license license:gpl3+)))
+
 (define-public haskell-mode
   (package
     (name "haskell-mode")
-- 
2.15.1

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [bug#31275] [PATCH 2/2] gnu: magit: Update to 2.12.1.
  2018-04-26 20:14 ` [bug#31275] [PATCH 1/2] gnu: Add emacs-ghub Alex Kost
@ 2018-04-26 20:14   ` Alex Kost
  0 siblings, 0 replies; 5+ messages in thread
From: Alex Kost @ 2018-04-26 20:14 UTC (permalink / raw)
  To: 31275

* gnu/packages/emacs.scm (magit): Update to 2.12.1.
[propagated-inputs]: Add 'emacs-ghub' and 'emacs-magit-popup'.
[arguments]: Set GHUB_DIR and MAGIT_POPUP_DIR make variables.
[home-page]: Update for the new home.
---
 gnu/packages/emacs.scm | 17 +++++++++++++----
 1 file changed, 13 insertions(+), 4 deletions(-)

diff --git a/gnu/packages/emacs.scm b/gnu/packages/emacs.scm
index 940707801..a46e60759 100644
--- a/gnu/packages/emacs.scm
+++ b/gnu/packages/emacs.scm
@@ -435,7 +435,7 @@ on stdout instead of using a socket as the Emacsclient does.")
 (define-public magit
   (package
     (name "magit")
-    (version "2.11.0")
+    (version "2.12.1")
     (source (origin
              (method url-fetch)
              (uri (string-append
@@ -443,7 +443,7 @@ on stdout instead of using a socket as the Emacsclient does.")
                    version "/" name "-" version ".tar.gz"))
              (sha256
               (base32
-               "11xly5bma9jc1jhs8fqbqrci8kz1y26yfq7dqjkqfy956wvfg6hz"))))
+               "1czzknmhzbggcv3bxl5amvfpp0zrkdwl1x05qarsq6qakvc85xy3"))))
     (build-system gnu-build-system)
     (native-inputs `(("texinfo" ,texinfo)
                      ("emacs" ,emacs-minimal)))
@@ -452,7 +452,8 @@ on stdout instead of using a socket as the Emacsclient does.")
        ("perl" ,perl)))
     (propagated-inputs
      `(("dash" ,emacs-dash)
-       ;; XXX Add 'magit-popup' dependency for the next release (after 2.11.0).
+       ("ghub" ,emacs-ghub)
+       ("magit-popup" ,emacs-magit-popup)
        ("with-editor" ,emacs-with-editor)))
     (arguments
      `(#:test-target "test"
@@ -466,6 +467,14 @@ on stdout instead of using a socket as the Emacsclient does.")
                             (assoc-ref %build-inputs "dash")
                             "/share/emacs/site-lisp/guix.d/dash-"
                             ,(package-version emacs-dash))
+             (string-append "GHUB_DIR="
+                            (assoc-ref %build-inputs "ghub")
+                            "/share/emacs/site-lisp/guix.d/ghub-"
+                            ,(package-version emacs-ghub))
+             (string-append "MAGIT_POPUP_DIR="
+                            (assoc-ref %build-inputs "magit-popup")
+                            "/share/emacs/site-lisp/guix.d/magit-popup-"
+                            ,(package-version emacs-magit-popup))
              (string-append "WITH_EDITOR_DIR="
                             (assoc-ref %build-inputs "with-editor")
                             "/share/emacs/site-lisp/guix.d/with-editor-"
@@ -481,7 +490,7 @@ on stdout instead of using a socket as the Emacsclient does.")
               (substitute* "lisp/magit-sequence.el"
                 (("perl") (string-append perl "/bin/perl")))
               #t))))))
-    (home-page "http://magit.github.io/")
+    (home-page "https://magit.vc/")
     (synopsis "Emacs interface for the Git version control system")
     (description
      "With Magit, you can inspect and modify your Git repositories with Emacs.
-- 
2.15.1

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [bug#31275] Update 'magit' and add 'emacs-ghub'
  2018-04-26 20:11 [bug#31275] Update 'magit' and add 'emacs-ghub' Alex Kost
  2018-04-26 20:14 ` [bug#31275] [PATCH 1/2] gnu: Add emacs-ghub Alex Kost
@ 2018-04-28 21:23 ` Ludovic Courtès
  2018-05-02 16:31   ` bug#31275: " Alex Kost
  1 sibling, 1 reply; 5+ messages in thread
From: Ludovic Courtès @ 2018-04-28 21:23 UTC (permalink / raw)
  To: Alex Kost; +Cc: 31275

Hi Alex,

Alex Kost <alezost@gmail.com> skribis:

> the new version of Magit requires a new dependency - "ghub.el".
> So the upcoming 2 patches add the required package and update magit.

Both LGTM, thank you for taking care of this.

Ludo’.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#31275: Update 'magit' and add 'emacs-ghub'
  2018-04-28 21:23 ` [bug#31275] Update 'magit' and add 'emacs-ghub' Ludovic Courtès
@ 2018-05-02 16:31   ` Alex Kost
  0 siblings, 0 replies; 5+ messages in thread
From: Alex Kost @ 2018-05-02 16:31 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: 31275-done

Ludovic Courtès (2018-04-28 23:23 +0200) wrote:

> Hi Alex,
>
> Alex Kost <alezost@gmail.com> skribis:
>
>> the new version of Magit requires a new dependency - "ghub.el".
>> So the upcoming 2 patches add the required package and update magit.
>
> Both LGTM, thank you for taking care of this.

The patches applied, thanks!

-- 
Alex

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2018-05-02 16:32 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-04-26 20:11 [bug#31275] Update 'magit' and add 'emacs-ghub' Alex Kost
2018-04-26 20:14 ` [bug#31275] [PATCH 1/2] gnu: Add emacs-ghub Alex Kost
2018-04-26 20:14   ` [bug#31275] [PATCH 2/2] gnu: magit: Update to 2.12.1 Alex Kost
2018-04-28 21:23 ` [bug#31275] Update 'magit' and add 'emacs-ghub' Ludovic Courtès
2018-05-02 16:31   ` bug#31275: " Alex Kost

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).