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

github.setup            vseloved rutils 79cb02922f025e818ef4100957abdc9f8d671e2c
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from     tarball
name                    cl-rutils
version                 20220915
revision                1

checksums               rmd160  4b7dd50c65ea944cab4f6e553fc7cc8056af3482 \
                        sha256  07b87c2cd8eb16f471008f2a9454e7b0e62754445bf1fd6b64807ea555dd6de6 \
                        size    171817

categories-append       devel
maintainers             nomaintainer
license                 MIT

description             Radical Utilities for Common Lisp

long_description        {*}${description}

patchfiles-append       fix-syntax-rutilsx-test.asd.diff

if {${name} eq ${subport}} {
    depends_lib-append  port:cl-closer-mop \
                        port:cl-named-readtables

    common_lisp.systems rutils.asd \
                        rutilsx.asd

    # to prevent dependency loop tests at dedicated subport
    test.run            no
}

subport cl-rutils-test {
    depends_lib-append  port:cl-rutils \
                        port:cl-should-test

    common_lisp.systems rutils-test.asd \
                        rutilsx-test.asd

    # See: https://github.com/vseloved/rutils/issues/69
    common_lisp.abcl    no
}
