tidy stable port information

Package: tidy
Version: 051026
Revision: 3
Epoch: 1
Description: Utility to clean up HTML/XHTML/XML
License: BSD
Maintainer: Adrian Mugnolo
#
CustomMirror: <<
Location1: http://tidy.sourceforge.net/src
Location2: http://tidy.sourceforge.net/src/old
<<
Source: mirror:custom:%n_src_%v.tgz
Source-MD5: 1e39fafd6808978871346658c8da1454
Source2: http://tidy.sourceforge.net/docs/%n_docs_051020.tgz
Source2-MD5: 86de2f198e57399c063d2567b2a25628
SourceDirectory: %n
#
Patch: %n.patch
PatchScript: <<
sed -n '9,45p;45q' htmldoc/license.html > LICENSE
<<
#
NoSetMAKEFLAGS: true
SetMAKEFLAGS: -j1
CompileScript: <<
cd build/gmake ; make all doc
<<
#
InstallScript: <<
cd build/gmake ; make PREFIX=%i install
<<
DocFiles: <<
LICENSE
htmldoc/Overview.html:index.html
htmldoc/checked_by_tidy.gif
htmldoc/faq.html
htmldoc/grid.gif
htmldoc/license.html
htmldoc/pending.html
htmldoc/quickref.html
htmldoc/release-notes.html
htmldoc/tidy.css
htmldoc/tidy.gif
<<
#
Homepage: http://tidy.sourceforge.net
DescDetail: <<
HTML Tidy reads HTML, XHTML and XML files and writes cleaned up
markup. For HTML variants, it detects and corrects many common coding
errors and strives to produce visually equivalent markup that is both
W3C compliant and works on most browsers. A common use of Tidy is to
convert plain HTML to XHTML. For generic XML files, Tidy is limited
to correcting basic well-formedness errors and pretty printing.
<<
DescPackaging: <<
Based on a previous version by Sylvain Cuaz
and the tidy-devel FreeBSD port
maintained by .

API documentation has moved to the tidy-dev package.

This package adopts the original file version numbering from the HTML
Tidy project (e.g. version 1:051026 instead of 20051026).

Fetch phase should not break with new source code releases (package
tries downloading from both current and "old" directories).

This package is built using the "gmake" build system.

The license notice is extracted from "license.html" (type is MIT).
<<
#
Splitoff: <<
Package: %N-dev
Description: Headers and static library for HTML Tidy
BuildDependsOnly: true
DocFiles: <<
LICENSE
htmldoc/api/annotated.html
htmldoc/api/buffio_8h-source.html
htmldoc/api/buffio_8h.html
htmldoc/api/doxygen.css
htmldoc/api/doxygen.png
htmldoc/api/fileio_8h-source.html
htmldoc/api/fileio_8h.html
htmldoc/api/files.html
htmldoc/api/ftv2blank.png
htmldoc/api/ftv2doc.png
htmldoc/api/ftv2folderclosed.png
htmldoc/api/ftv2folderopen.png
htmldoc/api/ftv2lastnode.png
htmldoc/api/ftv2link.png
htmldoc/api/ftv2mlastnode.png
htmldoc/api/ftv2mnode.png
htmldoc/api/ftv2node.png
htmldoc/api/ftv2plastnode.png
htmldoc/api/ftv2pnode.png
htmldoc/api/ftv2vertline.png
htmldoc/api/functions.html
htmldoc/api/globals.html
htmldoc/api/group__AttrGet.html
htmldoc/api/group__Attribute.html
htmldoc/api/group__Basic.html
htmldoc/api/group__Clean.html
htmldoc/api/group__Configuration.html
htmldoc/api/group__IO.html
htmldoc/api/group__Memory.html
htmldoc/api/group__NodeAsk.html
htmldoc/api/group__Opaque.html
htmldoc/api/group__Parse.html
htmldoc/api/group__Save.html
htmldoc/api/group__Tree.html
htmldoc/api/index.html
htmldoc/api/main.html
htmldoc/api/modules.html
htmldoc/api/structTidyAttr.html
htmldoc/api/structTidyDoc.html
htmldoc/api/structTidyNode.html
htmldoc/api/structTidyOption.html
htmldoc/api/struct__TidyBuffer.html
htmldoc/api/struct__TidyInputSource.html
htmldoc/api/struct__TidyOutputSink.html
htmldoc/api/tidy_8h-source.html
htmldoc/api/tidy_8h.html
htmldoc/api/tidyenum_8h-source.html
htmldoc/api/tidyenum_8h.html
htmldoc/api/tree.html
htmldoc/api/tree.js
htmldoc/api/treeview.js
<<
Files: include lib
<<

