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

# Needed for older systems to select the right compiler and stdlib.
PortGroup       cxx11 1.1

name            source-highlight
version         3.1.8
revision        4
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  a6e0ad1713deb2056984a97adc7dfd0e6610809f \
                sha256  01336a7ea1d1ccc374201f7b81ffa94d0aecb33afc7d6903ebf9fbf33a55ada3

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

configure.args  --infodir=${prefix}/share/info \
                --mandir=${prefix}/share/man \
                --with-boost=${prefix} \
                --with-boost-regex=boost_regex-mt

test.run        yes
test.target     check

depends_lib     port:boost \
                port:ctags

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