Subject: [PATCH] gnu: emacs-org-ref: Update to 3.0-0.bb375f3.

From: Cayetano Santos <[email-masked]>
Date: Sat, 19 Aug 2023 18:10:00 +0200

* gnu/packages/emacs-xyz.scm (emacs-org-ref): Update to 3.0-0.bb375f3.
---
 gnu/packages/emacs-xyz.scm | 70 ++++++++++++++++++++++----------------
 1 file changed, 41 insertions(+), 29 deletions(-)

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index 0f0751e39a..25403b6e73 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -24146,34 +24146,46 @@ (define-public emacs-discover-my-major
     (license license:gpl3+)))
 
 (define-public emacs-org-ref
-  (package
-    (name "emacs-org-ref")
-    (version "2.0.0")
-    (source
-     (origin
-       (method git-fetch)
-       (uri (git-reference
-             (url "https://github.com/jkitchin/org-ref")
-             (commit (string-append "v" version))))
-       (file-name (git-file-name name version))
-       (sha256
-        (base32 "0xd1qp8dfy8n8b2n3rsdzm8vrfl7dii142kw330s8jp3pavww1f6"))))
-    (build-system emacs-build-system)
-    (propagated-inputs
-     (list emacs-dash
-           emacs-f
-           emacs-helm
-           emacs-helm-bibtex
-           emacs-htmlize
-           emacs-hydra
-           emacs-ivy
-           emacs-key-chord
-           emacs-pdf-tools
-           emacs-s))
-    (home-page "https://github.com/jkitchin/org-ref")
-    (synopsis "Citations, cross-references and bibliographies in Org mode")
-    (description
-     "Org Ref is an Emacs library that provides rich support for citations,
+  (let ((commit "bb375f366f883e5b60e3bb625f2acd026811fb55")
+        (revision "0"))
+    (package
+      (name "emacs-org-ref")
+      (version (git-version "3.0" revision commit))
+      (source
+       (origin
+         (method git-fetch)
+         (uri (git-reference
+               (url "https://github.com/jkitchin/org-ref")
+               (commit commit)))
+         (file-name (git-file-name name version))
+         (sha256
+          (base32
+           "01wxcyzdrx6ysv9rjd64fr7kkvm4fjr03ib4mmpchraxxm8g8z43"))))
+      (build-system emacs-build-system)
+      (arguments
+       (list
+        #:include #~(cons* "org-ref.org" "org-ref.bib" %default-include)
+        #:exclude #~(list
+                     "openalex.el" ; github.com/jkitchin/org-ref/issues/1085
+                     "org-ref-pdf.el" ; author doesn't recommend using it
+                     )))
+      (propagated-inputs
+       (list emacs-dash
+             emacs-f
+             emacs-helm
+             emacs-avy
+             emacs-parsebib
+             emacs-helm-bibtex
+             emacs-ox-pandoc
+             emacs-citeproc-el
+             emacs-htmlize
+             emacs-hydra
+             emacs-ivy
+             emacs-s))
+      (home-page "https://github.com/jkitchin/org-ref")
+      (synopsis "Citations, cross-references and bibliographies in Org mode")
+      (description
+       "Org Ref is an Emacs library that provides rich support for citations,
 labels and cross-references in Org mode.
 
 The basic idea of Org Ref is that it defines a convenient interface to insert
@@ -24191,7 +24203,7 @@ (define-public emacs-org-ref
 Org Ref is especially suitable for Org documents destined for LaTeX export and
 scientific publication.  Org Ref is also useful for research documents and
 notes.")
-    (license license:gpl3+)))
+      (license license:gpl3+))))
 
 (define-public emacs-org-reveal
   (let ((commit "f55c851bf6aeb1bb2a7f6cf0f2b7bd0e79c4a5a0"))

base-commit: 18b6e309cec3a0c9c7401b131e18612914f1fcf9
-- 
2.41.0