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

PortSystem              1.0
PortGroup               github 1.0

github.setup            tj git-extras 7.5.0
github.tarball_from     archive
revision                0

checksums               rmd160  d24245f3b1b8b13f979d1f732bf5acb8120ec879 \
                        sha256  bcfe0eabdccc806e53a10130fed6fb02373720ddeb670eecc5cc84d041d79880 \
                        size    200243

maintainers             nomaintainer
platforms               any
categories              devel
supported_archs         noarch

description             Git utilities
long_description        {*}${description} -- repo summary, repl, changelog population, author \
                        commit percentages and more
license                 MIT

use_configure           no

patch.pre_args-replace  -p0 -p1
patchfiles-append       macports-release.patch

build {}

destroot.destdir        PREFIX=${destroot}${prefix}
post-destroot {
    set docdir ${destroot}${prefix}/share/doc/${subport}
    xinstall -d ${docdir}
    xinstall -m 644 {*}[glob ${worksrcpath}/man/*.html] ${docdir}
}
