From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ben Woodcroft Subject: [PATCH 05/22] gnu: Add perl-graph-readwrite. Date: Wed, 27 Jul 2016 22:54:06 +1000 Message-ID: <783849784030d9fce1e55b80f3a26d19b105446c.1469622379.git.donttrustben@gmail.com> References: <20160727125423.7768-1-donttrustben@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54235) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bSOMW-0008CL-KB for guix-devel@gnu.org; Wed, 27 Jul 2016 08:55:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bSOMU-0004JE-Hn for guix-devel@gnu.org; Wed, 27 Jul 2016 08:54:59 -0400 Received: from mail-pa0-x243.google.com ([2607:f8b0:400e:c03::243]:33018) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bSOMU-0004J4-9x for guix-devel@gnu.org; Wed, 27 Jul 2016 08:54:58 -0400 Received: by mail-pa0-x243.google.com with SMTP id q2so1754839pap.0 for ; Wed, 27 Jul 2016 05:54:58 -0700 (PDT) Received: from localhost.localdomain ([103.25.181.216]) by smtp.googlemail.com with ESMTPSA id o80sm9177941pfa.67.2016.07.27.05.54.54 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 27 Jul 2016 05:54:55 -0700 (PDT) In-Reply-To: <20160727125423.7768-1-donttrustben@gmail.com> In-Reply-To: References: 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/xml.scm (perl-graph-readwrite): New variable. --- gnu/packages/xml.scm | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/gnu/packages/xml.scm b/gnu/packages/xml.scm index af597b8..0533cb9 100644 --- a/gnu/packages/xml.scm +++ b/gnu/packages/xml.scm @@ -8,6 +8,7 @@ ;;; Copyright © 2015, 2016 Efraim Flashner ;;; Copyright © 2015 Raimon Grau ;;; Copyright © 2016 Leo Famulari +;;; Copyright © 2016 Ben Woodcroft ;;; ;;; This file is part of GNU Guix. ;;; @@ -188,6 +189,38 @@ based on libxml for XML parsing, tree manipulation and XPath support.") (base32 "1klh81xbm9ppzgqk339097i39b7fnpmlj8lzn8bpczl3aww6x5xm"))))))) +(define-public perl-graph-readwrite + (package + (name "perl-graph-readwrite") + (version "2.08") + (source + (origin + (method url-fetch) + (uri (string-append + "mirror://cpan/authors/id/N/NE/NEILB/Graph-ReadWrite-" + version + ".tar.gz")) + (sha256 + (base32 + "1wjni212nfz9irp19nx9if1lj3w9cybpdbzhii4g8macpryjj7ci")))) + (build-system perl-build-system) + (propagated-inputs + `(("perl-graph" ,perl-graph) + ("perl-parse-yapp" ,perl-parse-yapp) + ("perl-xml-parser" ,perl-xml-parser) + ("perl-xml-writer" ,perl-xml-writer))) + (home-page "http://search.cpan.org/dist/Graph-ReadWrite") + (synopsis "Modules for reading and writing directed graphs") + (description "This is a collection of perl classes for reading and writing +directed graphs in a variety of file formats. The graphs are represented in +Perl using Jarkko Hietaniemi's @code{Graph} classes. + +There are two base classes. @code{Graph::Reader} is the base class for classes +which read a graph file and create an instance of the Graph class. +@code{Graph::Writer} is the base class for classes which take an instance of +the @code{Graph} class and write it out in a specific file format.") + (license (package-license perl)))) + (define-public perl-xml-parser (package (name "perl-xml-parser") -- 2.9.1