[Midnightbsd-cvs] mports: mports/textproc: add p5-HTML-Tidy
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Fri Oct 10 14:33:00 EDT 2008
Log Message:
-----------
add p5-HTML-Tidy
Modified Files:
--------------
mports/textproc:
Makefile (r1.105 -> r1.106)
Added Files:
-----------
mports/textproc/p5-HTML-Tidy:
Makefile (r1.1)
distinfo (r1.1)
pkg-descr (r1.1)
pkg-plist (r1.1)
mports/textproc/p5-HTML-Tidy/files:
patch-Tidy.xs (r1.1)
-------------- next part --------------
Index: Makefile
===================================================================
RCS file: /home/cvs/mports/textproc/Makefile,v
retrieving revision 1.105
retrieving revision 1.106
diff -L textproc/Makefile -L textproc/Makefile -u -r1.105 -r1.106
--- textproc/Makefile
+++ textproc/Makefile
@@ -66,6 +66,7 @@
SUBDIR += makepatch
SUBDIR += openjade
SUBDIR += opensp
+ SUBDIR += p5-HTML-Tidy
SUBDIR += p5-libxml
SUBDIR += p5-PPI
SUBDIR += p5-Parse-Syslog
--- /dev/null
+++ textproc/p5-HTML-Tidy/pkg-descr
@@ -0,0 +1,5 @@
+HTML::Tidy is an HTML checker in a handy dandy object. It's meant as a
+replacement for HTML::Lint. If you're currently an HTML::Lint user looking to
+migrate, see the section "Converting from HTML::Lint".
+
+WWW: http://search.cpan.org/dist/HTML-Tidy/
--- /dev/null
+++ textproc/p5-HTML-Tidy/pkg-plist
@@ -0,0 +1,9 @@
+bin/webtidy
+%%SITE_PERL%%/%%PERL_ARCH%%/HTML/Tidy.pm
+%%SITE_PERL%%/%%PERL_ARCH%%/HTML/Tidy/Message.pm
+%%SITE_PERL%%/%%PERL_ARCH%%/auto/HTML/Tidy/Tidy.bs
+%%SITE_PERL%%/%%PERL_ARCH%%/auto/HTML/Tidy/Tidy.so
+ at dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/HTML/Tidy
+ at dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/HTML
+ at dirrm %%SITE_PERL%%/%%PERL_ARCH%%/HTML/Tidy
+ at dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/HTML
--- /dev/null
+++ textproc/p5-HTML-Tidy/Makefile
@@ -0,0 +1,37 @@
+# New ports collection makefile for: p5-HTML-Tidy
+# Date Created: 8 june 2004
+# Whom: mat
+#
+# $MidnightBSD: mports/textproc/p5-HTML-Tidy/Makefile,v 1.1 2008/10/10 18:32:58 laffer1 Exp $
+# $FreeBSD: ports/textproc/p5-HTML-Tidy/Makefile,v 1.7 2007/10/04 18:57:40 tobez Exp $
+#
+
+PORTNAME= HTML-Tidy
+PORTVERSION= 1.08
+CATEGORIES= textproc www perl5
+MASTER_SITES= CPAN
+PKGNAMEPREFIX= p5-
+
+
+MAINTAINER= ports at MidnightBSD.org
+COMMENT= Web validation in a Perl object using tidy
+LICENSE= gpl2
+
+BUILD_DEPENDS= ${SITE_PERL}/LWP/UserAgent.pm:${PORTSDIR}/www/p5-libwww
+LIB_DEPENDS= tidy:${PORTSDIR}/www/tidy-lib
+RUN_DEPENDS= ${BUILD_DEPENDS}
+
+PERL_CONFIGURE= 5.8.0+
+
+MAN3= HTML::Tidy.3 HTML::Tidy::Message.3
+
+.if !defined(NOPORTDOCS)
+PORTDOCS= Changes README
+
+post-install:
+ @${MKDIR} ${DOCSDIR}
+ @${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
+ @${ECHO_MSG} "===> Documentation installed in ${DOCSDIR}."
+.endif
+
+.include <bsd.port.mk>
--- /dev/null
+++ textproc/p5-HTML-Tidy/distinfo
@@ -0,0 +1,3 @@
+MD5 (HTML-Tidy-1.08.tar.gz) = adf83cfa6dcfb9de1283f771ad9c2e0d
+SHA256 (HTML-Tidy-1.08.tar.gz) = 7537b06d92055c63e9e0f6a28b5267cbeccf7669abbf89d4069c361fe5a4f7a8
+SIZE (HTML-Tidy-1.08.tar.gz) = 26399
--- /dev/null
+++ textproc/p5-HTML-Tidy/files/patch-Tidy.xs
@@ -0,0 +1,20 @@
+$Id$
+--- Tidy.xs.orig 2007-09-24 11:36:19.000000000 +0200
++++ Tidy.xs 2007-09-24 11:37:42.000000000 +0200
+@@ -55,6 +55,7 @@ _tidy_messages(input, configfile, tidy_o
+ const char* newline;
+ int rc = 0;
+ PPCODE:
++ tidyBufInit(&errbuf);
+ rc = ( tidyOptSetValue( tdoc, TidyCharEncoding, "utf8" ) ? rc : -1 );
+
+ if ( (rc >= 0 ) && configfile && *configfile ) {
+@@ -117,6 +118,8 @@ _tidy_clean(input, configfile, tidy_opti
+ const char* newline;
+ int rc = 0;
+ PPCODE:
++ tidyBufInit(&output);
++ tidyBufInit(&errbuf);
+ /* Set our default first. */
+ /* Don't word-wrap */
+ rc = ( tidyOptSetInt( tdoc, TidyWrapLen, 0 ) ? rc : -1 );
More information about the Midnightbsd-cvs
mailing list