tidy stable port .patch

diff -urN tidy/build/gmake/Makefile tidy.patched/build/gmake/Makefile
--- tidy/build/gmake/Makefile 2005-07-15 03:58:10.000000000 -0300
+++ tidy.patched/build/gmake/Makefile 2006-03-09 11:33:58.000000000 -0300
@@ -58,13 +58,13 @@
PROJECT=tidy

# Installation variables. Spaces OK, only dir create and file copy operations.
-runinst_prefix=/usr/local
-devinst_prefix=/usr/local
+runinst_prefix=${PREFIX}
+devinst_prefix=${PREFIX}

bininst = ${runinst_prefix}/bin
libinst = ${devinst_prefix}/lib
incinst = ${devinst_prefix}/include/$(PROJECT)
-maninst = ${devinst_prefix}/man
+maninst = ${devinst_prefix}/share/man

# Internal variables. - No spaces allowed: libtool chokes on spaces in directory names.
TOPDIR = ../..
@@ -84,7 +84,7 @@
# flags only supported with gcc 3.x
# CFLAGS += -Wunused-parameter

-OTHERCFLAGS=
+OTHERCFLAGS= -prebind
OTHERCFLAGS+= -D_DEBUG=1
# OTHERCFLAGS+= -DSUPPORT_ACCESSIBILITY_CHECKS=1 -DSUPPORT_UTF16_ENCODINGS=1 -DSUPPORT_ASIAN_ENCODINGS=1
ifdef SUPPORT_UTF16_ENCODINGS
@@ -116,6 +116,7 @@

LIBRARY = $(LIBDIR)/$(LIBPREFIX)$(PROJECT)$(LIBSUFFIX)
AR=ar -r
+RANLIB = ranlib

XSLTPROC = xsltproc

@@ -175,7 +176,7 @@

$(BINDIR)/$(PROJECT): $(APPDIR)/tidy.c $(HFILES) $(LIBRARY)
if [ ! -d $(BINDIR) ]; then mkdir $(BINDIR); fi
- $(CC) $(CFLAGS) $(OTHERCFLAGS) -o $@ $(APPDIR)/tidy.c -I$(INCDIR) -L$(LIBDIR) -l$(PROJECT)
+ $(CC) $(CFLAGS) $(OTHERCFLAGS) -o $@ $(APPDIR)/tidy.c -I$(INCDIR) $(LIBRARY)

$(BINDIR)/tab2space: $(APPDIR)/tab2space.c
if [ ! -d $(BINDIR) ]; then mkdir $(BINDIR); fi
diff -urN tidy/include/platform.h tidy.patched/include/platform.h
--- tidy/include/platform.h 2005-06-16 03:58:05.000000000 -0300
+++ tidy.patched/include/platform.h 2006-03-01 10:39:56.000000000 -0300
@@ -33,7 +33,7 @@
It enables tidy to find config files named ~/.tidyrc if
the HTML_TIDY environment variable is not set.
*/
-/* #define USER_CONFIG_FILE "~/.tidyrc" */
+#define USER_CONFIG_FILE "~/.tidyrc"

/*
Uncomment the following #define if your
@@ -48,7 +48,7 @@
Contributed by Todd Lewis.
*/

-/* #define SUPPORT_GETPWNAM */
+#define SUPPORT_GETPWNAM


/* Enable/disable support for Big5 and Shift_JIS character encodings */

tidy _unstable_ port information

