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

PortSystem          1.0
PortGroup           github 1.0

github.setup        tj histo 0.0.2
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball
maintainers         nomaintainer

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

license             MIT

checksums           rmd160  ad044b5aa11230e9184ee21538735168e4221fdf \
                    sha256  1e9d3ab4492a43c8989d306f4032d55329a7d03f20a5dd344ff7c71c5886ae00

dist_subdir   ${name}/${version}_1

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}
}
