# -*- 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       compiler_blacklist_versions 1.0
PortGroup       boost 1.0

name            source-highlight
version         3.1.9
revision        1
categories      textproc devel
license         GPL-3+
maintainers     nomaintainer
description     source-code syntax highlighter
long_description \
    This program, given a source file, produces a document with syntax      \
    highlighting. At the moment it can handle: C/C++, C#, Bib, Bison, Caml, \
    Changelog, CSS, Diff, Flex, Fortran, Html, Java,  Javascript, Latex,    \
    Logtalk, Log files, Lua, Makefile, M4, ML, Pascal, Perl, PHP,           \
    PostScript, Prolog, Python, Ruby, Shell, Sql, Tcl, and XML.

homepage        https://www.gnu.org/software/src-highlite/
platforms       darwin
master_sites    gnu:src-highlite

checksums       rmd160  f69de8b826d697633455b2b560851509bbf8bd43 \
                sha256  3a7fd28378cb5416f8de2c9e77196ec915145d44e30ff4e0ee8beb3fe6211c91 \
                size    1717234

# https://trac.macports.org/ticket/59258
compiler.blacklist-append {clang < 426}

# bundled libtool version doesn't recognise -stdlib
use_autoreconf  yes

configure.args  --infodir=${prefix}/share/info \
                --mandir=${prefix}/share/man \
                --with-boost=[boost::install_area]

test.run        yes
test.target     check

depends_lib     port:ctags

livecheck.type  regex
livecheck.url   https://ftp.gnu.org/gnu/src-highlite/?C=M&O=D
livecheck.regex ${name}-(\\d+\\.\\d+(?:\\.\\d+)?)