Package: tidy
Version: 051026
Revision: 5
Epoch: 1
Description: Utility to clean up HTML/XHTML/XML
License: BSD
Maintainer: None
#
CustomMirror: <<
Location1: http://tidy.sourceforge.net/src
Location2: http://tidy.sourceforge.net/src/old
<<
Source: mirror:custom:%n_src_%v.tgz
Source-MD5: 1e39fafd6808978871346658c8da1454
Source2: http://tidy.sourceforge.net/docs/%n_docs_051020.tgz
Source2-MD5: 86de2f198e57399c063d2567b2a25628
SourceDirectory: %n
#
Patch: %n.patch
PatchScript: <<
sed -n '9,45p;45q' htmldoc/license.html > LICENSE
<<
#
NoSetMAKEFLAGS: true
SetMAKEFLAGS: -j1
CompileScript: <<
cd build/gmake ; make PREFIX=%p all doc
<<
#
InstallScript: <<
cd build/gmake ; make PREFIX=%i LIBRUN=%p/lib install
<<
DocFiles: <<
LICENSE
htmldoc/Overview.html:index.html
htmldoc/checked_by_tidy.gif
htmldoc/faq.html
htmldoc/grid.gif
htmldoc/license.html
htmldoc/pending.html
htmldoc/quickref.html
htmldoc/release-notes.html
htmldoc/tidy.css
htmldoc/tidy.gif
<<
#
Homepage: http://tidy.sourceforge.net
DescDetail: <<
HTML Tidy reads HTML, XHTML and XML files and writes cleaned up
markup. For HTML variants, it detects and corrects many common coding
errors and strives to produce visually equivalent markup that is both
W3C compliant and works on most browsers. A common use of Tidy is to
convert plain HTML to XHTML. For generic XML files, Tidy is limited
to correcting basic well-formedness errors and pretty printing.
<<
DescPackaging: <<
Based on a previous version by Sylvain Cuaz
and the tidy-devel FreeBSD port
maintained by .

API documentation has moved to the tidy-dev package.

This package adopts the original file version numbering from the HTML
Tidy project (e.g. version 1:051026 instead of 20051026).

Fetch phase should not break with new source code releases (package
tries downloading from both current and "old" directories).

This package is built using the "gmake" build system.

The license notice is extracted from "license.html" (type is MIT).
<<
#
Splitoff: <<
Package: tidy-dev
Depends: libtidy-dev, fink-obsolete-packages
Description: OBSOLETE use libtidy-dev instead
DocFiles: LICENSE
<<
Splitoff2: <<
Package: libtidy0-shlibs
Description: Shared library for HTML Tidy
DocFiles: LICENSE
Files: lib/libtidy.*.dylib
Shlibs: %p/lib/libtidy.0.dylib 1.0.0 libtidy0-shlibs (>= 1:051026-5)
<<
Splitoff3: <<
Package: libtidy-dev
Description: Headers and static library for HTML Tidy
BuildDependsOnly: true
Replaces: tidy-dev (<= 1:051026-4)
Depends: libtidy0-shlibs (= %e:%v-%r)
DocFiles: <<
LICENSE
htmldoc/api/annotated.html
htmldoc/api/buffio_8h-source.html
htmldoc/api/buffio_8h.html
htmldoc/api/doxygen.css
htmldoc/api/doxygen.png
htmldoc/api/fileio_8h-source.html
htmldoc/api/fileio_8h.html
htmldoc/api/files.html
htmldoc/api/ftv2blank.png
htmldoc/api/ftv2doc.png
htmldoc/api/ftv2folderclosed.png
htmldoc/api/ftv2folderopen.png
htmldoc/api/ftv2lastnode.png
htmldoc/api/ftv2link.png
htmldoc/api/ftv2mlastnode.png
htmldoc/api/ftv2mnode.png
htmldoc/api/ftv2node.png
htmldoc/api/ftv2plastnode.png
htmldoc/api/ftv2pnode.png
htmldoc/api/ftv2vertline.png
htmldoc/api/functions.html
htmldoc/api/globals.html
htmldoc/api/group__AttrGet.html
htmldoc/api/group__Attribute.html
htmldoc/api/group__Basic.html
htmldoc/api/group__Clean.html
htmldoc/api/group__Configuration.html
htmldoc/api/group__IO.html
htmldoc/api/group__Memory.html
htmldoc/api/group__NodeAsk.html
htmldoc/api/group__Opaque.html
htmldoc/api/group__Parse.html
htmldoc/api/group__Save.html
htmldoc/api/group__Tree.html
htmldoc/api/index.html
htmldoc/api/main.html
htmldoc/api/modules.html
htmldoc/api/structTidyAttr.html
htmldoc/api/structTidyDoc.html
htmldoc/api/structTidyNode.html
htmldoc/api/structTidyOption.html
htmldoc/api/struct__TidyBuffer.html
htmldoc/api/struct__TidyInputSource.html
htmldoc/api/struct__TidyOutputSink.html
htmldoc/api/tidy_8h-source.html
htmldoc/api/tidy_8h.html
htmldoc/api/tidyenum_8h-source.html
htmldoc/api/tidyenum_8h.html
htmldoc/api/tree.html
htmldoc/api/tree.js
htmldoc/api/treeview.js
<<
Files: <<
include
lib/libtidy.a
lib/libtidy.dylib
<<
<<

