# $Id: Portfile 57199 2009-09-07 07:18:20Z mww@macports.org $

PortSystem 1.0

name                man
version             1.6f
revision            1
categories          sysutils
platforms           darwin
maintainers         mww
license             GPLv2
description         The man page suite containing man, apropos, whatis, man2html
long_description    The man page suite (man, apropos, and whatis) contains \
                    programs used to read most of the documentation on a Unix \
                    system. The whatis and apropos programs are used to find \
                    documentation related to a particular subject. 

homepage            http://primates.ximian.com/~flucifredi/man/
master_sites        ${homepage}
patchfiles          patch-configure \
                    patch-configure-prepath \
                    patch-gencat-genlib.c \
                    patch-man2html_Makefile.in \
                    configure.diff \
                    PR3845474.diff \
                    PR3857969.diff \
                    PR3939085.diff \
                    PR4006198.diff \
                    PR4062483.diff \
                    PR4076593.diff \
                    PR4302566.diff \
                    PR4670363.diff \
                    src__man-getopt.c.diff \
                    src__man.c.diff \
                    src__manpath.c.diff \
                    src__util.c.diff

checksums           md5 67aaaa6df35215e812fd7d89472c44b6 \
                    sha1 c97012607ed9d75a6eee7e66d257a99a8ed86918 \
                    rmd160 8680bb94bff9b86fb9d061f58d9acb08c934531e \

configure.args      --mandir=${prefix}/share/man \
                    -compatibility_mode_for_colored_groff \
                    -confdir=${prefix}/etc \
                    +fhs

depends_run         port:bzip2 \
                    port:groff \
                    port:gzip \
                    port:less

post-destroot {
    file delete ${destroot}${prefix}/share/locale
}

variant man_all_lang {
    configure.args-append +lang all
}

platform darwin 9 {
    patchfiles-append src__man.conf.in.diff
}
