diff mbox

[v5,01/17] gnu: Add perl-db-file.

Message ID 20160728213833.22057-2-dannym@scratchpost.org
State New
Headers show

Commit Message

Danny Milosavljevic July 28, 2016, 9:38 p.m. UTC
gnu: Add perl-db-file.

* gnu/packages/databases.scm (perl-db-file): New variable.
---
 gnu/packages/databases.scm | 32 ++++++++++++++++++++++++++++++++
 1 file changed, 32 insertions(+)

Comments

Danny Milosavljevic July 31, 2016, 11:39 a.m. UTC | #1
On Thu, 28 Jul 2016 23:38:17 +0200
Danny Milosavljevic <dannym@scratchpost.org> wrote:

> gnu: Add perl-db-file.
> 
> * gnu/packages/databases.scm (perl-db-file): New variable.
> ---
>  gnu/packages/databases.scm | 32 ++++++++++++++++++++++++++++++++
>  1 file changed, 32 insertions(+)

This part has already been pushed (by Andreas Enge). The other parts of the patch series are still pending.
diff mbox

Patch

diff --git a/gnu/packages/databases.scm b/gnu/packages/databases.scm
index f088062..3bdb37b 100644
--- a/gnu/packages/databases.scm
+++ b/gnu/packages/databases.scm
@@ -1046,3 +1046,35 @@  trees (LSM), for sustained throughput under random insert workloads.")
   (description
     "The DB::File module provides Perl bindings to the Berkeley DB version 1.x.")
   (license (package-license perl))))
+
+(define-public perl-db-file
+ (package
+  (name "perl-db-file")
+  (version "1.838")
+  (source
+    (origin
+      (method url-fetch)
+      (uri (string-append
+             "mirror://cpan/authors/id/P/PM/PMQS/DB_File-"
+             version
+             ".tar.gz"))
+      (sha256
+        (base32
+          "0yp5d5zr8dk9g6xdh7ygi5bq63q7nxvhd58dk2i3ki4nb7yv2yh9"))))
+  (build-system perl-build-system)
+  (inputs `(("bdb" ,bdb)))
+  (native-inputs `(("perl-test-pod" ,perl-test-pod)))
+  (arguments
+     `(#:phases (modify-phases %standard-phases
+                  (add-before
+                   'configure 'modify-config.in
+                   (lambda* (#:key inputs #:allow-other-keys)
+                     (substitute* "config.in"
+                       (("/usr/local/BerkeleyDB") (assoc-ref inputs "bdb")))
+                     #t)))))
+  (home-page "http://search.cpan.org/dist/DB_File")
+  (synopsis
+    "Perl5 access to Berkeley DB version 1.x")
+  (description
+    "DB::File provides Perl bindings to Berkeley DB version 1.x.")
+  (license (package-license perl))))