tidy _unstable_ port .patch

diff -ruN tidy.orig/build/gmake/Makefile tidy/build/gmake/Makefile
--- tidy.orig/build/gmake/Makefile 2005-07-15 00:58:10.000000000 -0600
+++ tidy/build/gmake/Makefile 2008-08-26 12:05:45.000000000 -0600
@@ -58,13 +58,14 @@
PROJECT=tidy

# Installation variables. Spaces OK, only dir create and file copy operations.
-runinst_prefix=/usr/local
-devinst_prefix=/usr/local
+runinst_prefix=${PREFIX}
+devinst_prefix=${PREFIX}
+librun=${LIBRUN}

bininst = ${runinst_prefix}/bin
libinst = ${devinst_prefix}/lib
incinst = ${devinst_prefix}/include/$(PROJECT)
-maninst = ${devinst_prefix}/man
+maninst = ${devinst_prefix}/share/man

# Internal variables. - No spaces allowed: libtool chokes on spaces in directory names.
TOPDIR = ../..
@@ -84,7 +85,7 @@
# flags only supported with gcc 3.x
# CFLAGS += -Wunused-parameter

-OTHERCFLAGS=
+OTHERCFLAGS= -prebind
OTHERCFLAGS+= -D_DEBUG=1
# OTHERCFLAGS+= -DSUPPORT_ACCESSIBILITY_CHECKS=1 -DSUPPORT_UTF16_ENCODINGS=1 -DSUPPORT_ASIAN_ENCODINGS=1
ifdef SUPPORT_UTF16_ENCODINGS
@@ -108,14 +109,18 @@
# Tidy lib related variables
TIDY_MAJOR = 1
TIDY_MINOR = 0
+TIDY_MICRO = 0

# This will come from autoconf again
LIBPREFIX = lib
LIBSUFFIX = .a
+SHLIBSUFFIX = .dylib
OBJSUF = .o

LIBRARY = $(LIBDIR)/$(LIBPREFIX)$(PROJECT)$(LIBSUFFIX)
+SHLIB = $(LIBPREFIX)$(PROJECT).$(TIDY_MINOR)$(SHLIBSUFFIX)
AR=ar -r
+RANLIB = ranlib

XSLTPROC = xsltproc

@@ -158,10 +163,16 @@
$(SRCDIR)/tidy-int.h


-all: $(LIBRARY) $(EXES)
+all: $(SHLIB) $(LIBRARY) $(EXES)

doc: $(DOCS)

+$(SHLIB): $(OBJFILES)
+ if [ ! -d $(LIBDIR) ]; then mkdir $(LIBDIR); fi
+ $(CC) -dynamiclib -o $(LIBDIR)/$(SHLIB) $(OBJFILES) $(LDFLAGS) -install_name $(libinst)/$(SHLIB) -compatibility_version $(TIDY_MAJOR) -current_version $(TIDY_MAJOR)
+ ln -s $(LIBDIR)/$(SHLIB) $(LIBDIR)/$(LIBPREFIX)$(PROJECT)$(SHLIBSUFFIX)
+ ln -s $(LIBDIR)/$(SHLIB) $(LIBDIR)/$(LIBPREFIX)$(PROJECT).$(TIDY_MINOR).$(TIDY_MINOR).$(TIDY_MICRO)$(SHLIBSUFFIX)
+
$(LIBRARY): $(OBJFILES)
if [ ! -d $(LIBDIR) ]; then mkdir $(LIBDIR); fi
$(AR) $@ $(OBJFILES)
@@ -175,7 +186,7 @@

