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

PortSystem          1.0
PortGroup           compiler_blacklist_versions 1.0
PortGroup           cxx11 1.0
PortGroup           github 1.0

github.setup        LightboxTech liblightgrep 1.4 v
categories          devel
platforms           darwin
maintainers         nomaintainer
license             GPL-3

description         Search for regular expressions as defined in Unicode \
                    Technical Standard 18

long_description    ${description}, http://www.unicode.org/reports/tr18/

checksums           rmd160  bae8e6dd69d1fd59f9639b015e35e18a3b59717b \
                    sha256  62ad78e93c116e108b5f5ec92d0251258fa23e6559e93d37a9519bf0c890a229

homepage            http://www.lightboxtechnologies.com/lightgrep-engine/

depends_build       port:automake \
                    port:autoconf \
                    port:bison \
                    port:boost \
                    port:libtool \
                    port:pkgconfig

depends_lib         port:icu

pre-configure {
    system -W ${worksrcpath} "sh bootstrap.sh"
}

# error: non-constant-expression cannot be narrowed from type 'char' to 'bool' in initializer list [-Wc++11-narrowing]
# This was filed at https://github.com/jonstewart/liblightgrep/issues/4 in 2013 but the issue
# tracker has been deleted since then. The Xcode clang build number 600 is a guess.
compiler.blacklist-append \
                    {clang < 600} \
                    macports-clang-3.3 \
                    macports-clang-3.4