# -*- 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$

PortSystem          1.0
PortGroup           github 1.0

github.setup        visionmedia histo 0.0.2
maintainers         g5pw openmaintainer

categories          textproc
description         Plot histograms in the terminal with arbitrary streaming\
                    or non-streaming data.
long_description    ${description}

platforms           darwin
license             MIT

checksums           rmd160  77d842f6d457ad5d7ec9ab958d94fd39f1bbe77e \
                    sha256  7f202ca608499cbb388ca5ffac22764d672ccf3cad2e405d1688fa18480f0ae8

use_configure       no

variant universal {}

build.args          CC="${configure.cc} [get_canonical_archflags cc]"

build.target        ${name}

destroot.destdir    PREFIX="${destroot}${prefix}"

post-destroot {
    xinstall -d ${destroot}${prefix}/share/doc/${name}
    move ${worksrcpath}/Readme.md ${destroot}${prefix}/share/doc/${name}
    xinstall -d ${destroot}${prefix}/share/examples/
    move ${worksrcpath}/examples ${destroot}${prefix}/share/examples/${name}
}