$(BINDIR)/$(PROJECT): $(APPDIR)/tidy.c $(HFILES) $(LIBRARY)
if [ ! -d $(BINDIR) ]; then mkdir $(BINDIR); fi
- $(CC) $(CFLAGS) $(OTHERCFLAGS) -o $@ $(APPDIR)/tidy.c -I$(INCDIR) -L$(LIBDIR) -l$(PROJECT)
+ $(CC) $(CFLAGS) $(OTHERCFLAGS) -o $@ $(APPDIR)/tidy.c -I$(INCDIR) $(LIBRARY)

$(BINDIR)/tab2space: $(APPDIR)/tab2space.c
if [ ! -d $(BINDIR) ]; then mkdir $(BINDIR); fi
@@ -211,6 +222,9 @@
installib: $(LIBRARY)
if [ ! -d "$(libinst)" ]; then mkdir -p "$(libinst)"; fi
cp -f $(LIBRARY) "$(libinst)/"
+ cp -f $(LIBDIR)/$(SHLIB) "$(libinst)/"
+ ln -s $(librun)/$(SHLIB) $(libinst)/$(LIBPREFIX)$(PROJECT)$(SHLIBSUFFIX)
+ ln -s $(librun)/$(SHLIB) $(libinst)/$(LIBPREFIX)$(PROJECT).$(TIDY_MINOR).$(TIDY_MINOR).$(TIDY_MICRO)$(SHLIBSUFFIX)

installexes: $(EXES)
if [ ! -d "$(bininst)" ]; then mkdir -p "$(bininst)"; fi
diff -ruN tidy.orig/include/platform.h tidy/include/platform.h
--- tidy.orig/include/platform.h 2005-06-16 00:58:05.000000000 -0600
+++ tidy/include/platform.h 2008-08-26 11:38:37.000000000 -0600
@@ -33,7 +33,7 @@
It enables tidy to find config files named ~/.tidyrc if
the HTML_TIDY environment variable is not set.
*/
-/* #define USER_CONFIG_FILE "~/.tidyrc" */
+#define USER_CONFIG_FILE "~/.tidyrc"

/*
Uncomment the following #define if your
@@ -48,7 +48,7 @@
Contributed by Todd Lewis.
*/

-/* #define SUPPORT_GETPWNAM */
+#define SUPPORT_GETPWNAM


/* Enable/disable support for Big5 and Shift_JIS character encodings */
@@ -498,14 +498,14 @@

/* hack for gnu sys/types.h file which defines uint and ulong */

-#if defined(BE_OS) || defined(SOLARIS_OS) || defined(BSD_BASED_OS) || defined(OSF_OS) || defined(IRIX_OS) || defined(AIX_OS)
+#if defined(BE_OS) || defined(SOLARIS_OS) || defined(MAC_OS) || defined(BSD_BASED_OS) || defined(OSF_OS) || defined(IRIX_OS) || defined(AIX_OS)
#include
#endif
#if !defined(HPUX_OS) && !defined(CYGWIN_OS) && !defined(MAC_OS_X) && !defined(BE_OS) && !defined(SOLARIS_OS) && !defined(BSD_BASED_OS) && !defined(OSF_OS) && !defined(IRIX_OS) && !defined(AIX_OS) && !defined(LINUX_OS)
typedef unsigned int uint;
#endif
#if defined(HPUX_OS) || defined(CYGWIN_OS) || defined(MAC_OS) || defined(BSD_BASED_OS) || defined(_WIN32)
-typedef unsigned long ulong;
+typedef long ulong;
#endif

#ifndef TIDY_EXPORT /* Define it away for most builds */