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

name            ansifilter
version         2.21
revision        0
categories      textproc
maintainers     {evermeet.cx:tessarek @tessus} openmaintainer
license         GPL-3

description     remove ANSI codes from output
long_description \
    Ansifilter parses common ANSI codes to remove them or to convert \
    them to another colored text file format (HTML, TeX, LaTeX, RTF, \
    Pango or BBCode)

homepage        http://www.andre-simon.de/doku/ansifilter/en/ansifilter.php
master_sites    http://www.andre-simon.de/zip/
use_bzip2       yes

checksums       rmd160  b104ea02797089a935349b8b0e339d40906aabb3 \
                sha256  5ea7cfdfd0752d5a169259da005c18b9037628036fd89d8b82624bacec9c1390 \
                size    434994

use_configure   no

compiler.cxx_standard  2011

if {[string match *clang* ${configure.cxx}] && ${configure.cxx_stdlib} ne ""} {
    configure.ldflags-append -stdlib=${configure.cxx_stdlib}
}

build.args-append \
                CXX="${configure.cxx}" \
                EXTRA_CXXFLAGS="${configure.cxxflags}" \
                EXTRA_LDFLAGS="${configure.ldflags}"

destroot.args   PREFIX="${prefix}"

livecheck.regex ansifilter (\\d+(?:\\.\\d+)*)
livecheck.url   http://www.andre-simon.de/doku/ansifilter/en/changelog.php
