aboutsummaryrefslogtreecommitdiff
path: root/textproc/html2xhtml
diff options
context:
space:
mode:
authorPawel Pekala <pawel@FreeBSD.org>2015-10-29 22:27:39 +0000
committerPawel Pekala <pawel@FreeBSD.org>2015-10-29 22:27:39 +0000
commitfc080e71069ad1aa7b92e445f9e700a4de277d64 (patch)
tree292db749140b4e45acf9674aa819d9b96d5e09e9 /textproc/html2xhtml
parent1431bc45f6d968511524325e00858dd057f9a61e (diff)
Notes
Diffstat (limited to 'textproc/html2xhtml')
-rw-r--r--textproc/html2xhtml/Makefile18
-rw-r--r--textproc/html2xhtml/distinfo2
-rw-r--r--textproc/html2xhtml/files/patch-src-html.c12
-rw-r--r--textproc/html2xhtml/pkg-descr8
4 files changed, 40 insertions, 0 deletions
diff --git a/textproc/html2xhtml/Makefile b/textproc/html2xhtml/Makefile
new file mode 100644
index 000000000000..51340eb5c209
--- /dev/null
+++ b/textproc/html2xhtml/Makefile
@@ -0,0 +1,18 @@
+# $FreeBSD$
+
+PORTNAME= html2xhtml
+PORTVERSION= 1.3
+CATEGORIES= textproc
+MASTER_SITES= http://www.it.uc3m.es/jaf/html2xhtml/downloads/
+
+MAINTAINER= wilfried.meindl@gmail.com
+COMMENT= Convert HTML to XHTML
+
+GNU_CONFIGURE= yes
+USES= iconv
+
+PLIST_FILES= bin/dtdquery \
+ bin/html2xhtml \
+ man/man1/html2xhtml.1.gz
+
+.include <bsd.port.mk>
diff --git a/textproc/html2xhtml/distinfo b/textproc/html2xhtml/distinfo
new file mode 100644
index 000000000000..b3aef3f11d5d
--- /dev/null
+++ b/textproc/html2xhtml/distinfo
@@ -0,0 +1,2 @@
+SHA256 (html2xhtml-1.3.tar.gz) = 92ab020832b768d623812741fd78a9873b9b261f7ab0bbf01768d5953d8e8a8c
+SIZE (html2xhtml-1.3.tar.gz) = 557407
diff --git a/textproc/html2xhtml/files/patch-src-html.c b/textproc/html2xhtml/files/patch-src-html.c
new file mode 100644
index 000000000000..e843d70477fe
--- /dev/null
+++ b/textproc/html2xhtml/files/patch-src-html.c
@@ -0,0 +1,12 @@
+--- src/html.c.orig 2015-08-19 11:12:02 UTC
++++ src/html.c
+@@ -866,9 +866,6 @@ int yy_flex_debug = 0;
+ char *yytext;
+ #line 1 "html.l"
+ #line 4 "html.l"
+-#if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
+-extern int fileno(FILE *file);
+-#endif
+
+ #include <stdio.h>
+ #include <string.h>
diff --git a/textproc/html2xhtml/pkg-descr b/textproc/html2xhtml/pkg-descr
new file mode 100644
index 000000000000..9f170f110b8d
--- /dev/null
+++ b/textproc/html2xhtml/pkg-descr
@@ -0,0 +1,8 @@
+html2xhtml converts HTML files into XHTML. It can fix many common
+errors in HTML files (e.g. missing end tags, elements with incorrect
+content model, non-standard elements or attributes, etc.) It can
+also handle invalid or non well-formed XHTML input, and clean it
+to produce a well-formed and valid XHTML output. The output document
+type can be selected among several XHTML DTDs (1.0, 1.1, Basic, etc.)
+
+WWW: http://www.it.uc3m.es/jaf/html2xhtml