* [bug#36999] [PATCH] gnu: Add emacs-forge.
@ 2019-08-10 16:18 Oleg Pykhalov
2019-08-11 17:39 ` Brian Leung
` (2 more replies)
0 siblings, 3 replies; 10+ messages in thread
From: Oleg Pykhalov @ 2019-08-10 16:18 UTC (permalink / raw)
To: 36999
* gnu/packages/emacs-xyz.scm (emacs-forge): New variable.
---
gnu/packages/emacs-xyz.scm | 79 ++++++++++++++++++++++++++++++++++++++
1 file changed, 79 insertions(+)
diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index 1681cecbcf..40618406b1 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -15789,6 +15789,85 @@ command\", but because it always involves at least two commands (a prefix and
a suffix) we prefer to call it just a \"transient\".")
(license license:gpl3+))))
+(define-public emacs-forge
+ (let ((commit "a60bd64056ec910fdbd1400dd8f583b8eec6145b"))
+ (package
+ (name "emacs-forge")
+ (version (git-version "0.1.0" "1" commit))
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/magit/forge.git")
+ (commit commit)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "1dhpsnb82mxpv3krf3apsbcirlcizw3g9gac9sfn0fad20qjwpgj"))))
+ (build-system gnu-build-system)
+ (native-inputs
+ `(("texinfo" ,texinfo)
+ ("emacs" ,emacs-minimal)))
+ (propagated-inputs
+ `(("emacs-closql" ,emacs-closql)
+ ("emacs-dash" ,emacs-dash)
+ ("emacs-emacsql-sqlite" ,emacs-emacsql)
+ ("emacs-ghub" ,emacs-ghub)
+ ("emacs-let-alist" ,emacs-let-alist)
+ ("emacs-magit" ,emacs-magit)
+ ("emacs-markdown-mode" ,emacs-markdown-mode)
+ ("emacs-transient" ,emacs-transient)))
+ (arguments
+ `(#:tests? #f ;no tests
+ #:modules ((srfi srfi-26)
+ (guix build gnu-build-system)
+ ((guix build emacs-build-system) #:prefix emacs:)
+ (guix build utils)
+ (guix build emacs-utils))
+ #:imported-modules (,@%gnu-build-system-modules
+ (guix build emacs-build-system)
+ (guix build emacs-utils))
+ #:phases
+ (modify-phases %standard-phases
+ (delete 'configure)
+ (delete 'install)
+ (add-after 'unpack 'delete-doc-targets
+ (lambda _
+ (substitute* "./Makefile"
+ (("lisp docs") "lisp"))))
+ (add-after 'delete-doc-targets 'emacs-set-emacs-load-path
+ (assoc-ref emacs:%standard-phases 'set-emacs-load-path))
+ (add-after 'emacs-set-emacs-load-path 'chdir-lisp
+ (lambda _
+ (chdir "lisp")))
+ (add-after 'chdir-lisp 'emacs-install
+ (assoc-ref emacs:%standard-phases 'install))
+ (add-after 'emacs-install 'emacs-make-autoloads
+ (assoc-ref emacs:%standard-phases 'make-autoloads))
+ (add-after 'build 'install-elc
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let* ((out (assoc-ref outputs "out"))
+ (el-dir (string-append
+ out "/share/emacs/site-lisp/guix.d/forge-"
+ ,version)))
+ (for-each (cut install-file <> el-dir)
+ (find-files "." "\\.elc"))
+ #t)))
+ (add-after 'install-elc 'install-doc
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let* ((out (assoc-ref outputs "out"))
+ (info (string-append out "/share/info")))
+ (with-directory-excursion "../docs"
+ (invoke "makeinfo" "forge.texi")
+ (install-file "forge.info" info)
+ #t)))))))
+ (home-page "https://github.com/magit/ghub/")
+ (synopsis "Access Git forges from Magit")
+ (description
+ "Work with Git forges, such as Github and Gitlab, from the comfort of
+Magit and the rest of Emacs.")
+ (license license:gpl3+))))
+
(define-public emacs-matcha
(let ((commit "c7df5cf5cdac9ae369e241342389ccda0205eab9"))
(package
--
2.22.0
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [bug#36999] [PATCH] gnu: Add emacs-forge.
2019-08-10 16:18 [bug#36999] [PATCH] gnu: Add emacs-forge Oleg Pykhalov
@ 2019-08-11 17:39 ` Brian Leung
2019-08-14 6:08 ` Brian Leung
2019-10-05 19:19 ` [bug#36999] [PATCH 0/4] More test and then merge to master Oleg Pykhalov
2019-10-13 19:45 ` bug#36999: emacs-forge pushed to master Oleg Pykhalov
2 siblings, 1 reply; 10+ messages in thread
From: Brian Leung @ 2019-08-11 17:39 UTC (permalink / raw)
To: 36999, Oleg Pykhalov
[-- Attachment #1: Type: text/plain, Size: 426 bytes --]
Hi Oleg,
I notice that emacs-forge, in its forge-pkg.el file, mentions newer
dependencies than what we currently have: ghub version 20190319, which
apparently contains a fix for a relevant bug; and Magit version 20190408.
I'm not sure how important the update to Magit is, and this newer version
of Magit also happens to depend on an additional package, libegit2. It
might be nice to update our version of ghub.
Best,
Brian
[-- Attachment #2: Type: text/html, Size: 526 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* [bug#36999] [PATCH] gnu: Add emacs-forge.
2019-08-11 17:39 ` Brian Leung
@ 2019-08-14 6:08 ` Brian Leung
2019-08-18 9:26 ` Oleg Pyhalov
0 siblings, 1 reply; 10+ messages in thread
From: Brian Leung @ 2019-08-14 6:08 UTC (permalink / raw)
To: 36999, Oleg Pykhalov
[-- Attachment #1.1: Type: text/plain, Size: 672 bytes --]
Hi Oleg,
I've made a patch off the latest master branch with a version of emacs-ghub
that should meet the requirements of emacs-forge.
Best,
Brian
On Sun, Aug 11, 2019 at 7:39 PM Brian Leung <bkleung89@gmail.com> wrote:
> Hi Oleg,
>
> I notice that emacs-forge, in its forge-pkg.el file, mentions newer
> dependencies than what we currently have: ghub version 20190319, which
> apparently contains a fix for a relevant bug; and Magit version 20190408.
> I'm not sure how important the update to Magit is, and this newer version
> of Magit also happens to depend on an additional package, libegit2. It
> might be nice to update our version of ghub.
>
> Best,
> Brian
>
[-- Attachment #1.2: Type: text/html, Size: 1106 bytes --]
[-- Attachment #2: 0001-gnu-emacs-ghub-Update-to-3.2.0-1.7d59937.patch --]
[-- Type: text/x-patch, Size: 3399 bytes --]
From 8f7c7623743cf2b0bc06b9ae34bac7ac2b1e7994 Mon Sep 17 00:00:00 2001
From: Brian Leung <bkleung89@gmail.com>
Date: Wed, 14 Aug 2019 08:04:20 +0200
Subject: [PATCH] gnu: emacs-ghub: Update to 3.2.0-1.7d59937.
* gnu/packages/emacs-xyz.scm (emacs-ghub): Update to 3.2.0-1.7d59937.
---
gnu/packages/emacs-xyz.scm | 62 ++++++++++++++++++++------------------
1 file changed, 32 insertions(+), 30 deletions(-)
diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index 6e612cab56..23e5e09d2a 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -521,39 +521,41 @@ deliver data to mobile and web apps.")
(license license:gpl3+)))
(define-public emacs-ghub
- (package
- (name "emacs-ghub")
- (version "3.2.0")
- (source (origin
- (method git-fetch)
- (uri (git-reference
- (url "https://github.com/magit/ghub")
- (commit (string-append "v" version))))
- (file-name (git-file-name name version))
- (sha256
- (base32
- "0lp52qygyavddl1lrgsyb6mq7hcf9h89dy2pzya3mb2va49f0vvl"))))
- (build-system emacs-build-system)
- (arguments
- `(#:phases
- (modify-phases %standard-phases
- (add-before 'install 'make-info
- (lambda _
- (invoke "make" "info"))))))
- (native-inputs
- `(("texinfo" ,texinfo)))
- (propagated-inputs
- `(("dash" ,emacs-dash)
- ("graphql" ,emacs-graphql)
- ("treepy" ,emacs-treepy)))
- (home-page "https://github.com/magit/ghub")
- (synopsis "Emacs client libraries for the APIs of various Git forges")
- (description
- "Ghub provides basic support for using the APIs of various Git forges from
+ ;; We need a newer commit to avoid problems in emacs-forge.
+ (let ((commit "7d59937d7782d0062216130a4d059b45e8396f82")
+ (revision "1"))
+ (package
+ (name "emacs-ghub")
+ (version (git-version "3.2.0" revision commit))
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/magit/ghub")
+ (commit commit)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "1ngb61nij9gznqplwg1fmr1vq1czry759hmdibzngl4wqhxpfsjq"))))
+ (build-system emacs-build-system)
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ (add-before 'install 'make-info
+ (lambda _
+ (invoke "make" "info"))))))
+ (native-inputs
+ `(("texinfo" ,texinfo)))
+ (propagated-inputs
+ `(("dash" ,emacs-dash)
+ ("treepy" ,emacs-treepy)))
+ (home-page "https://github.com/magit/ghub")
+ (synopsis "Emacs client libraries for the APIs of various Git forges")
+ (description
+ "Ghub provides basic support for using the APIs of various Git forges from
Emacs packages. It supports the REST APIs of Github, Github GraphQL, Gitlab,
Gitea, Gogs and Bitbucket. It abstracts access to API resources using only a
handful of functions that are not resource-specific.")
- (license license:gpl3+)))
+ (license license:gpl3+))))
(define-public emacs-scribble-mode
(let ((commit "34e9e5edb921813b6483e0fefa848efb6ee4b314")
--
2.22.0
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [bug#36999] [PATCH] gnu: Add emacs-forge.
2019-08-14 6:08 ` Brian Leung
@ 2019-08-18 9:26 ` Oleg Pyhalov
0 siblings, 0 replies; 10+ messages in thread
From: Oleg Pyhalov @ 2019-08-18 9:26 UTC (permalink / raw)
To: Brian Leung; +Cc: 36999
[-- Attachment #1: Type: text/plain, Size: 1132 bytes --]
Hi Brian,
Apologies for a delay with response.
Brian Leung <bkleung89@gmail.com> writes:
> Hi Oleg,
>
> I've made a patch off the latest master branch with a version of emacs-ghub
> that should meet the requirements of emacs-forge.
Thank you!
[…]
>> I notice that emacs-forge, in its forge-pkg.el file, mentions newer
>> dependencies than what we currently have: ghub version 20190319, which
>> apparently contains a fix for a relevant bug; and Magit version 20190408.
>> I'm not sure how important the update to Magit is, and this newer version
>> of Magit also happens to depend on an additional package, libegit2. It
>> might be nice to update our version of ghub.
Unfortunately Magit update is needed, because on a GitLab instance you
could list issues but not open them to take a look on a content.
New Magit requires https://github.com/magit/libegit2 which I try to
build, but stuck. I succeeded to build ‘libgit2.so’ and load it in
Emacs, but ‘featurep’ procedure says that feature is not loaded.
I think we should not merge partially working emacs-forge.
Regards,
Oleg.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* [bug#36999] [PATCH 0/4] More test and then merge to master
2019-08-10 16:18 [bug#36999] [PATCH] gnu: Add emacs-forge Oleg Pykhalov
2019-08-11 17:39 ` Brian Leung
@ 2019-10-05 19:19 ` Oleg Pykhalov
2019-10-05 19:19 ` [bug#36999] [PATCH 1/4] gnu: emacs-magit: Update to 2.90.1-1.c761d28 Oleg Pykhalov
` (3 more replies)
2019-10-13 19:45 ` bug#36999: emacs-forge pushed to master Oleg Pykhalov
2 siblings, 4 replies; 10+ messages in thread
From: Oleg Pykhalov @ 2019-10-05 19:19 UTC (permalink / raw)
To: 36999; +Cc: Oleg Pykhalov
Hi,
Apologies for a delay.
I have issue with a broken magit ‘magit-copy-buffer-revision’ procedure and
then the forge broked after Emacs upgrade to 26.3. I've fixed both issues and
need more time for test before pushing to master.
Oleg Pykhalov (4):
gnu: emacs-magit: Update to 2.90.1-1.c761d28.
gnu: emacs-ghub: Update to 3.2.0-1.cf0b13a.
gnu: emacs-closql: Update to 1.0.0-1.70b98db.
gnu: Add emacs-forge.
gnu/packages/emacs-xyz.scm | 235 ++++++++++++++++++++++++++++---------
1 file changed, 179 insertions(+), 56 deletions(-)
--
2.23.0
^ permalink raw reply [flat|nested] 10+ messages in thread
* [bug#36999] [PATCH 1/4] gnu: emacs-magit: Update to 2.90.1-1.c761d28.
2019-10-05 19:19 ` [bug#36999] [PATCH 0/4] More test and then merge to master Oleg Pykhalov
@ 2019-10-05 19:19 ` Oleg Pykhalov
2019-10-05 19:19 ` [bug#36999] [PATCH 2/4] gnu: emacs-ghub: Update to 3.2.0-1.cf0b13a Oleg Pykhalov
` (2 subsequent siblings)
3 siblings, 0 replies; 10+ messages in thread
From: Oleg Pykhalov @ 2019-10-05 19:19 UTC (permalink / raw)
To: 36999; +Cc: Oleg Pykhalov
* gnu/packages/emacs-xyz.scm (emacs-magit): Update to 2.90.1-1.c761d28.
[arguments]: Add patch phase.
---
gnu/packages/emacs-xyz.scm | 50 ++++++++++++++++++++++++++++++++++----
1 file changed, 45 insertions(+), 5 deletions(-)
diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index afa21ee19e..7044b92240 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -265,21 +265,28 @@ on stdout instead of using a socket as the Emacsclient does.")
(license license:gpl3+)))
(define-public emacs-magit
- ;; Version 2.90.1 has trouble loading the transient library,
- ;; so we use a more recent commit that fixes it.
- (let ((commit "b4aec016b5577afa8d889f258b499814d1bb1d94"))
+ ;; `magit-setup-buffer' macro introduced in c761d28d and required in
+ ;; `emacs-forge'.
+ (let ((commit "c761d28d49e5238037512b898db0ec9b40d85770"))
(package
(name "emacs-magit")
(version (git-version "2.90.1" "1" commit))
(source (origin
(method git-fetch)
(uri (git-reference
- (url "https://github.com/magit/magit")
+ (url "https://github.com/magit/magit.git")
(commit commit)))
(file-name (git-file-name name version))
(sha256
(base32
- "0zl7v6z0y50pcgqsf2r8c1k3r5nwjad9ba7r6sgrnf4rc62br7jv"))))
+ "16qx0404l05q1m6w7y5j8ck1z5nfmpinm00w0p2yh1hn5zzwy6dd"))
+ (modules '((guix build utils)))
+ (snippet
+ '(begin
+ ;; Fix syntax error
+ (substitute* "lisp/magit-extras.el"
+ (("rev\\)\\)\\)\\)\\)\\)") "rev)))))"))
+ #t))))
(build-system gnu-build-system)
(native-inputs `(("texinfo" ,texinfo)
("emacs" ,emacs-minimal)))
@@ -318,6 +325,39 @@ on stdout instead of using a socket as the Emacsclient does.")
#:phases
(modify-phases %standard-phases
+ (add-after 'unpack 'patch
+ (lambda _
+ (chmod "lisp/magit-extras.el" #o644)
+ (emacs-batch-edit-file "lisp/magit-extras.el"
+ `(progn (progn
+ (goto-char (point-min))
+ (re-search-forward "(defun magit-copy-buffer-revision ()")
+ (forward-sexp 2)
+ (kill-sexp)
+ (insert ,(format #f "~S"
+ '(if (use-region-p)
+ (copy-region-as-kill nil nil 'region)
+ (when-let ((rev (cl-case major-mode
+ ((magit-cherry-mode
+ magit-log-select-mode
+ magit-reflog-mode
+ magit-refs-mode
+ magit-revision-mode
+ magit-stash-mode
+ magit-stashes-mode)
+ (car magit-refresh-args))
+ ((magit-diff-mode magit-log-mode)
+ (let ((r (caar magit-refresh-args)))
+ (if (string-match "\\.\\.\\.?\\(.+\\)" r)
+ (match-string 1 r)
+ r)))
+ (magit-status-mode "HEAD"))))
+ (when (magit-commit-p rev)
+ (setq rev (magit-rev-parse rev))
+ (push (list rev default-directory) magit-revision-stack)
+ (kill-new (message "%s" rev))))))))
+ (basic-save-buffer)))
+ #t))
(delete 'configure)
(add-before
'build 'patch-exec-paths
--
2.23.0
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [bug#36999] [PATCH 2/4] gnu: emacs-ghub: Update to 3.2.0-1.cf0b13a.
2019-10-05 19:19 ` [bug#36999] [PATCH 0/4] More test and then merge to master Oleg Pykhalov
2019-10-05 19:19 ` [bug#36999] [PATCH 1/4] gnu: emacs-magit: Update to 2.90.1-1.c761d28 Oleg Pykhalov
@ 2019-10-05 19:19 ` Oleg Pykhalov
2019-10-05 19:19 ` [bug#36999] [PATCH 3/4] gnu: emacs-closql: Update to 1.0.0-1.70b98db Oleg Pykhalov
2019-10-05 19:19 ` [bug#36999] [PATCH 4/4] gnu: Add emacs-forge Oleg Pykhalov
3 siblings, 0 replies; 10+ messages in thread
From: Oleg Pykhalov @ 2019-10-05 19:19 UTC (permalink / raw)
To: 36999; +Cc: Oleg Pykhalov
* gnu/packages/emacs-xyz.scm (emacs-ghub): Update to 3.2.0-1.cf0b13a.
---
gnu/packages/emacs-xyz.scm | 62 ++++++++++++++++++++------------------
1 file changed, 32 insertions(+), 30 deletions(-)
diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index 7044b92240..807b0260cd 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -564,39 +564,41 @@ deliver data to mobile and web apps.")
(license license:gpl3+)))
(define-public emacs-ghub
- (package
- (name "emacs-ghub")
- (version "3.2.0")
- (source (origin
- (method git-fetch)
- (uri (git-reference
- (url "https://github.com/magit/ghub")
- (commit (string-append "v" version))))
- (file-name (git-file-name name version))
- (sha256
- (base32
- "0lp52qygyavddl1lrgsyb6mq7hcf9h89dy2pzya3mb2va49f0vvl"))))
- (build-system emacs-build-system)
- (arguments
- `(#:phases
- (modify-phases %standard-phases
- (add-before 'install 'make-info
- (lambda _
- (invoke "make" "info"))))))
- (native-inputs
- `(("texinfo" ,texinfo)))
- (propagated-inputs
- `(("dash" ,emacs-dash)
- ("graphql" ,emacs-graphql)
- ("treepy" ,emacs-treepy)))
- (home-page "https://github.com/magit/ghub")
- (synopsis "Emacs client libraries for the APIs of various Git forges")
- (description
- "Ghub provides basic support for using the APIs of various Git forges from
+ ;; We need a newer commit to avoid problems in emacs-forge.
+ (let ((commit "cf0b13aeba4df3798e49c205cac2d8fefd53a137")
+ (revision "1"))
+ (package
+ (name "emacs-ghub")
+ (version (git-version "3.2.0" revision commit))
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/magit/ghub")
+ (commit commit)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "0fzayvcysk80vv4q332axcjf80x6gsnpcbl0svmpb017ii6wxhid"))))
+ (build-system emacs-build-system)
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ (add-before 'install 'make-info
+ (lambda _
+ (invoke "make" "info"))))))
+ (native-inputs
+ `(("texinfo" ,texinfo)))
+ (propagated-inputs
+ `(("dash" ,emacs-dash)
+ ("treepy" ,emacs-treepy)))
+ (home-page "https://github.com/magit/ghub")
+ (synopsis "Emacs client libraries for the APIs of various Git forges")
+ (description
+ "Ghub provides basic support for using the APIs of various Git forges from
Emacs packages. It supports the REST APIs of Github, Github GraphQL, Gitlab,
Gitea, Gogs and Bitbucket. It abstracts access to API resources using only a
handful of functions that are not resource-specific.")
- (license license:gpl3+)))
+ (license license:gpl3+))))
(define-public emacs-scribble-mode
(let ((commit "217945d54de5e4bb207033f2116baa28f5c5ecf2")
--
2.23.0
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [bug#36999] [PATCH 3/4] gnu: emacs-closql: Update to 1.0.0-1.70b98db.
2019-10-05 19:19 ` [bug#36999] [PATCH 0/4] More test and then merge to master Oleg Pykhalov
2019-10-05 19:19 ` [bug#36999] [PATCH 1/4] gnu: emacs-magit: Update to 2.90.1-1.c761d28 Oleg Pykhalov
2019-10-05 19:19 ` [bug#36999] [PATCH 2/4] gnu: emacs-ghub: Update to 3.2.0-1.cf0b13a Oleg Pykhalov
@ 2019-10-05 19:19 ` Oleg Pykhalov
2019-10-05 19:19 ` [bug#36999] [PATCH 4/4] gnu: Add emacs-forge Oleg Pykhalov
3 siblings, 0 replies; 10+ messages in thread
From: Oleg Pykhalov @ 2019-10-05 19:19 UTC (permalink / raw)
To: 36999; +Cc: Oleg Pykhalov
* gnu/packages/emacs-xyz.scm (emacs-closql): Update to 1.0.0-1.70b98db.
---
gnu/packages/emacs-xyz.scm | 44 ++++++++++++++++++++------------------
1 file changed, 23 insertions(+), 21 deletions(-)
diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index 807b0260cd..c8f4af54ad 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -11356,31 +11356,33 @@ object @code{nil} corresponds 1:1 with @code{NULL} in the database.")
(license license:gpl3+)))
(define-public emacs-closql
- (package
- (name "emacs-closql")
- (version "1.0.0")
- (source
- (origin
- (method git-fetch)
- (uri (git-reference
- (url "https://github.com/emacscollective/closql.git")
- (commit (string-append "v" version))))
- (file-name (git-file-name name version))
- (sha256
- (base32
- "1xhpfjjkjqfc1k2rj77cscclz5r7gpvv3hi202x178vdcpipjwar"))))
- (build-system emacs-build-system)
- (propagated-inputs
- `(("emacs-emacsql" ,emacs-emacsql)))
- (home-page "https://github.com/emacscollective/closql")
- (synopsis "Store EIEIO objects using EmacSQL")
- (description
- "This package allows to store uniform EIEIO objects in an EmacSQL
+ ;; Take a commit newer than 1.0.0 release because of Emacs upgrade to 26.3.
+ (let ((commit "70b98dbae53611d10a461d9b4a6f71086910dcef"))
+ (package
+ (name "emacs-closql")
+ (version (git-version "1.0.0" "1" commit))
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/emacscollective/closql.git")
+ (commit commit)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "1wvhrihg663f61yzc7f0vha2abjdnlwbk0gjcwakdfk1bhwf5ikh"))))
+ (build-system emacs-build-system)
+ (propagated-inputs
+ `(("emacs-emacsql" ,emacs-emacsql)))
+ (home-page "https://github.com/emacscollective/closql")
+ (synopsis "Store EIEIO objects using EmacSQL")
+ (description
+ "This package allows to store uniform EIEIO objects in an EmacSQL
database. SQLite is used as backend. This library imposes some restrictions
on what kind of objects can be stored; it isn't intended to store arbitrary
objects. All objects have to share a common superclass and subclasses cannot
add any additional instance slots.")
- (license license:gpl3)))
+ (license license:gpl3))))
(define-public emacs-epkg
;; The release version is to old for the current database scheme.
--
2.23.0
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [bug#36999] [PATCH 4/4] gnu: Add emacs-forge.
2019-10-05 19:19 ` [bug#36999] [PATCH 0/4] More test and then merge to master Oleg Pykhalov
` (2 preceding siblings ...)
2019-10-05 19:19 ` [bug#36999] [PATCH 3/4] gnu: emacs-closql: Update to 1.0.0-1.70b98db Oleg Pykhalov
@ 2019-10-05 19:19 ` Oleg Pykhalov
3 siblings, 0 replies; 10+ messages in thread
From: Oleg Pykhalov @ 2019-10-05 19:19 UTC (permalink / raw)
To: 36999; +Cc: Oleg Pykhalov
* gnu/packages/emacs-xyz.scm (emacs-forge): New variable.
---
gnu/packages/emacs-xyz.scm | 79 ++++++++++++++++++++++++++++++++++++++
1 file changed, 79 insertions(+)
diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index c8f4af54ad..455b448d9d 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -17061,6 +17061,85 @@ command\", but because it always involves at least two commands (a prefix and
a suffix) we prefer to call it just a \"transient\".")
(license license:gpl3+))))
+(define-public emacs-forge
+ (let ((commit "a6721c071226ae8da6852e9330f2bdcba92a4577"))
+ (package
+ (name "emacs-forge")
+ (version (git-version "0.1.0" "1" commit))
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/magit/forge.git")
+ (commit commit)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "1gzr1di29a9szkzm6kjznq7c8md71cm5761pznf08nmmk63dl3zm"))))
+ (build-system gnu-build-system)
+ (native-inputs
+ `(("texinfo" ,texinfo)
+ ("emacs" ,emacs-minimal)))
+ (propagated-inputs
+ `(("emacs-closql" ,emacs-closql)
+ ("emacs-dash" ,emacs-dash)
+ ("emacs-emacsql-sqlite" ,emacs-emacsql)
+ ("emacs-ghub" ,emacs-ghub)
+ ("emacs-let-alist" ,emacs-let-alist)
+ ("emacs-magit" ,emacs-magit)
+ ("emacs-markdown-mode" ,emacs-markdown-mode)
+ ("emacs-transient" ,emacs-transient)))
+ (arguments
+ `(#:tests? #f ;no tests
+ #:modules ((srfi srfi-26)
+ (guix build gnu-build-system)
+ ((guix build emacs-build-system) #:prefix emacs:)
+ (guix build utils)
+ (guix build emacs-utils))
+ #:imported-modules (,@%gnu-build-system-modules
+ (guix build emacs-build-system)
+ (guix build emacs-utils))
+ #:phases
+ (modify-phases %standard-phases
+ (delete 'configure)
+ (delete 'install)
+ (add-after 'unpack 'delete-doc-targets
+ (lambda _
+ (substitute* "./Makefile"
+ (("lisp docs") "lisp"))))
+ (add-after 'delete-doc-targets 'emacs-set-emacs-load-path
+ (assoc-ref emacs:%standard-phases 'set-emacs-load-path))
+ (add-after 'emacs-set-emacs-load-path 'chdir-lisp
+ (lambda _
+ (chdir "lisp")))
+ (add-after 'chdir-lisp 'emacs-install
+ (assoc-ref emacs:%standard-phases 'install))
+ (add-after 'emacs-install 'emacs-make-autoloads
+ (assoc-ref emacs:%standard-phases 'make-autoloads))
+ (add-after 'build 'install-elc
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let* ((out (assoc-ref outputs "out"))
+ (el-dir (string-append
+ out "/share/emacs/site-lisp/guix.d/forge-"
+ ,version)))
+ (for-each (cut install-file <> el-dir)
+ (find-files "." "\\.elc"))
+ #t)))
+ (add-after 'install-elc 'install-doc
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let* ((out (assoc-ref outputs "out"))
+ (info (string-append out "/share/info")))
+ (with-directory-excursion "../docs"
+ (invoke "makeinfo" "forge.texi")
+ (install-file "forge.info" info)
+ #t)))))))
+ (home-page "https://github.com/magit/ghub/")
+ (synopsis "Access Git forges from Magit")
+ (description
+ "Work with Git forges, such as Github and Gitlab, from the comfort of
+Magit and the rest of Emacs.")
+ (license license:gpl3+))))
+
(define-public emacs-matcha
(let ((commit "c7df5cf5cdac9ae369e241342389ccda0205eab9"))
(package
--
2.23.0
^ permalink raw reply related [flat|nested] 10+ messages in thread
* bug#36999: emacs-forge pushed to master
2019-08-10 16:18 [bug#36999] [PATCH] gnu: Add emacs-forge Oleg Pykhalov
2019-08-11 17:39 ` Brian Leung
2019-10-05 19:19 ` [bug#36999] [PATCH 0/4] More test and then merge to master Oleg Pykhalov
@ 2019-10-13 19:45 ` Oleg Pykhalov
2 siblings, 0 replies; 10+ messages in thread
From: Oleg Pykhalov @ 2019-10-13 19:45 UTC (permalink / raw)
To: 36999; +Cc: 36999-done
[-- Attachment #1: Type: text/plain, Size: 137 bytes --]
Hi.
I didn't notice any issue with Magit and Forge. Pushed to master.
Thank you for help to package them and your suggestions!
Oleg.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2019-10-13 19:47 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-08-10 16:18 [bug#36999] [PATCH] gnu: Add emacs-forge Oleg Pykhalov
2019-08-11 17:39 ` Brian Leung
2019-08-14 6:08 ` Brian Leung
2019-08-18 9:26 ` Oleg Pyhalov
2019-10-05 19:19 ` [bug#36999] [PATCH 0/4] More test and then merge to master Oleg Pykhalov
2019-10-05 19:19 ` [bug#36999] [PATCH 1/4] gnu: emacs-magit: Update to 2.90.1-1.c761d28 Oleg Pykhalov
2019-10-05 19:19 ` [bug#36999] [PATCH 2/4] gnu: emacs-ghub: Update to 3.2.0-1.cf0b13a Oleg Pykhalov
2019-10-05 19:19 ` [bug#36999] [PATCH 3/4] gnu: emacs-closql: Update to 1.0.0-1.70b98db Oleg Pykhalov
2019-10-05 19:19 ` [bug#36999] [PATCH 4/4] gnu: Add emacs-forge Oleg Pykhalov
2019-10-13 19:45 ` bug#36999: emacs-forge pushed to master Oleg Pykhalov
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).