# -*- 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                reflex
version             2.5.4-20241231
revision            0
checksums           rmd160  f42549480efa16b8f8009293c6991984a6505718 \
                    sha256  06a8c57fb666d74c8450e6aa2e471835a0ca2995b3621fb64f9cc4ce9daad6b6 \
                    size    483545

set version_date    [lindex [split ${version} -] 1]
categories          devel
maintainers         {ryandesign @ryandesign} openmaintainer
# US Department of Energy is listed as having rights in the work, so UC's
# rescinding of the advertising clause may not apply to all portions.
license             BSD-old

description         a variant of the flex fast lexical scanner

long_description    Reflex is a new implementation of flex, which is a tool \
                    for generating programs that perform pattern-matching on \
                    text.

homepage            https://invisible-island.net/reflex/
master_sites        https://invisible-island.net/archives/${name}/ \
                    https://invisible-mirror.net/archives/${name}/
distname            ${name}-${version_date}
extract.suffix      .tgz

test.run            yes
test.target         bigcheck

livecheck.type      regex
livecheck.version   ${version_date}
livecheck.url       [lindex ${master_sites} 0]
livecheck.regex     ${name}-(\[0-9.\]+)${extract.suffix}
