summary refs log tree commit diff
path: root/gnu
diff options
context:
space:
mode:
authorEric Bavier <bavier@member.fsf.org>2015-03-17 14:23:24 -0500
committerEric Bavier <bavier@member.fsf.org>2015-03-19 16:43:30 -0500
commitddc36cd8800e94057f48fbe7cca0cbdf7120e0ff (patch)
tree4fde3ef1562bf0729c5879f3c88b0ca877bf2cfc /gnu
parent0cd2ab301304fdf539b4541960158083fc38de91 (diff)
downloadguix-ddc36cd8800e94057f48fbe7cca0cbdf7120e0ff.tar.gz
gnu: Add HTML-Tree.
* gnu/packages/web.scm (perl-html-tree): New variable.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/web.scm25
1 files changed, 25 insertions, 0 deletions
diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm
index 3fe06e2ef0..eaa56f5fb9 100644
--- a/gnu/packages/web.scm
+++ b/gnu/packages/web.scm
@@ -779,6 +779,31 @@ which can be used to parse directory listings.")
 syntactic legitmacy.")
     (license l:artistic2.0)))
 
+(define-public perl-html-tree
+  (package
+    (name "perl-html-tree")
+    (version "5.03")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append "mirror://cpan/authors/id/C/CJ/CJM/"
+                           "HTML-Tree-" version ".tar.gz"))
+       (sha256
+        (base32
+         "13qlqbpixw470gnck0xgny8hyjj576m8y24bba2p9ai2lvy76vbx"))))
+    (build-system perl-build-system)
+    (native-inputs
+     `(("perl-test-fatal" ,perl-test-fatal)))
+    (propagated-inputs
+     `(("perl-html-parser" ,perl-html-parser)
+       ("perl-html-tagset" ,perl-html-tagset)
+       ("perl-libwww" ,perl-libwww)))
+    (home-page "http://search.cpan.org/dist/HTML-Tree")
+    (synopsis "Work with HTML in a DOM-like tree structure")
+    (description "This distribution contains a suite of modules for
+representing, creating, and extracting information from HTML syntax trees.")
+    (license (package-license perl))))
+
 (define-public perl-html-parser
   (package
     (name "perl-html-parser")