From: Oleg Pykhalov <go.wigust@gmail.com>
To: 36999@debbugs.gnu.org
Cc: Oleg Pykhalov <go.wigust@gmail.com>
Subject: [bug#36999] [PATCH 4/4] gnu: Add emacs-forge.
Date: Sat, 5 Oct 2019 22:19:29 +0300 [thread overview]
Message-ID: <20191005191929.7356-5-go.wigust@gmail.com> (raw)
In-Reply-To: <20191005191929.7356-1-go.wigust@gmail.com>
* 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
next prev parent reply other threads:[~2019-10-05 19:21 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
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 ` Oleg Pykhalov [this message]
2019-10-13 19:45 ` bug#36999: emacs-forge pushed to master Oleg Pykhalov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20191005191929.7356-5-go.wigust@gmail.com \
--to=go.wigust@gmail.com \
--cc=36999@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).