# $Id: Portfile 60534 2009-11-14 23:10:00Z ryandesign@macports.org $

PortSystem 1.0
name			html2text
version			1.3.2a
revision		3
categories		textproc
platforms		darwin
maintainers		nomaintainer
homepage		http://www.mbayer.de/${name}/
description		Utility to convert HTML documents into plain text.

long_description	html2text is a command line utility, written in C++, that converts \
			HTML documents into plain text. \
			Each HTML document is loaded from a location indicated by a URI or \
			read  from standard input, and formatted into a stream of plain text \
			characters that  is written to standard output or into an output-file. \
			The input-URI may  specify a remote site, from that the documents are \
			loaded via the Hypertext  Transfer Protocol (HTTP).
			
master_sites		http://userpage.fu-berlin.de/~mbayer/tools/ \
			ftp://ftp.ibiblio.org/pub/linux/apps/www/converters/

checksums		md5 6097fe07b948e142315749e6620c9cfc

patchfiles		patch-configure.diff

destroot {
	xinstall -m 755 ${worksrcpath}/html2text ${destroot}${prefix}/bin
	xinstall -m 644 ${worksrcpath}/html2text.1.gz \
		${destroot}${prefix}/share/man/man1
	xinstall -m 644 ${worksrcpath}/html2textrc.5.gz \
		${destroot}${prefix}/share/man/man5
	xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
	xinstall -m 644 -v -W ${worksrcpath} \
		CHANGES COPYING CREDITS KNOWN_BUGS README RELEASE_NOTES TODO \
		${destroot}${prefix}/share/doc/${name}
}
