# $Id: Portfile 48503 2009-03-24 01:58:47Z blb@macports.org $

PortSystem    	1.0
name      	ManOpen
version       	2.5.1
revision	1
categories    	aqua textproc
maintainers   	waqar
description   	GUI application for viewing Unix manual pages, 
long_description   \
	It can open files directly or be given titles, in which case 	\
	it will display the output from the `man' command-line program. \
	An apropos interface is also provided, which is basically a 	\
	quick-and-dirty search of the man page databases. Services are 	\
	provided to other applications to open selected files/titles 	\
	or do apropos searches using the selected text.
homepage	http://www.clindberg.org/projects/ManOpen.html
platforms	macosx
master_sites	http://www.clindberg.org/projects
distname	${name}-${version}.s
worksrcdir	${name}-${version}
checksums	md5 0f704085d6cece271860a521922292f5			\
		sha1 387a482f3bb0e6c7573a2bea9327be4aede31a48
patchfiles	patch-ManOpen_ManDocument.m.diff
use_configure   no
destroot 	{ 
	xinstall -d -m 755 ${destroot}${applications_dir}
	file copy ${build.dir}/${name}.app 				\
		${destroot}/${applications_dir}/${name}.app
	file copy ${build.dir}/openman ${destroot}${prefix}/bin
	file copy ${build.dir}/openman.tproj/openman.1			\
		${destroot}${prefix}/share/man/man1
}
