# -*- 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               github 1.0
PortGroup               cmake  1.1

github.setup            taocpp PEGTL 2.8.3
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from     tarball
revision                0
categories              devel
license                 MIT
maintainers             {mcalhoun @MarcusCalhoun-Lopez} openmaintainer
platforms               any
description             Parsing Expression Grammar Template Library
long_description        The Parsing Expression Grammar Template Library (PEGTL) is \
                        a zero-dependency C++ header-only parser combinator library \
                        for creating parsers according to a Parsing Expression Grammar (PEG).

checksums               rmd160  bc2de0c682a76b7ddafabc2df09da40780fcbe09 \
                        sha256  370afd0fbe6d73c448a33c10fbe4a7254f92077f5a217317d0a32a9231293015 \
                        size    201542

configure.args-append   -DPEGTL_BUILD_TESTS=OFF \
                        -DPEGTL_BUILD_EXAMPLES=OFF \
                        -DPEGTL_INSTALL_CMAKE_DIR=${prefix}/lib/cmake/${name}

# project is header only
supported_archs         noarch

# even though project is header only, CMakeLists.txt requires C++11 compiler
compiler.cxx_standard   2011
