From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:60029) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dfUNw-0000a2-Bv for guix-patches@gnu.org; Wed, 09 Aug 2017 13:03:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dfUNr-00059C-RN for guix-patches@gnu.org; Wed, 09 Aug 2017 13:03:08 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:44844) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dfUNr-000597-OF for guix-patches@gnu.org; Wed, 09 Aug 2017 13:03:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dfUNr-0007WG-FE for guix-patches@gnu.org; Wed, 09 Aug 2017 13:03:03 -0400 Subject: [bug#28028] [PATCH 4/9] gnu: Add perl-type-tie. Resent-Message-ID: From: Ricardo Wurmus Date: Wed, 9 Aug 2017 19:00:32 +0200 Message-ID: <20170809170037.14230-4-ricardo.wurmus@mdc-berlin.de> In-Reply-To: <20170809170037.14230-1-ricardo.wurmus@mdc-berlin.de> References: <20170809170037.14230-1-ricardo.wurmus@mdc-berlin.de> MIME-Version: 1.0 Content-Type: text/plain List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 28028@debbugs.gnu.org Cc: Ricardo Wurmus * gnu/packages/perl.scm (perl-type-tie): New variable. --- gnu/packages/perl.scm | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/gnu/packages/perl.scm b/gnu/packages/perl.scm index f94ffc1a6..d9fc3937d 100644 --- a/gnu/packages/perl.scm +++ b/gnu/packages/perl.scm @@ -7783,6 +7783,34 @@ that are designed to minimize common mistakes with eval blocks, and nothing else.") (license x11))) +(define-public perl-type-tie + (package + (name "perl-type-tie") + (version "0.009") + (source + (origin + (method url-fetch) + (uri (string-append "mirror://cpan/authors/id/T/TO/TOBYINK/" + "Type-Tie-" version ".tar.gz")) + (sha256 + (base32 + "1wv32kd7gx4kfyvzs13y029f49qbbji991wawvarac7rlz09wpan")))) + (build-system perl-build-system) + (native-inputs + `(("perl-test-fatal" ,perl-test-fatal) + ("perl-test-requires" ,perl-test-requires))) + (propagated-inputs + `(("perl-exporter-tiny" ,perl-exporter-tiny) + ("perl-hash-fieldhash" ,perl-hash-fieldhash))) + (home-page "http://search.cpan.org/dist/Type-Tie") + (synopsis "Tie a variable to a type constraint") + (description "This module exports a single function: @code{ttie}. It ties +a variable to a type constraint, ensuring that whatever values stored in the +variable will conform to the type constraint. If the type constraint has +coercions, these will be used if necessary to ensure values assigned to the +variable conform.") + (license (package-license perl)))) + (define-public perl-types-serialiser (package (name "perl-types-serialiser") -- 2.13.2