summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--www/tidy/Makefile34
-rw-r--r--www/tidy/files/md51
-rw-r--r--www/tidy/patches/patch-aa13
-rw-r--r--www/tidy/patches/patch-ab22
-rw-r--r--www/tidy/pkg/COMMENT1
-rw-r--r--www/tidy/pkg/DESCR17
-rw-r--r--www/tidy/pkg/PLIST6
7 files changed, 94 insertions, 0 deletions
diff --git a/www/tidy/Makefile b/www/tidy/Makefile
new file mode 100644
index 00000000000..c974e7d23c4
--- /dev/null
+++ b/www/tidy/Makefile
@@ -0,0 +1,34 @@
+# New ports collection makefile for: tidy
+# Version required: 0.10.99.1
+# Date created: 27 Oct 1998
+# Whom: Abel Chow <achow@transoft.net>
+#
+# $FreeBSD: ports/www/tidy/Makefile,v 1.15 2000/02/16 00:08:36 mharo Exp $
+#
+
+DISTNAME= tidy30nov99
+PKGNAME= tidy-0.11.99.2
+CATEGORIES= www
+MASTER_SITES= http://www.w3.org/People/Raggett/
+EXTRACT_SUFX= .tgz
+
+MAINTAINER= saken@hotel.rmta.org
+
+MAN1= tidy.1
+
+ALL_TARGET= tidy
+
+DOCFILES= Overview.html tidy.gif release-notes.html grid.gif
+
+do-install:
+ @${INSTALL_PROGRAM} ${WRKSRC}/tidy ${PREFIX}/bin/tidy
+ @${INSTALL_MAN} ${WRKSRC}/man_page.txt ${PREFIX}/man/man1/tidy.1
+.if !defined(NOPORTDOCS)
+ @${ECHO_MSG} "===> Installing documentation for ${PKGNAME}"
+ @${MKDIR} ${PREFIX}/share/doc/tidy
+.for docfile in ${DOCFILES}
+ @${INSTALL_MAN} ${WRKSRC}/${docfile} ${PREFIX}/share/doc/tidy
+.endfor
+.endif
+
+.include <bsd.port.mk>
diff --git a/www/tidy/files/md5 b/www/tidy/files/md5
new file mode 100644
index 00000000000..ca187847950
--- /dev/null
+++ b/www/tidy/files/md5
@@ -0,0 +1 @@
+MD5 (tidy30nov99.tgz) = d527142aa7cb10eee1acc1c896c4e5ed
diff --git a/www/tidy/patches/patch-aa b/www/tidy/patches/patch-aa
new file mode 100644
index 00000000000..b07d2911a74
--- /dev/null
+++ b/www/tidy/patches/patch-aa
@@ -0,0 +1,13 @@
+--- Makefile.orig Sun Dec 20 13:43:23 1998
++++ Makefile Sun Dec 20 13:45:24 1998
+@@ -1,8 +1,8 @@
+ # Makefile - for tidy
+
+-CC= gcc
++#CC= gcc
+
+-CFLAGS= -O
++CFLAGS+= -D__USE_MISC
+
+ OFILES= attrs.o istack.o parser.o tags.o \
+ entities.o lexer.o pprint.o clean.o \
diff --git a/www/tidy/patches/patch-ab b/www/tidy/patches/patch-ab
new file mode 100644
index 00000000000..d178ef5b367
--- /dev/null
+++ b/www/tidy/patches/patch-ab
@@ -0,0 +1,22 @@
+--- platform.h.orig Sat Nov 13 23:41:32 1999
++++ platform.h Sat Nov 13 23:42:40 1999
+@@ -17,17 +17,17 @@
+ It enables tidy to find config files named ~/.tidyrc
+ and ~your/.tidyrc etc if the HTML_TIDY environment
+ variable is not set. Contributed by Todd Lewis.
++*/
+
+ #define SUPPORT_GETPWNAM
+-*/
+
++#include <sys/types.h>
+ #include <ctype.h>
+ #include <stdio.h>
+ #include <setjmp.h> /* for longjmp on error exit */
+ #include <stdlib.h>
+ #include <stdarg.h> /* may need <varargs.h> for Unix V */
+ #include <string.h>
+-#include <malloc.h>
+ #include <assert.h>
+
+ #ifdef SUPPORT_GETPWNAM
diff --git a/www/tidy/pkg/COMMENT b/www/tidy/pkg/COMMENT
new file mode 100644
index 00000000000..ca421aa9423
--- /dev/null
+++ b/www/tidy/pkg/COMMENT
@@ -0,0 +1 @@
+Fixes and tidies up HTML files
diff --git a/www/tidy/pkg/DESCR b/www/tidy/pkg/DESCR
new file mode 100644
index 00000000000..ab48448b25d
--- /dev/null
+++ b/www/tidy/pkg/DESCR
@@ -0,0 +1,17 @@
+When editing HTML it's easy to make mistakes. Wouldn't it be nice if
+there was a simple way to fix these mistakes automatically and tidy up
+sloppy editing into nicely layed out markup? Well now there is thanks
+to Hewlett Packard's Dave Raggett. HTML TIDY is a free utility for
+doing just that. It also works great on the attrociously hard to read
+markup generated by specialized HTML editors and conversion tools, and
+can help you identify where you need to pay further attention on
+making your pages more accessible to people with disabilities.
+
+Tidy is able to fix up a wide range of problems and to bring to your
+attention things that you need to work on yourself. Each item found is
+listed with the line number and column so that you can see where the
+problem lies in your markup. Tidy won't generate a cleaned up version
+when there are problems that it can't be sure of how to handle. These
+are logged as "errors" rather than "warnings".
+
+WWW: http://www.w3c.org/People/Raggett/tidy/
diff --git a/www/tidy/pkg/PLIST b/www/tidy/pkg/PLIST
new file mode 100644
index 00000000000..156ae270f62
--- /dev/null
+++ b/www/tidy/pkg/PLIST
@@ -0,0 +1,6 @@
+bin/tidy
+share/doc/tidy/Overview.html
+share/doc/tidy/grid.gif
+share/doc/tidy/release-notes.html
+share/doc/tidy/tidy.gif
+@dirrm share/doc/tidy