# -*- 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 104131 2013-03-17 05:38:53Z larryv@macports.org $

PortSystem          1.0
PortGroup           github 1.0

github.setup        ggreer the_silver_searcher 0.14
categories          textproc
maintainers         brianandjenny.com:brian.andrew openmaintainer
platforms           darwin
license             Apache-2.0
description         A code-searching tool similar to ack, but faster.
long_description    \
  An attempt to make something better than ack, which itself is better than grep.

checksums           rmd160  e5133997a476046532198ff9e5d7edfe0165065a \
                    sha256  73d936640f5221d860e186362095b36dfada8726b4cf11e60d036acd6b9f3bce

depends_build       port:pkgconfig
depends_lib         port:pcre

use_autoreconf      yes

build.args-append   V=1

post-destroot {
    xinstall -d -m 755 ${destroot}${prefix}/share/bash-completion/completions
    move \
        ${destroot}${prefix}/share/${name}/completions/ag.bashcomp.sh \
        ${destroot}${prefix}/share/bash-completion/completions/ag
}
