# $Id: Portfile,v 1.5 2005/06/28 06:14:23 mww Exp $

PortSystem 1.0

name			vim2html
version			1.46
categories		textproc
platforms		darwin
maintainers		mww@opendarwin.org
description		vim2html converts any Vim-editable file into well-formed HTML
long_description	vim2html is a small shell  program that will export any \
			Vim-editable file into well-formed HTML - simulating a Vim \
			session. Fully supports Vim colorization (customizable) and \
			Syntax Highlighting. This program provides an excellent method \
			of presenting your programs/HTML/scripts/etc. on the web.

homepage		http://norlug.org/~chipster/archives/cat_hacks.shtml
master_sites	http://norlug.org/~chipster/resources/vim2html/
checksums		md5 4fcccd28b2a28519bdc65e90120c7204

depends_run		bin:bash:bash \
				bin:vim:vim

configure {
	reinplace "s|/usr/share/vim|${prefix}/share/vim /usr/share/vim|g" \
		${worksrcpath}/vim2html
}

build			{}

destroot {
	xinstall -m 755 ${worksrcpath}/vim2html ${destroot}${prefix}/bin
	xinstall -m 644 ${worksrcpath}/man/vim2html.1.bz2 \
		${destroot}${prefix}/share/man/man1
	xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
	xinstall -m 644 -W ${worksrcpath}/docs AUTHORS ChangeLog COPYING INSTALL \
		README ${destroot}${prefix}/share/doc/${name}
}
