Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 29 Jun 1998 09:53:25 -0500 (EST)
From:      Don Croyle <croyle@gelemna.ft-wayne.in.us>
To:        FreeBSD-gnats-submit@FreeBSD.ORG
Subject:   ports/7111: new port: txt2html-1.25
Message-ID:  <199806291453.JAA26193@emerson.gelemna.ft-wayne.in.us>

next in thread | raw e-mail | index | archive | help

>Number:         7111
>Category:       ports
>Synopsis:       new port: txt2html-1.25
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:
>Keywords:
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jun 29 08:00:01 PDT 1998
>Last-Modified:
>Originator:     Don Croyle
>Organization:
>Release:        FreeBSD 3.0-CURRENT i386
>Environment:

	

>Description:
txt2html is a perl script that converts raw text into something with a
little HTML formatting.

The do-configure target is probably gratuitous; I doubt that anyone
would ever want to install this somewhere other than /usr/local.
	

>How-To-Repeat:

	

>Fix:
	
	
Commit the contents of this archive.

# 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:
#
#	txt2html
#	txt2html/Makefile
#	txt2html/files
#	txt2html/files/md5
#	txt2html/pkg
#	txt2html/pkg/COMMENT
#	txt2html/pkg/PLIST
#	txt2html/pkg/DESCR
#	txt2html/patches
#	txt2html/patches/patch-aa
#
echo c - txt2html
mkdir -p txt2html > /dev/null 2>&1
echo x - txt2html/Makefile
sed 's/^X//' >txt2html/Makefile << 'END-of-txt2html/Makefile'
X# New ports collection makefile for:    txt2html
X# Version required:     1.25
X# Date created:         29 Jun 1998
X# Whom:                 Don Croyle <croyle@gelemna.ft-wayne.in.us>
X#
X# $Id$
X#
X
XDISTNAME=	txt2html-1.25
XCATEGORIES=	textproc
XMASTER_SITES=	http://www.thehouse.org/txt2html/
X
XMAINTAINER=	croyle@gelemna.ft-wayne.in.us
X
XWRKSRC=		${WRKDIR}/txt2html
XNO_BUILD=	yes
X
Xdo-configure:
X	cd ${WRKSRC} && perl -pi -e "s|/usr/local|${PREFIX}|g" txt2html.pl
X
Xdo-install:
X	${INSTALL_SCRIPT} ${WRKSRC}/txt2html.pl ${PREFIX}/bin/txt2html
X	${MKDIR} ${PREFIX}/share/doc/txt2html
X	${INSTALL_DATA} ${WRKSRC}/txt2html.dict ${PREFIX}/share/doc/txt2html/
X.if !defined(NOPORTDOCS)
X.for file in README changes.html sample.html sample.txt
X	${INSTALL_DATA} ${WRKSRC}/${file} ${PREFIX}/share/doc/txt2html/
X.endfor
X.endif
X	@${ECHO_MSG} "To install the sample links dictionary as the default"
X	@${ECHO_MSG} "copy or link ${PREFIX}/share/doc/txt2html/txt2html.dict to"
X	@${ECHO_MSG} "${PREFIX}/lib/txt2html-linkdict or ~/.txt2html-linkdict"
X
X.include <bsd.port.mk>
END-of-txt2html/Makefile
echo c - txt2html/files
mkdir -p txt2html/files > /dev/null 2>&1
echo x - txt2html/files/md5
sed 's/^X//' >txt2html/files/md5 << 'END-of-txt2html/files/md5'
XMD5 (txt2html-1.25.tar.gz) = b5e914b98050e018737ea1085fcfc412
END-of-txt2html/files/md5
echo c - txt2html/pkg
mkdir -p txt2html/pkg > /dev/null 2>&1
echo x - txt2html/pkg/COMMENT
sed 's/^X//' >txt2html/pkg/COMMENT << 'END-of-txt2html/pkg/COMMENT'
XConvert raw text to something with a little HTML formatting.
END-of-txt2html/pkg/COMMENT
echo x - txt2html/pkg/PLIST
sed 's/^X//' >txt2html/pkg/PLIST << 'END-of-txt2html/pkg/PLIST'
Xbin/txt2html
Xshare/doc/txt2html/txt2html.dict
Xshare/doc/txt2html/README
Xshare/doc/txt2html/changes.html
Xshare/doc/txt2html/sample.html
Xshare/doc/txt2html/sample.txt
X@dirrm share/doc/txt2html
END-of-txt2html/pkg/PLIST
echo x - txt2html/pkg/DESCR
sed 's/^X//' >txt2html/pkg/DESCR << 'END-of-txt2html/pkg/DESCR'
Xtxt2html is a Perl program that converts plain text to HTML.
X
XIt supports headings, lists, simple character markup, and
Xhyperlinking, and is highly customizable. It recognizes some of the
Xapparent structure of the source document (mostly whitespace and
Xtypographic layout), and attempts to mark that structure explicitly
Xusing HTML.
X
Xhttp://www.thehouse.org/txt2html/
X
X- Don Croyle
X  <croyle@gelemna.ft-wayne.in.us>
END-of-txt2html/pkg/DESCR
echo c - txt2html/patches
mkdir -p txt2html/patches > /dev/null 2>&1
echo x - txt2html/patches/patch-aa
sed 's/^X//' >txt2html/patches/patch-aa << 'END-of-txt2html/patches/patch-aa'
X*** txt2html.pl.orig	Mon Jun 29 00:30:39 1998
X--- txt2html.pl	Mon Jun 29 04:17:18 1998
X***************
X*** 1,13 ****
X! : # Use perl
X!     eval 'exec perl -S $0 "$@"'
X!     if 0;
X! 
X! # It's faster to use something like #!/usr/bin/perl but you have to
X! # know where perl is on your system.  I didn't want to have to tell
X! # people how to do this, so I don't distribute it that way.  You
X! # really ought to change it though.  On my machine, it saves about a
X! # half a second per invokation.
X! 
X  #
X  # txt2html.pl
X  # Convert raw text to something with a little HTML formatting
X--- 1,4 ----
X! #!/usr/bin/perl
X  #
X  # txt2html.pl
X  # Convert raw text to something with a little HTML formatting
END-of-txt2html/patches/patch-aa
exit


>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199806291453.JAA26193>