Subject: bug#37294: closed (Re: [bug#37294] [PATCH] Add emacs-pubmed.)

From: [email-masked] (GNU bug Tracking System)
Date: Tue, 03 Sep 2019 20:39:07 +0000

Your bug report

#37294: [PATCH] Add emacs-pubmed.

which was filed against the guix-patches package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
37294: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=37294
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: [bug#37294] [PATCH] Add emacs-pubmed.
From: Oleg Pyhalov <[email-masked]>
To: Brian Leung <[email-masked]>
Cc: [email-masked], [email-masked]
Date: Tue, 03 Sep 2019 23:38:04 +0300
List-Id: <debbugs-submit.debbugs.gnu.org>

Pushed to master.

Thanks,
Oleg.

Subject: [PATCH] Add emacs-pubmed.
From: Brian Leung <[email-masked]>
To: [email-masked]
Date: Tue, 3 Sep 2019 05:19:45 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

See attached.
From 6246080c3e03b0c1365716e42cd7052ab6658fc8 Mon Sep 17 00:00:00 2001
From: Brian Leung <[email-masked]>
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

From e64e7d92597c6a6b070fadaa9b1843fd23845228 Mon Sep 17 00:00:00 2001
From: Brian Leung <[email-masked]>
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