# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
# $Id: Portfile 119225 2014-04-21 00:10:52Z dports@macports.org $

PortSystem          1.0
PortGroup           github 1.0

github.setup        gittup tup 0.7.1 v
revision            1
categories          devel
maintainers         gmail.com:anatol.pomozov
platforms           macosx
description         A build system with amazingly fast incremental build cycle

long_description    \
    Tup is a file-based build system - it inputs a list of file changes    \
    and a directed acyclic graph (DAG), then processes the DAG to execute  \
    the appropriate commands required to update dependent files.  The DAG  \
    is stored in an SQLite database.  By providing the file change log up  \
    front and storing the dependencies in an efficient database structure, \
    updates can be performed with very little overhead.

homepage            http://gittup.org/tup/
license             GPL-2

checksums           rmd160  6233ec9e861483d5d2d80a55121bf99a06939121 \
                    sha256  c697e374194011c3c44d5c829cb776afa5cfd0421e419845464d36775efc1dba

build.cmd           ./build.sh
build.env-append    TUP_LABEL=${version}

depends_build       port:pkgconfig
depends_lib         port:osxfuse \
                    port:libiconv

use_configure no

destroot {
    file copy ${worksrcpath}/build/tup ${destroot}${prefix}/bin
    file copy ${worksrcpath}/tup.1 ${destroot}${prefix}/share/man/man1/
}
