# -*- 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       legacysupport 1.1

# getline
legacysupport.newest_darwin_requires_legacy 10

name            cgdb
version         0.8.0
revision        0
categories      devel
license         GPL-2
maintainers     nomaintainer
description     A curses-based interface to the GNU Debugger (GDB).
long_description \
                CGDB is a curses-based interface to the GNU Debugger (GDB). \
                The goal of CGDB is to be lightweight and responsive, not   \
                encumbered with unnecessary features.

homepage        https://cgdb.github.io
master_sites    https://cgdb.me/files/
checksums       rmd160  dde2aad210d930a48e9bed3c7eb0f286e938b997 \
                sha256  0d38b524d377257b106bad6d856d8ae3304140e1ee24085343e6ddf1b65811f1 \
                size    775168

# To ensure makeinfo is found:
depends_build-append \
                port:texinfo
depends_lib     port:ncurses port:readline

patchfiles      implicit-int.patch

compiler.c_standard 2011
compiler.cxx_standard 2011

configure.args  --infodir=${prefix}/share/info \
                --mandir=${prefix}/share/man

livecheck.type  regex
livecheck.regex ${name}-(\\d+(?:\\.\\d+)+)[quotemeta ${extract.suffix}]
