# -*- coding: utf-8; mode: tcl; tab-width: 4; truncate-lines: t; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
# $Id: Portfile 75257 2011-01-19 06:23:12Z ryandesign@macports.org $

PortSystem          1.0

name                ManOpen
version             2.5.1
revision            1
categories          aqua textproc
maintainers         waqar openmaintainer
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 \
                    rmd160  689d06f7afb5ecfd945ef47bd355bfdbfb1d70da
patchfiles          patch-ManOpen_ManDocument.m.diff
use_configure       no
use_parallel_build  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
}
