Subject: [bug#39878] gnu: add emacs-bookmarks+

From: [email-masked] (Amar M. Singh)
Date: Tue, 03 Mar 2020 11:41:13 +0530

Add package emacs-bookmarks+.

Can someone help me with this build?  Bookmarks+ requiers
bookmarks+-mac.el to be loaded to be able to compile the other files.

Emacswiki: https://www.emacswiki.org/emacs/BookmarkPlus
Richer bookmarks. They record more. They are more accurate.

Thanks,
Amar
>From e2b74ed78da1d24206847fe94fb885ff46cac563 Mon Sep 17 00:00:00 2001
From: Amar Singh <[email-masked]>
Date: Tue, 3 Mar 2020 10:55:16 +0530
Subject: [PATCH] gnu: Add emacs-bookmark+.

* gnu/packages/emacs-xyz.scm (emacs-bookmark+): New variable.
---
 gnu/packages/emacs-xyz.scm | 36 ++++++++++++++++++++++++++++++++++++
 1 file changed, 36 insertions(+)

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index be0e6a84c2..1ac5f77bb7 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -21536,3 +21536,39 @@ Values are stored in a directory in @code{user-emacs-directory}, using
 one file per value.  This makes it easy to delete or remove unused
 variables.")
     (license license:gpl3+)))
+
+(define-public emacs-bookmark+
+  (package
+    (name "emacs-bookmark+")
+    (version "2020.01.22")
+    (source (origin
+              (method url-fetch)
+              (uri (map (lambda (x)
+                          (string-append
+                           "https://www.emacswiki.org/emacs/download/" x))
+                        `("bookmark+.el"
+                          "bookmark+-mac.el"
+                          "bookmark+-bmu.el"
+                          "bookmark+-key.el"
+                          "bookmark+-lit.el"
+                          "bookmark+-1.el")))
+              (sha256
+               (base32
+                "1dkpszmflik3yhv05w8rvi6vz1mzgapncb5y231r6mwy40rphyhi"))))
+    (build-system emacs-build-system)
+    (arguments
+     `(#:phases
+       (modify-phases %standard-phases
+         (add-before 'build 'build-mac
+           (lambda* (#:key outputs #:allow-other-keys)
+             (let ((out (assoc-ref outputs "out")))
+               (invoke "emacs" "-Q" "--batch"
+                       "--eval='(byte-compile-file \"bookmark+-mac.el\"'")))))))
+    (home-page "https://www.emacswiki.org/emacs/bookmark%2b.el")
+    (synopsis "Bookmark+: extensions to standard library `bookmark.el'")
+    (description "Bookmark+ builds on vanilla Emacs bookmarks.  An optional
+bookmark annotation is user-supplied text that is saved as part of the
+bookmark.  You can tag bookmarks.  You can have multiple bookmarks with the
+same name.  Bookmarks record the number of times you have visited them and the
+time of the last visit.")
+    (license license:gpl3+)))
-- 
2.25.1