# -*- 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           legacysupport 1.1
PortGroup           makefile 1.0

github.setup        raforg rawhide 3.3 v
revision            0

description         (rh) find files using pretty C expressions
long_description    {*}${description} \
                    \n\nRawhide (rh) lets you search for files on the command line using \
                    expressions and user-defined functions in a mini-language inspired by C. \
                    It's like find(1), but more fun to use. Search criteria can be very \
                    readable and self-explanatory and/or very concise and typeable, and you can \
                    create your own lexicon of search terms. The output can include lots of \
                    detail, like ls(1).
homepage            https://raf.org/rawhide/
license             GPL-3+
categories          sysutils
depends_build       port:pkgconfig
depends_lib         port:pcre2 port:libmagic
maintainers         {raf.org:raf @macportsraf} openmaintainer

github.tarball_from releases
checksums           rmd160  ac7eb76c7700f284ec8f6b1d4aab0fd6638826f7 \
                    sha256  a51a1360ce4763838b29a548a8e49dcf47a93a922bf1df05c8b7d50ecb9ab09d \
                    size    290603

# Note: Not a GNU autoconf configure script
use_configure       yes
configure.args      --prefix="${prefix}" --etcdir="${prefix}"/etc --enable-mangz
build.target        rh
# Need openat, fdopendir, fstatat, faccessat, unlinkat, and readlinkat.
# POSIX 2008, but they didn't make it into macOS until 2014 (macOS-10.10).
legacysupport.newest_darwin_requires_legacy 13

test.run            yes
test.args           quiet=1

livecheck.type      regex
livecheck.url       ${homepage}download/
livecheck.regex     ${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}

