# -*- 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 106632 2013-06-02 18:31:36Z cal@macports.org $

PortSystem          1.0
PortGroup           github 1.0

github.setup        jonas tig 1.1 tig-
revision            1
dist_subdir         ${name}/${version}_1

categories          devel
maintainers         cal openmaintainer
description         A text interface to git repositories
long_description    ${description}

homepage            http://jonas.nitro.dk/tig/
license             GPL-2+
platforms           darwin

checksums           rmd160  a044dfc5e842910cdc0a18a05333472a17815b87 \
                    sha256  c14233fb383b8d09ff6ff4af3af92d26fa08464830800d45f72821c23677d719

depends_build       port:automake \
                    port:autoconf \
                    port:asciidoc \
                    port:xmlto

depends_lib         port:git-core \
                    port:libiconv \
                    port:ncurses

# We need to create the configure file,
# the github version does not contain it.
pre-configure {
    system -W ${worksrcpath} "make configure"
}

build.target-append doc-man doc-html
destroot.target-append \
                    install-doc-man install-doc-html
