From mboxrd@z Thu Jan 1 00:00:00 1970 From: Danny Milosavljevic Subject: [PATCH] gnu: Add perl-db_file. Date: Tue, 26 Jul 2016 17:35:13 +0200 Message-ID: <20160726173513.572a6d5d@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]:51462) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bS4OB-0007g7-J5 for guix-devel@gnu.org; Tue, 26 Jul 2016 11:35:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bS4O6-0005uO-HH for guix-devel@gnu.org; Tue, 26 Jul 2016 11:35:22 -0400 Received: from dd1012.kasserver.com ([85.13.128.8]:46100) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bS4O6-0005tl-Ab for guix-devel@gnu.org; Tue, 26 Jul 2016 11:35:18 -0400 Received: from localhost (212095007032.public.telering.at [212.95.7.32]) by dd1012.kasserver.com (Postfix) with ESMTPSA id 349B31CA0235 for ; Tue, 26 Jul 2016 17:35:14 +0200 (CEST) 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: guix-devel@gnu.org * gnu/packages/databases.scm (perl-db_file): New variable. --- gnu/packages/databases.scm | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/gnu/packages/databases.scm b/gnu/packages/databases.scm index 86cf883..b5c6de0 100644 --- a/gnu/packages/databases.scm +++ b/gnu/packages/databases.scm @@ -1013,3 +1013,40 @@ 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 'replace-config.in + (lambda* (#:key inputs #:allow-other-keys) + (call-with-output-file "config.in" + (lambda (port) + (format port " +INCLUDE = ~a/include +LIB = ~:*~a/lib +PREFIX = size_t +HASH = u_int32_t +" + (assoc-ref inputs "bdb"))))))))) + (home-page "http://search.cpan.org/dist/DB_File") + (synopsis + "Perl5 access to Berkeley DB version 1.x") + (description "DB_File provides access to Berkeley DB version 1.x.") + (license (package-license perl))))