# -*- 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.3.0
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from     tarball
revision                0

checksums               rmd160  b5ba6814f21b801a58fd761713cb46d4b2cdc42c \
                        sha256  df14bfc51064e2fc134e7828e7438a6f08ab90959ce0cae636dfa08ab558274c \
                        size    186796

maintainers             {grimreaper @grimreaper} openmaintainer
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}
}