# -*- 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 91038 2012-03-22 22:25:26Z dports@macports.org $

PortSystem          1.0

name                tup
version             0.6
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
master_sites        https://github.com/gittup/tup/tarball/v${version}

checksums           rmd160  4cd05061ec58e828d967d4fbc27803e788c839ec \
                    sha256  3b8b7084d484c13071a33c9bbd7f9911dee163faa7b981629f41b87232ccd11f

extract.mkdir       yes
extract.post_args   "| tar --strip-components=1 -xf -"

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

depends_build       port:pkgconfig
depends_lib         path:lib/pkgconfig/fuse.pc:fuse4x \
                    port:libiconv

use_configure no

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

livecheck.type      regex
livecheck.url       https://github.com/gittup/tup/tags
livecheck.regex     {<a href="/gittup/tup/tarball/v([0-9.]*)"}
