From: Brian Leung <bkleung89@gmail.com>
To: 37294@debbugs.gnu.org
Subject: [bug#37294] [PATCH] Add emacs-pubmed.
Date: Tue, 3 Sep 2019 05:19:45 +0200 [thread overview]
Message-ID: <CAAc=MEz6XvK6-z9dg8WZ82v2jiP==MX0TRZbZzr-QVDr+PkQmg@mail.gmail.com> (raw)
[-- Attachment #1.1: Type: text/plain, Size: 14 bytes --]
See attached.
[-- Attachment #1.2: Type: text/html, Size: 35 bytes --]
[-- Attachment #2: 0002-gnu-Add-emacs-pubmed.patch --]
[-- Type: text/x-patch, Size: 1719 bytes --]
From 6246080c3e03b0c1365716e42cd7052ab6658fc8 Mon Sep 17 00:00:00 2001
From: Brian Leung <bkleung89@gmail.com>
Date: Tue, 3 Sep 2019 05:13:36 +0200
Subject: [PATCH 2/2] gnu: Add emacs-pubmed.
* gnu/packages/emacs-xyz.scm (emacs-pubmed): New variable.
---
gnu/packages/emacs-xyz.scm | 26 ++++++++++++++++++++++++++
1 file changed, 26 insertions(+)
diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index f2676025e1..258fa8a3bf 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -9651,6 +9651,32 @@ included by default, and more can be readily added.")
(description "This package provides functions for converting Unicode to ASCII.")
(license license:gpl2+))))
+(define-public emacs-pubmed
+ (package
+ (name "emacs-pubmed")
+ (version "0.2.1")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://gitlab.com/fvdbeek/emacs-pubmed.git")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "15bwjxc7g43m5pi8z17anaqqkvi209r7kk1chmf175477gvrv7c0"))))
+ (build-system emacs-build-system)
+ (propagated-inputs
+ `(("emacs-deferred" ,emacs-deferred)
+ ("emacs-esxml" ,emacs-esxml)
+ ("emacs-s" ,emacs-s)
+ ("emacs-unidecode" ,emacs-unidecode)))
+ (home-page "https://gitlab.com/fvdbeek/emacs-pubmed")
+ (synopsis "Interface to PubMed")
+ (description "This package provides an Emacs interface to the PubMed
+database of references on life sciences.")
+ (license license:gpl3+)))
+
(define-public emacs-websocket
(package
(name "emacs-websocket")
--
2.23.0
[-- Attachment #3: 0001-gnu-Add-emacs-unidecode.patch --]
[-- Type: text/x-patch, Size: 2557 bytes --]
From e64e7d92597c6a6b070fadaa9b1843fd23845228 Mon Sep 17 00:00:00 2001
From: Brian Leung <bkleung89@gmail.com>
Date: Mon, 26 Aug 2019 19:16:45 +0200
Subject: [PATCH 1/2] gnu: Add emacs-unidecode.
* gnu/packages/emacs-xyz.scm (emacs-unidecode): New variable.
---
gnu/packages/emacs-xyz.scm | 43 ++++++++++++++++++++++++++++++++++++++
1 file changed, 43 insertions(+)
diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index 0c6077770b..f2676025e1 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -9608,6 +9608,49 @@ subsequent invocations can be readily customized. Several recipes are
included by default, and more can be readily added.")
(license license:gpl3+))))
+(define-public emacs-unidecode
+ (let ((commit "5502ada9287b4012eabb879f12f5b0a9df52c5b7")
+ (revision "1"))
+ (package
+ (name "emacs-unidecode")
+ (version (git-version "0.2" revision commit))
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/sindikat/unidecode")
+ (commit commit)))
+ (sha256
+ (base32
+ "03x3nakbhmakwm977mwrf8jifvjnfwzpjv6wrwpizbqjnkgfchmn"))))
+ (build-system emacs-build-system)
+ (arguments
+ `(#:include (cons* "^tools/" "^data/" %default-include)
+ #:tests? #t
+ #:test-command '("emacs" "--batch"
+ "-l" "unidecode-test.el"
+ "-f" "ert-run-tests-batch-and-exit")
+ #:phases
+ (modify-phases %standard-phases
+ (add-before 'check 'make-tests-writable
+ (lambda _
+ (make-file-writable "unidecode-test.el")
+ #t))
+ (add-before 'check 'add-require
+ (lambda _
+ (emacs-batch-edit-file "unidecode-test.el"
+ `(progn (progn (goto-char (point-min))
+ (re-search-forward
+ "ert-deftest")
+ (forward-line -1)
+ (insert "(require 'unidecode)"))
+ (basic-save-buffer)))
+ #t)))))
+ (home-page "https://github.com/sindikat/unidecode")
+ (synopsis "Transliterate Unicode text to ASCII")
+ (description "This package provides functions for converting Unicode to ASCII.")
+ (license license:gpl2+))))
+
(define-public emacs-websocket
(package
(name "emacs-websocket")
--
2.23.0
next reply other threads:[~2019-09-03 3:21 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-09-03 3:19 Brian Leung [this message]
2019-09-03 20:38 ` [bug#37294] [PATCH] Add emacs-pubmed Oleg Pyhalov
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='CAAc=MEz6XvK6-z9dg8WZ82v2jiP==MX0TRZbZzr-QVDr+PkQmg@mail.gmail.com' \
--to=bkleung89@gmail.com \
--cc=37294@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).