# -*- 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
PortGroup           perl5 1.0
PortGroup           xcode 1.0

github.setup        protocool AckMate f2515f9
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball
name                ackmate
version             1.1.2
revision            5
categories          editors aqua
maintainers         nomaintainer
description         AckMate is a TextMate plugin for running Ack in a Cocoa window.
long_description    {*}${description}
license             MIT

checksums           rmd160  7284a1bddc28316ff41ba75b7614c8209ff79fb8 \
                    sha256  f322c96d5c8bf2e6c6d5e3a5d2b2979de1fb8951ec0889b625dfa5666a433067

# TODO:             https://trac.macports.org/ticket/49570
perl5.branches      5.34

depends_build       port:ragel
depends_lib         port:ack

post-patch {
    reinplace       "s|\#!/usr/bin/env perl|\#!${perl5.bin}|" \
                    ${worksrcpath}/bundle_extras/ackmate_ack.autogenerated
}
