# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	xml2rfc
#	xml2rfc/Makefile
#	xml2rfc/pkg-comment
#	xml2rfc/pkg-descr
#	xml2rfc/pkg-plist
#	xml2rfc/distinfo
#	xml2rfc/files
#	xml2rfc/files/patch-tcl-00
#
echo c - xml2rfc
mkdir -p xml2rfc > /dev/null 2>&1
echo x - xml2rfc/Makefile
sed 's/^X//' >xml2rfc/Makefile << 'END-of-xml2rfc/Makefile'
X# New ports collection makefile for: xml2rfc
X# Date created:         8 July 2002
X# Whom:                 jabley@automagic.org
X#
X# $FreeBSD$
X
XPORTNAME=	xml2rfc
XPORTVERSION=	1.13
XCATEGORIES=	textproc tcl83
XMASTER_SITES=	http://xml.resource.org/authoring/
XEXTRACT_SUFX=	.tgz
X
XMAINTAINER=	jabley@automagic.org
X
XRUN_DEPENDS=	tclsh8.3:${PORTSDIR}/lang/tcl83
X
X.if !defined(WITHOUT_X11)
XRUN_DEPENDS+=	wish8.3:${PORTSDIR}/x11-toolkits/tk83
XCATEGORIES+=	tk83
X.endif
X
Xdo-build:
X
Xdo-install:
X	${INSTALL_SCRIPT} ${WRKSRC}/xml2rfc.tcl ${PREFIX}/bin/xml2rfc
X	${LN} ${PREFIX}/bin/xml2rfc ${PREFIX}/bin/xml2txt
X	${LN} ${PREFIX}/bin/xml2rfc ${PREFIX}/bin/xml2html
X	${LN} ${PREFIX}/bin/xml2rfc ${PREFIX}/bin/xml2nroff
X	${MKDIR} ${PREFIX}/share/doc/xml2rfc
X	for doc in README.html README.txt README.xml \
X	    draft-mrose-writing-rfcs.html draft-mrose-writing-rfcs.txt \
X	    rfc2629.dtd rfc2629.html rfc2629.txt rfc2629.xml rfc2629.xslt; \
X	do ${INSTALL_DATA} ${WRKSRC}/$${doc} ${PREFIX}/share/doc/xml2rfc; \
X	done
X
X.include <bsd.port.mk>
END-of-xml2rfc/Makefile
echo x - xml2rfc/pkg-comment
sed 's/^X//' >xml2rfc/pkg-comment << 'END-of-xml2rfc/pkg-comment'
XA tool to create RFCs and related documents from XML, as per RFC2629
END-of-xml2rfc/pkg-comment
echo x - xml2rfc/pkg-descr
sed 's/^X//' >xml2rfc/pkg-descr << 'END-of-xml2rfc/pkg-descr'
XThis is a port of xml2rfc, a tool for producing documents formatted
Xaccording to the requirements of the RFC editor from XML, as described
Xin RFC 2629.
X
XWWW: http://xml.resource.org/
X
Xjabley@automagic.org
END-of-xml2rfc/pkg-descr
echo x - xml2rfc/pkg-plist
sed 's/^X//' >xml2rfc/pkg-plist << 'END-of-xml2rfc/pkg-plist'
Xbin/xml2rfc
Xbin/xml2txt
Xbin/xml2html
Xbin/xml2nroff
Xshare/doc/xml2rfc/README.html
Xshare/doc/xml2rfc/README.txt
Xshare/doc/xml2rfc/README.xml
Xshare/doc/xml2rfc/draft-mrose-writing-rfcs.html
Xshare/doc/xml2rfc/draft-mrose-writing-rfcs.txt
Xshare/doc/xml2rfc/rfc2629.dtd
Xshare/doc/xml2rfc/rfc2629.html
Xshare/doc/xml2rfc/rfc2629.txt
Xshare/doc/xml2rfc/rfc2629.xml
Xshare/doc/xml2rfc/rfc2629.xslt
X@dirrm share/doc/xml2rfc
END-of-xml2rfc/pkg-plist
echo x - xml2rfc/distinfo
sed 's/^X//' >xml2rfc/distinfo << 'END-of-xml2rfc/distinfo'
XMD5 (xml2rfc-1.13.tgz) = f424ad53ef361d101af61a4318647d28
END-of-xml2rfc/distinfo
echo c - xml2rfc/files
mkdir -p xml2rfc/files > /dev/null 2>&1
echo x - xml2rfc/files/patch-tcl-00
sed 's/^X//' >xml2rfc/files/patch-tcl-00 << 'END-of-xml2rfc/files/patch-tcl-00'
X--- xml2rfc.tcl.orig    Sun Jul  7 21:48:45 2002
X+++ xml2rfc.tcl Sun Jul  7 22:25:54 2002
X@@ -1,7 +1,7 @@
X #!/bin/sh
X # the next line restarts using the correct interpreter \
X-if   test ! -z "$DISPLAY"; then exec wish "$0" "$0" "$@"; \
X-elif test ! -z "$1";       then exec tclsh "$0" "$0" "$@"; \
X+if   test ! -z "$DISPLAY"; then exec wish8.3 "$0" "$0" "$@"; \
X+elif test ! -z "$1";       then exec tclsh8.3 "$0" "$0" "$@"; \
X else                            echo "usage: $0 filename" >&2; exit 1; fi
END-of-xml2rfc/files/patch-tcl-00
exit