aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/textutils.scm
diff options
context:
space:
mode:
authorLiliana Marie Prikler <liliana.prikler@gmail.com>2021-12-11 08:43:10 +0100
committerLiliana Marie Prikler <liliana.prikler@gmail.com>2021-12-24 16:31:04 +0100
commit46772aa0f00770d57fd29fd04d678197f04aad0c (patch)
treec151d6731a3dc5d5be45c8a99004fdcd14f237c4 /gnu/packages/textutils.scm
parent9d636f2d7b7a9fca0eb05495509bc1595edfb486 (diff)
downloadguix-46772aa0f00770d57fd29fd04d678197f04aad0c.tar
guix-46772aa0f00770d57fd29fd04d678197f04aad0c.tar.gz
gnu: Add bibutils.
* gnu/packages/textutils.scm (bibutils): New variable.
Diffstat (limited to 'gnu/packages/textutils.scm')
-rw-r--r--gnu/packages/textutils.scm35
1 files changed, 35 insertions, 0 deletions
diff --git a/gnu/packages/textutils.scm b/gnu/packages/textutils.scm
index 858138288d..3a90fc8da7 100644
--- a/gnu/packages/textutils.scm
+++ b/gnu/packages/textutils.scm
@@ -44,6 +44,7 @@
#:use-module ((guix licenses) #:prefix license:)
#:use-module (guix packages)
#:use-module (guix download)
+ #:use-module (guix gexp)
#:use-module (guix git-download)
#:use-module (guix build-system ant)
#:use-module (guix build-system gnu)
@@ -1137,6 +1138,40 @@ useful to extract content from OpenDocument spreadsheets (*.ods) and
OpenDocument presentations (*.odp).")
(license license:gpl2)))
+(define-public bibutils
+ (package
+ (name "bibutils")
+ (version "7.2")
+ (source (origin
+ (method url-fetch)
+ (uri (string-append "mirror://sourceforge/bibutils/"
+ "bibutils_" version "_src.tgz"))
+
+ (sha256
+ (base32
+ "1hxmwjjzw48w6hdh2x7ybkrhi1xngd55i67hrrd3wswa3vpql0kf"))))
+ (build-system gnu-build-system)
+ (arguments
+ (list #:configure-flags
+ #~(list "--install-dir" (string-append #$output "/bin")
+ "--install-lib" (string-append #$output "/lib")
+ "--dynamic")
+ #:make-flags
+ #~(list (string-append "CC=" #+(cc-for-target))
+ (string-append "LDFLAGSIN=-Wl,-rpath=" #$output "/lib"))
+ #:test-target "test"
+ #:phases
+ '(modify-phases %standard-phases
+ (replace 'configure
+ (lambda* (#:key configure-flags #:allow-other-keys)
+ ;; configure script is ill-formed, invoke it manually
+ (apply invoke "sh" "./configure" configure-flags))))))
+ (home-page "https://bibutils.sourceforge.io/")
+ (synopsis "Convert between various bibliography formats")
+ (description "This package provides converters for various bibliography
+formats (e.g. Bibtex, RIS, ...) using a common XML intermediate.")
+ (license license:gpl2)))
+
(define-public opencc
(package
(name "opencc")