From mboxrd@z Thu Jan 1 00:00:00 1970 From: ng0 Subject: [PATCH 37/86] gnu: Add rust-encoding. Date: Tue, 3 Jan 2017 23:35:53 +0000 Message-ID: <20170103233642.3181-38-ng0@libertad.pw> References: <20170103233642.3181-1-ng0@libertad.pw> Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53814) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cOYeI-0003XI-Db for guix-devel@gnu.org; Tue, 03 Jan 2017 18:37:47 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cOYeH-0001T9-KY for guix-devel@gnu.org; Tue, 03 Jan 2017 18:37:46 -0500 Received: from aibo.runbox.com ([91.220.196.211]:33410) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cOYeH-0001SG-DI for guix-devel@gnu.org; Tue, 03 Jan 2017 18:37:45 -0500 Received: from [10.9.9.210] (helo=mailfront10.runbox.com) by bars.runbox.com with esmtp (Exim 4.71) (envelope-from ) id 1cOYeG-0001rR-7o for guix-devel@gnu.org; Wed, 04 Jan 2017 00:37:44 +0100 In-Reply-To: <20170103233642.3181-1-ng0@libertad.pw> 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/rust.scm (rust-encoding): New variable. --- gnu/packages/rust.scm | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/gnu/packages/rust.scm b/gnu/packages/rust.scm index e9b2a84bf..f68e1ceb0 100644 --- a/gnu/packages/rust.scm +++ b/gnu/packages/rust.scm @@ -1069,3 +1069,33 @@ which is providing character encoding support for Rust.") Chinese character encodings. This package is part of the crate \"encoding\", which is providing character encoding support for Rust.") (license license:cc0))) + +(define-public rust-encoding + (package + (name "rust-encoding") + (version "0.2.33") + (source + (origin + (method url-fetch) + (uri (crate-uri "encoding" version)) + (file-name + (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "1v1ndmkarh9z3n5hk53da4z56hgk9wa5kcsm7cnx345raqw983bb")))) + (build-system cargo-build-system) + (native-inputs + `(("rust-getopts" ,rust-getopts "src"))) + (inputs + `(("rust-encoding-index-japanese" ,rust-encoding-index-japanese "src") + ("rust-encoding-index-korean" ,rust-encoding-index-korean "src") + ("rust-encoding-index-simpchinese" ,rust-encoding-index-simpchinese "src") + ("rust-encoding-index-singlebyte" ,rust-encoding-index-singlebyte "src") + ("rust-encoding-index-tradchinese" ,rust-encoding-index-tradchinese "src"))) + (home-page "https://github.com/lifthrasiir/rust-encoding") + (synopsis "Character encoding support for Rust") + (description + "@code{encoding} adds character encoding support for Rust. It is +based on WHATWG Encoding Standard, and also provides an advanced +interface for error detection and recovery.") + (license license:expat))) -- 2.11.0