[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
08/08: gnu: Add perl-html-tidy.
From: |
Ricardo Wurmus |
Subject: |
08/08: gnu: Add perl-html-tidy. |
Date: |
Mon, 23 Oct 2017 18:07:01 -0400 (EDT) |
rekado pushed a commit to branch master
in repository guix.
commit 7a04dddd268c1395d5bfc45ab55071b6faf6de79
Author: Petter <address@hidden>
Date: Mon Oct 23 23:16:21 2017 +0200
gnu: Add perl-html-tidy.
* gnu/packages/web.scm (perl-html-tidy): New variable.
Co-authored-by: Ricardo Wurmus <address@hidden>
---
gnu/packages/web.scm | 38 ++++++++++++++++++++++++++++++++++++++
1 file changed, 38 insertions(+)
diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm
index 2791eb0..9fc4796 100644
--- a/gnu/packages/web.scm
+++ b/gnu/packages/web.scm
@@ -5957,3 +5957,41 @@ other program that can interface to it. The Perl module
@code{HTML::Tidy} is
based on this library, allowing Perl programmers to easily validate HTML.")
;; See htmldoc/license.html
(license l:bsd-3)))
+
+(define-public perl-html-tidy
+ (package
+ (name "perl-html-tidy")
+ (version "1.60")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (string-append "mirror://cpan/authors/id/P/PE/PETDANCE/HTML-Tidy-"
+ version ".tar.gz"))
+ (sha256
+ (base32
+ "1iyp2fd6j75cn1xvcwl2lxr8qpjxssy2360cyqn6g3kzd1fzdyxw"))))
+ (build-system perl-build-system)
+ (arguments
+ '(#:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'fix-tidyp-paths
+ (lambda* (#:key inputs #:allow-other-keys)
+ (substitute* "Makefile.PL"
+ (("^my \\$inc = \"" line)
+ (string-append line
+ "-I" (assoc-ref inputs "tidyp") "/include/tidyp
"))
+ (("-L/usr/lib")
+ (string-append
+ "-L" (assoc-ref inputs "tidyp") "/lib")))
+ #t)))))
+ (inputs
+ `(("perl-libwww" ,perl-libwww)
+ ("tidyp" ,tidyp)))
+ (native-inputs
+ `(("perl-test-exception" ,perl-test-exception)))
+ (home-page "http://search.cpan.org/dist/HTML-Tidy/")
+ (synopsis "(X)HTML validation in a Perl object")
+ (description "@code{HTML::Tidy} is an HTML checker in a handy dandy
+object. It's meant as a replacement for @code{HTML::Lint}, which is written
+in Perl but is not nearly as capable as @code{HTML::Tidy}.")
+ (license l:artistic2.0)))
- branch master updated (6768e0a -> 7a04ddd), Ricardo Wurmus, 2017/10/23
- 02/08: gnu: Add perl-tree-xpathengine., Ricardo Wurmus, 2017/10/23
- 01/08: gnu: Add perl-xml-xpathengine., Ricardo Wurmus, 2017/10/23
- 07/08: gnu: Add tidyp., Ricardo Wurmus, 2017/10/23
- 05/08: gnu: Add perl-xml-handler-yawriter., Ricardo Wurmus, 2017/10/23
- 08/08: gnu: Add perl-html-tidy.,
Ricardo Wurmus <=
- 04/08: gnu: Add perl-xml-sax-writer., Ricardo Wurmus, 2017/10/23
- 06/08: gnu: Add perl-lwp-online., Ricardo Wurmus, 2017/10/23
- 03/08: gnu: Add perl-xml-filter-buffertext., Ricardo Wurmus, 2017/10/23