# $Id: Portfile,v 1.7 2004/01/17 22:45:30 toby Exp $

PortSystem 1.0
name		txt2html
version		1.35
categories	textproc
maintainers	mij@opendarwin.org
description	Convert ASCII text to HTML
homepage	http://www.aigeek.com/txt2html/
platforms	darwin

long_description txt2html is a Perl program that converts plain text to \
		 HTML.  It supports headings, lists, simple character \
		 markup, hyperlinking, and is highly customizable.  It \
		 recognizes some of the structure of the source document \
		 (whitespace, typographic layout, etc.), and attempts to \
		 mark that structure explicitly using HTML.

master_sites     sourceforge

extract.suffix	.tgz
checksums	md5 ba007af9d0681b3f493c84869b147071

configure	{}
post-configure	{ reinplace "s|/usr/share/misc|${prefix}/share/${portname}|g" \
		    ${worksrcpath}/${portname}.pl }

build		{}

destroot	{ system "install -m 755 -d ${destroot}${prefix}/bin"
		  system "install -m 755 ${worksrcpath}/${portname}.pl \
		    ${destroot}${prefix}/bin/${portname}"
		  system "install -m 755 -d \
		    ${destroot}${prefix}/share/${portname}"
		  system "install -m 644 ${worksrcpath}/${portname}.dict \
		    ${destroot}${prefix}/share/${portname}"
		  system "install -m 755 -d \
		    ${destroot}${prefix}/share/doc/${portname}"
		  system "install -m 644 ${worksrcpath}/* \
		    ${destroot}${prefix}/share/doc/${portname}"
		  system "rm ${destroot}${prefix}/share/doc/${portname}/${portname}.*" }
