Subject: bug#49454: closed (Re: [bug#49454] [PATCH] gnu: add bibtool)

From: [email-masked] (GNU bug Tracking System)
Date: Thu, 08 Jul 2021 22:25:01 +0000

Your bug report

#49454: [PATCH] gnu: add bibtool

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].

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

Subject: Re: [bug#49454] [PATCH] gnu: add bibtool
From: Nicolas Goaziou <[email-masked]>
To: Ivan Gankevich <[email-masked]>
Cc: [email-masked]
Date: Fri, 09 Jul 2021 00:24:03 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

Hello,

Ivan Gankevich <[email-masked]> writes:

> +(define-public bibtool

Thank you! I provided a proper commit message, and expounded
description. Nitpick: I also moved home-page before the synopsis, as it
is usually located there in our packages.

I eventually added a copyright line for you at the top of the "tex.scm"
file.

Regards,
-- 
Nicolas Goaziou

Subject: [PATCH] gnu: add bibtool
From: Ivan Gankevich <[email-masked]>
To: [email-masked]
Cc: Ivan Gankevich <[email-masked]>
Date: Wed, 7 Jul 2021 10:25:51 +0300
List-Id: <debbugs-submit.debbugs.gnu.org>

---
 gnu/packages/tex.scm | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)

diff --git a/gnu/packages/tex.scm b/gnu/packages/tex.scm
index 086d6190dd..752965a0a3 100644
--- a/gnu/packages/tex.scm
+++ b/gnu/packages/tex.scm
@@ -8629,3 +8629,29 @@ constructs TeX accepts as arguments to its @code{\\number} primitive
 are valid as arguments for the macros.  The package may be used under
 LaTeX and plain TeX.")
     (license (license:fsf-free "file:/binhex.dtx"))))
+
+(define-public bibtool
+  (package
+    (name "bibtool")
+    (version "2.68")
+    (source
+      (origin
+        (method git-fetch)
+        (uri (git-reference
+               (url "https://github.com/ge-ne/bibtool")
+               (commit (string-append
+                         "BibTool_"
+                         (string-map
+                           (lambda (c) (if (char=? c #\.) #\_ c))
+                           version)))))
+        (file-name (git-file-name name version))
+        (sha256 (base32 "0grnmqj8w5018nd7r6drnq2yvfhf22gj9i3rj8ilhzm7zmz3zn0g"))))
+    (build-system gnu-build-system)
+    (arguments
+      `(#:test-target "test"))
+    (native-inputs
+      `(("perl" ,perl)))
+    (synopsis "Tool for manipulating BibTeX data bases")
+    (description "Pretty print, sort, merge, select entries from BibTeX files.")
+    (home-page "http://www.gerd-neugebauer.de/software/TeX/BibTool/en/")
+    (license license:gpl2+)))
-- 
2.32.0