# $Id$

PortSystem      1.0

name            remake
set makeversion 4.1
set dbgversion  1.1
version         ${makeversion}-dbg-${dbgversion}
categories      devel
platforms       darwin
license         GPL-3+
maintainers     raimue openmaintainer
description     Debugger for GNU Makefiles

long_description \
    remake is a patched and modernized version of GNU make utility that adds \
    improved error reporting, the ability to trace execution in a \
    comprehensible way, and a debugger.
homepage        http://bashdb.sourceforge.net/remake/

master_sites    sourceforge:bashdb
checksums       sha1    2eacd7095c7be65ceea3d71c544acfbdcb331559 \
                rmd160  ced30982d55c27981400d2fb40fe4c3e4777009a \
                sha256  42eb79a8418e327255341a55ccbdf358eed42c4e15ffb39052c1627de83521fe
distname        ${name}-${makeversion}+dbg${dbgversion}
use_bzip2       yes

depends_lib     port:gettext \
                port:libiconv \
                port:readline

post-destroot {
    # Avoid conflict with gmake port
    delete ${destroot}${prefix}/include/gnumake.h
}

livecheck.type      regex
livecheck.url       http://sourceforge.net/projects/bashdb/files/remake/
livecheck.version   [strsed ${version} {s/-/+/}]
livecheck.regex     (\\d+(?:\\.\\d+)+\\+dbg-\\d+(?:\\.\\d+)+)