# -*- 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        Fakerr git-recall 1.2.4 v
github.tarball_from archive
revision            0

description         An interactive way to peruse your git history in the \
                    terminal

long_description    ${name} is a simple tool that allows you to easily go \
                    through your commits and check what you or other \
                    contributors in your team did. It doesn't aim to be a \
                    replacement for the git log command, but just to be a \
                    convenient way to recall what you've done from your \
                    terminal.

categories          devel
installs_libs       no
license             MIT
maintainers         {gmail.com:herby.gillot @herbygillot} \
                    openmaintainer
supported_archs     noarch
platforms           any

checksums           rmd160  9105cc343b039ff19e3425980607ce5b3c883cf1 \
                    sha256  ee741c4b7e434e49cefa1c818caddfe987119ea9ef7e8662b4023cdbbd47bf9a \
                    size    5993

depends_run-append  port:bash \
                    port:git

use_configure       no

patch {
    # Run using MacPorts bash
    reinplace "s|#!/usr/bin/env bash|#!${prefix}/bin/bash|" \
        ${worksrcpath}/${name}
}

build {}

destroot {
    xinstall -m 0755 ${worksrcpath}/${name} ${destroot}${prefix}/bin/
}
