From db60b1d9ffd8aa1ae98bfa9cf15614d9400fc1eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Mon, 8 Sep 2014 18:00:03 +0200 Subject: [PATCH] gnu: Add tdb. * gnu/packages/databases.scm (tdb): New variable. --- gnu/packages/databases.scm | 40 +++++++++++++++++++++++++++++++++++++- 1 file changed, 39 insertions(+), 1 deletion(-) diff --git a/gnu/packages/databases.scm b/gnu/packages/databases.scm index 553a078a88..01d9cbdd62 100644 --- a/gnu/packages/databases.scm +++ b/gnu/packages/databases.scm @@ -33,8 +33,9 @@ (define-module (gnu packages databases) #:use-module (gnu packages algebra) #:use-module (gnu packages curl) #:use-module (gnu packages gnupg) + #:use-module (gnu packages python) #:use-module ((guix licenses) - #:select (gpl2 gpl3+ x11-style bsd-style + #:select (gpl2 gpl3+ lgpl3+ x11-style bsd-style public-domain)) #:use-module (guix packages) #:use-module (guix download) @@ -243,3 +244,40 @@ (define-public sqlite widely deployed SQL database engine in the world. The source code for SQLite is in the public domain.") (license public-domain))) + +(define-public tdb + (package + (name "tdb") + (version "1.3.0") + (source (origin + (method url-fetch) + (uri (string-append "http://samba.org/ftp/tdb/tdb-" + version ".tar.gz")) + (sha256 + (base32 + "085sd2kii72fr0c4pdc7c7m0xk34nc66wnjp21c83dss826y9gh4")))) + (build-system gnu-build-system) + (arguments + '(#:phases (alist-replace + 'configure + (lambda* (#:key outputs #:allow-other-keys) + (let ((out (assoc-ref outputs "out"))) + ;; The 'configure' script is a wrapper for Waf and + ;; doesn't recognize things like '--enable-fast-install'. + (zero? (system* "./configure" + (string-append "--prefix=" out))))) + %standard-phases))) + (native-inputs + `(;; TODO: Build the documentation. + ;; ("docbook-xsl" ,docbook-xsl) + ;; ("libxml2" ,libxml2) + ;; ("libxslt" ,libxslt) + ("python" ,python-2))) ;for the Waf build system + (home-page "http://tdb.samba.org/") + (synopsis "TDB, the trivial database") + (description + "TDB is a Trivial Database. In concept, it is very much like GDBM, +and BSD's DB except that it allows multiple simultaneous writers and uses +locking internally to keep writers from trampling on each other. TDB is also +extremely small.") + (license lgpl3+)))