# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=portfile:et:sw=4:ts=4:sts=4
# $Id: Portfile 118284 2014-03-28 21:31:27Z g5pw@macports.org $

PortSystem          1.0
PortGroup           github 1.0

github.setup        zolrath wemux 3.2.0 v
revision            2
maintainers         g5pw
license             MIT
categories          devel
description         wemux enhances tmux to make multi-user terminal multiplexing both easier and more powerful.
long_description    ${description} It features multi-server support as well as user listing and notifications when users attach/detach.

platforms           darwin
supported_archs     noarch

depends_lib         port:tmux

checksums           rmd160  1605853e4d493522d558a7b59a23f56b0b9ebe33 \
                    sha256  97378d4a40d6f230b5a77fbd29b100fca8f249d32a90fedd45b9a5ae3de3e47e

use_configure       no

patch {
    reinplace "s|/usr/local|${prefix}|g" wemux README.md man/wemux.1
}

build {}

destroot {
    xinstall -m 775 ${worksrcpath}/wemux ${destroot}${prefix}/bin
    xinstall -m 664 ${worksrcpath}/wemux.conf.example ${destroot}${prefix}/etc
}
