From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([209.51.188.92]:48500) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h3ntk-00022Y-7s for guix-patches@gnu.org; Tue, 12 Mar 2019 16:21:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h3ntd-0006O2-8h for guix-patches@gnu.org; Tue, 12 Mar 2019 16:21:11 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:55400) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1h3nta-0006LZ-TJ for guix-patches@gnu.org; Tue, 12 Mar 2019 16:21:08 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1h3nta-0003kx-Nt for guix-patches@gnu.org; Tue, 12 Mar 2019 16:21:06 -0400 Subject: [bug#34831] [PATCH 09/25] gnu: Add perl6-json-name. Resent-Message-ID: From: Efraim Flashner Date: Tue, 12 Mar 2019 22:19:58 +0200 Message-Id: <20190312202014.31224-9-efraim@flashner.co.il> In-Reply-To: <20190312201608.30892-1-efraim@flashner.co.il> References: <20190312201608.30892-1-efraim@flashner.co.il> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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: 34831@debbugs.gnu.org * gnu/packages/perl6.scm (perl6-json-name): New variable. --- gnu/packages/perl6.scm | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/gnu/packages/perl6.scm b/gnu/packages/perl6.scm index 0cd1f02621..1090809b5c 100644 --- a/gnu/packages/perl6.scm +++ b/gnu/packages/perl6.scm @@ -253,6 +253,32 @@ It is a drop-in replacement for @code{JSON::Tiny}'s from-json and to-json subs, but it offers a few extra features.") (license license:artistic2.0))) +(define-public perl6-json-name + (package + (name "perl6-json-name") + (version "0.0.3") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/jonathanstowe/JSON-Name.git") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "130qwdpbj5qdlsdz05y0rksd79lzbq79scy47n6lnf21b0hz1qjc")))) + (build-system rakudo-build-system) + (arguments '(#:with-zef? #f)) + (home-page "https://github.com/jonathanstowe/JSON-Name") + (synopsis "Provides a trait to store an alternative JSON Name") + (description "This is released as a dependency of @code{JSON::Marshal} and +@code{JSON::Unmarshal} in order to save duplication, it is intended to store a +separate JSON name for an attribute where the name of the JSON attribute might be +changed, either for aesthetic reasons or the name is not a valid Perl identifier. +It will of course also be needed in classes thar are going to use +@code{JSON::Marshal} or @code{JSON::Unmarshal} for serialisation/de-serialisation.") + (license license:artistic2.0))) + (define-public perl6-tap-harness (package (name "perl6-tap-harness") -- 2.21.0