From mboxrd@z Thu Jan 1 00:00:00 1970 From: Danny Milosavljevic Subject: [PATCH v2] gnu: Add perl-db_file. Date: Tue, 26 Jul 2016 21:05:20 +0200 Message-ID: <20160726210520.778cd88c@scratchpost.org> References: <20160726173513.572a6d5d@scratchpost.org> <20160726183531.GA11804@solar> <20160726210138.6b90aef7@scratchpost.org> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53677) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bS7fT-0007vB-S7 for guix-devel@gnu.org; Tue, 26 Jul 2016 15:05:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bS7fO-0006Na-NG for guix-devel@gnu.org; Tue, 26 Jul 2016 15:05:26 -0400 Received: from dd1012.kasserver.com ([85.13.128.8]:55077) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bS7fO-0006NT-GJ for guix-devel@gnu.org; Tue, 26 Jul 2016 15:05:22 -0400 In-Reply-To: <20160726210138.6b90aef7@scratchpost.org> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Andreas Enge Cc: guix-devel@gnu.org * gnu/packages/databases.scm (perl-db_file): New variable. --- gnu/packages/databases.scm | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/gnu/packages/databases.scm b/gnu/packages/databases.scm index 86cf883..abda97b 100644 --- a/gnu/packages/databases.scm +++ b/gnu/packages/databases.scm @@ -1013,3 +1013,35 @@ trees (LSM), for sustained throughput under random insert workloads.") (license gpl3) ; or GPL-2 ;; configure.ac: WiredTiger requires a 64-bit build. (supported-systems '("x86_64-linux" "mips64el-linux")))) + +(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))))