aboutsummaryrefslogtreecommitdiff
path: root/textproc/p5-HTML-Tidy
diff options
context:
space:
mode:
authorAnton Berezin <tobez@FreeBSD.org>2007-10-04 18:57:40 +0000
committerAnton Berezin <tobez@FreeBSD.org>2007-10-04 18:57:40 +0000
commitaa934c0655ae4fce1feb4da8b3a203c14cdaad27 (patch)
treec5c2eb91ff27ded464ef506aa65fac384423b48f /textproc/p5-HTML-Tidy
parent53568324f1f4facb76a1cbbfaf509caeedea5fb1 (diff)
downloadports-aa934c0655ae4fce1feb4da8b3a203c14cdaad27.tar.gz
ports-aa934c0655ae4fce1feb4da8b3a203c14cdaad27.zip
Notes
Diffstat (limited to 'textproc/p5-HTML-Tidy')
-rw-r--r--textproc/p5-HTML-Tidy/Makefile1
-rw-r--r--textproc/p5-HTML-Tidy/files/patch-Tidy.xs20
2 files changed, 21 insertions, 0 deletions
diff --git a/textproc/p5-HTML-Tidy/Makefile b/textproc/p5-HTML-Tidy/Makefile
index 152a1cd67672..0dfc96a4e752 100644
--- a/textproc/p5-HTML-Tidy/Makefile
+++ b/textproc/p5-HTML-Tidy/Makefile
@@ -7,6 +7,7 @@
PORTNAME= HTML-Tidy
PORTVERSION= 1.08
+PORTREVISION= 1
CATEGORIES= textproc www perl5
MASTER_SITES= CPAN
PKGNAMEPREFIX= p5-
diff --git a/textproc/p5-HTML-Tidy/files/patch-Tidy.xs b/textproc/p5-HTML-Tidy/files/patch-Tidy.xs
new file mode 100644
index 000000000000..f4b804c5f85d
--- /dev/null
+++ b/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 );