From mboxrd@z Thu Jan 1 00:00:00 1970 From: Danny Milosavljevic Subject: [PATCH v4 14/16] gnu: Add perl-crypt-openssl-bignum. Date: Thu, 28 Jul 2016 13:22:10 +0200 Message-ID: <20160728132210.6e3b317e@scratchpost.org> References: <20160728131932.0387fb87@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]:49035) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bSjOM-0006ZP-1d for guix-devel@gnu.org; Thu, 28 Jul 2016 07:22:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bSjOG-0008V2-N0 for guix-devel@gnu.org; Thu, 28 Jul 2016 07:22:16 -0400 Received: from dd1012.kasserver.com ([85.13.128.8]:55292) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bSjOG-0008Ug-Fo for guix-devel@gnu.org; Thu, 28 Jul 2016 07:22:12 -0400 Received: from localhost (178.112.81.47.wireless.dyn.drei.com [178.112.81.47]) by dd1012.kasserver.com (Postfix) with ESMTPSA id D35F71CA06E3 for ; Thu, 28 Jul 2016 13:22:11 +0200 (CEST) In-Reply-To: <20160728131932.0387fb87@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: guix-devel@gnu.org gnu: Add perl-crypt-openssl-bignum. * gnu/packages/tls.scm (perl-crypt-openssl-bignum, perl-crypt-openssl-arguments): New variables. --- gnu/packages/tls.scm | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/gnu/packages/tls.scm b/gnu/packages/tls.scm index d992c51..fba130b 100644 --- a/gnu/packages/tls.scm +++ b/gnu/packages/tls.scm @@ -556,3 +556,39 @@ servers or clients for more complicated applications.") "RSA encoding and decoding, using the openSSL libraries") (description "Crypt::OpenSSL::RSA does RSA encoding and decoding (using the OpenSSL libraries).") (license (package-license perl)))) + +(define perl-crypt-arguments + `(#:phases (modify-phases %standard-phases + (add-before 'configure 'patch-Makefile.PL + (lambda* (#:key inputs #:allow-other-keys) + (substitute* "Makefile.PL" + (("'LIBS'.*=>.*") (string-append "'LIBS' => ['-L" + (assoc-ref inputs "openssl") + "/lib -lcrypto'],"))) + #t))))) + +(define-public perl-crypt-openssl-bignum + (package + (name "perl-crypt-openssl-bignum") + (version "0.06") + (source + (origin + (method url-fetch) + (uri (string-append + "mirror://cpan/authors/id/K/KM/KMX/Crypt-OpenSSL-Bignum-" + version + ".tar.gz")) + (sha256 + (base32 + "05yzrdglrrzp191krf77zrwfkmzrfwrsrx1vyskbj94522lszk67")))) + (build-system perl-build-system) + (inputs `(("openssl" ,openssl))) + (arguments perl-crypt-arguments) + (home-page + "http://search.cpan.org/dist/Crypt-OpenSSL-Bignum") + (synopsis + "OpenSSL's multiprecision integer arithmetic in Perl") + (description "Crypt::OpenSSL::Bignum provides multiprecision integer +arithmetic in Perl.") + ;; At your option either gpl1+ or the Artistic License + (license (package-license perl))))