aboutsummaryrefslogtreecommitdiffstats
path: root/textproc
diff options
context:
space:
mode:
authorglewis <glewis@FreeBSD.org>2004-03-18 06:24:09 +0800
committerglewis <glewis@FreeBSD.org>2004-03-18 06:24:09 +0800
commit6bbca1e410e3befa17e2a7c1f53bb1af5f526838 (patch)
treecf563299a285b98ee3f0f33b83485e66b3f49900 /textproc
parentde758141bc174d948da543117fc4f76e369ec220 (diff)
downloadfreebsd-ports-graphics-6bbca1e410e3befa17e2a7c1f53bb1af5f526838.tar.gz
freebsd-ports-graphics-6bbca1e410e3befa17e2a7c1f53bb1af5f526838.tar.zst
freebsd-ports-graphics-6bbca1e410e3befa17e2a7c1f53bb1af5f526838.zip
Add a port of html-pretty:
html-pretty (or htmlpty on file systems with unpleasant filename length restrictions) is a prettyprinter for HTML and SGML. It can also assist in the conversion of ordinary text files in ASCII or ISO8859-1 character sets to HTML. WWW: http://www.math.utah.edu/~beebe/software/html-sgml-tools.html#html-pretty
Diffstat (limited to 'textproc')
-rw-r--r--textproc/Makefile1
-rw-r--r--textproc/html-pretty/Makefile37
-rw-r--r--textproc/html-pretty/distinfo2
-rw-r--r--textproc/html-pretty/files/patch-Makefile.in113
-rw-r--r--textproc/html-pretty/pkg-descr6
-rw-r--r--textproc/html-pretty/pkg-plist10
6 files changed, 169 insertions, 0 deletions
diff --git a/textproc/Makefile b/textproc/Makefile
index b58c2874360..d9774bee117 100644
--- a/textproc/Makefile
+++ b/textproc/Makefile
@@ -118,6 +118,7 @@
SUBDIR += hs-haxml
SUBDIR += htdig
SUBDIR += html
+ SUBDIR += html-pretty
SUBDIR += html2fo
SUBDIR += html2text
SUBDIR += htmldoc
diff --git a/textproc/html-pretty/Makefile b/textproc/html-pretty/Makefile
new file mode 100644
index 00000000000..3f21dd3bb6b
--- /dev/null
+++ b/textproc/html-pretty/Makefile
@@ -0,0 +1,37 @@
+# New ports collection makefile for: html-pretty
+# Date created: 16 March 2004
+# Whom: Greg Lewis <glewis@FreeBSD.org>
+#
+# $FreeBSD$
+
+PORTNAME= html-pretty
+PORTVERSION= 1.01
+CATEGORIES= textproc www
+MASTER_SITES= http://www.math.utah.edu/pub/sgml/
+DISTNAME= htmlpty-${PORTVERSION}
+
+MAINTAINER= ports@FreeBSD.org
+COMMENT= HTML and SGML prettyprinter and text-to-HTML/SGML converter
+
+GNU_CONFIGURE= yes
+
+MAN1= html-pretty.1
+
+.if !defined(NOPORTDOCS)
+PORTDOCS= *
+
+DOCFILES= AUTHORS BUGS COPYING ChangeLog NEWS README THANKS
+
+post-install:
+ -${MKDIR} ${DOCSDIR}/html
+ ${INSTALL_DATA} -o ${SHAREOWN} -g ${SHAREGRP} ${WRKSRC}/*.html \
+ ${DOCSDIR}/html/
+ ${INSTALL_DATA} -o ${SHAREOWN} -g ${SHAREGRP} ${WRKSRC}/Docs/*.html \
+ ${DOCSDIR}/html/
+ for docfile in ${DOCFILES}; do \
+ ${INSTALL_DATA} -o ${SHAREOWN} -g ${SHAREGRP} \
+ ${WRKSRC}/$$docfile ${DOCSDIR}/; \
+ done
+.endif
+
+.include <bsd.port.mk>
diff --git a/textproc/html-pretty/distinfo b/textproc/html-pretty/distinfo
new file mode 100644
index 00000000000..f6593352d76
--- /dev/null
+++ b/textproc/html-pretty/distinfo
@@ -0,0 +1,2 @@
+MD5 (htmlpty-1.01.tar.gz) = cd51389ba454a17e67af4716fc7b5dc9
+SIZE (htmlpty-1.01.tar.gz) = 1439839
diff --git a/textproc/html-pretty/files/patch-Makefile.in b/textproc/html-pretty/files/patch-Makefile.in
new file mode 100644
index 00000000000..e4619f5be48
--- /dev/null
+++ b/textproc/html-pretty/files/patch-Makefile.in
@@ -0,0 +1,113 @@
+$FreeBSD$
+
+--- Makefile.in.orig Sat Aug 25 15:56:14 2001
++++ Makefile.in Tue Mar 16 17:58:19 2004
+@@ -34,7 +34,7 @@
+ ### install install htmlpty in system directories
+ ### install-exe install only htmlpty executable
+ ### install-man install only htmlpty manual pages
+-### install-lib install only htmlpty library files
++### install-data install only htmlpty data files
+ ### install-ftp install htmlpty in FTP directory
+ ### lint run lint on C source code
+ ### maintainer-clean remove absolutely everything that make
+@@ -49,7 +49,7 @@
+ ### uninstall remove htmlpty from system directories
+ ### uninstall-exe remove htmlpty executable from system
+ ### directories
+-### uninstall-lib remove htmlpty library files from system
++### uninstall-data remove htmlpty data files from system
+ ### directories
+ ### uninstall-man remove htmlpty manual pages from system
+ ### directories
+@@ -149,21 +149,21 @@
+
+ #### Start of system configuration section. ####
+
+-prefix = /usr/local
++prefix = @prefix@
+ exec_prefix = $(prefix)
+
+ bindir = $(exec_prefix)/bin
+-datadir = $(prefix)/lib
++datadir = $(prefix)/share
+ infodir = $(prefix)/info
+-libdir = $(prefix)/share/lib
++libdir = $(prefix)/lib
+ srcdir = @srcdir@
+
+ ### NB: the default catalog search algorithm in htmlpty is based on
+ ### mapping /the/path/to/bin/htmlpty to
+-### /the/path/to/share/lib/htmlpty, so the values of BINDIR and LIBDIR
++### /the/path/to/share/lib/htmlpty, so the values of BINDIR and DATADIR
+ ### are NOT independent.
+ BINDIR = $(bindir)
+-LIBDIR = $(libdir)
++DATADIR = $(datadir)
+ MANDIR = $(prefix)/man
+ MANEXT = 1
+
+@@ -217,7 +217,7 @@
+ INSTALL_PROGRAM = @INSTALL_PROGRAM@
+ INSTALL_DATA = @INSTALL_DATA@
+
+-LDFLAGS = $(OPT) -L$(prefix)/lib
++LDFLAGS = $(OPT)
+ LIBS = @LIBS@
+
+ VPATH = @srcdir@
+@@ -743,7 +743,7 @@
+ $(ZOO) v htmlpty-$(VERSION).zoo >htmlpty-$(VERSION).zoo-lst
+ $(LN) htmlpty-$(VERSION).zoo htmlpty.zoo
+
+-install: htmlpty install-exe install-lib install-man
++install: htmlpty install-exe install-data install-man
+
+ ### Remove the old executable before installing the new one, so as to
+ ### preserve the link to the old version. We first rename the file
+@@ -755,20 +755,15 @@
+ $(MV) $(BINDIR)/$(PROGRAM) $(BINDIR)/$(PROGRAM).tmp ; \
+ $(RM) $(BINDIR)/$(PROGRAM).tmp ; \
+ fi
+- $(CP) htmlpty $(BINDIR)/$(PROGRAM)
+- -$(CHMOD) 775 $(BINDIR)/$(PROGRAM)
+- -$(RM) $(BINDIR)/$(PROGRAM)-$(VERSION)
+- $(LN) $(BINDIR)/$(PROGRAM) $(BINDIR)/$(PROGRAM)-$(VERSION)
++ $(INSTALL) -m 755 htmlpty $(BINDIR)/$(PROGRAM)
+
+ install-man:
+- -$(RM) $(MANDIR)/cat$(MANEXT)/$(PROGRAM).$(MANEXT)
+- $(CP) htmlpty.man $(MANDIR)/man$(MANEXT)/$(PROGRAM).$(MANEXT)
+- -$(CHMOD) 664 $(MANDIR)/man$(MANEXT)/$(PROGRAM).$(MANEXT)
+-
+-install-lib:
+- -$(MKDIR) $(LIBDIR)/$(PROGRAM)
+- $(CP) Styles/catalog Styles/*.sty $(LIBDIR)/$(PROGRAM)/
+- $(CHMOD) 664 $(LIBDIR)/$(PROGRAM)/*
++ -$(MKDIR) $(MANDIR)/man$(MANEXT)
++ $(INSTALL_DATA) htmlpty.man $(MANDIR)/man$(MANEXT)/$(PROGRAM).$(MANEXT)
++
++install-data:
++ -$(MKDIR) $(DATADIR)/$(PROGRAM)
++ $(INSTALL_DATA) Styles/catalog Styles/*.sty $(DATADIR)/$(PROGRAM)/
+
+ install-ftp: htmlpty.tar htmlpty.zip htmlpty.zoo
+ $(TAR) tvf htmlpty-$(VERSION).tar >$(FTPDIR)/htmlpty-$(VERSION).tar-lst
+@@ -827,14 +822,14 @@
+ test-version:
+ @echo "Version number is ""'"$(VERSION)"'"
+
+-uninstall: uninstall-exe uninstall-lib uninstall-man
++uninstall: uninstall-exe uninstall-data uninstall-man
+
+ uninstall-exe:
+ -$(RM) $(BINDIR)/$(PROGRAM)
+ -$(RM) $(BINDIR)/$(PROGRAM)-$(VERSION)
+
+-uninstall-lib:
+- -$(RM) -r $(LIBDIR)/$(PROGRAM)
++uninstall-data:
++ -$(RM) -r $(DATADIR)/$(PROGRAM)
+
+ uninstall-man:
+ -$(RM) $(MANDIR)/cat$(MANEXT)/$(PROGRAM).$(MANEXT)
diff --git a/textproc/html-pretty/pkg-descr b/textproc/html-pretty/pkg-descr
new file mode 100644
index 00000000000..209dca32ea3
--- /dev/null
+++ b/textproc/html-pretty/pkg-descr
@@ -0,0 +1,6 @@
+html-pretty (or htmlpty on file systems with unpleasant filename
+length restrictions) is a prettyprinter for HTML and SGML. It can
+also assist in the conversion of ordinary text files in ASCII or
+ISO8859-1 character sets to HTML.
+
+WWW: http://www.math.utah.edu/~beebe/software/html-sgml-tools.html#html-pretty
diff --git a/textproc/html-pretty/pkg-plist b/textproc/html-pretty/pkg-plist
new file mode 100644
index 00000000000..a6cd3829f85
--- /dev/null
+++ b/textproc/html-pretty/pkg-plist
@@ -0,0 +1,10 @@
+bin/html-pretty
+%%DATADIR%%/catalog
+%%DATADIR%%/cougar.sty
+%%DATADIR%%/dtd.sty
+%%DATADIR%%/html-20.sty
+%%DATADIR%%/html-30.sty
+%%DATADIR%%/html-32.sty
+%%DATADIR%%/html-40.sty
+%%DATADIR%%/html-all.sty
+@dirrm %%DATADIR%%