# -*- 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        edicl cl-unicode 0.1.6 v
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball
revision            1

checksums           rmd160  9ef3cff28569de8b0801f8c0bc2e5cfb9303d5a0 \
                    sha256  58935b7117eb9e4591eb55a64dc6a3a95e0dbcf0bb340fc5b95c28a6cf14e3b1 \
                    size    614362

categories-append   devel
maintainers         nomaintainer
license             BSD

homepage            https://edicl.github.io/cl-unicode/

description         Portable Unicode library for Common Lisp

long_description    {*}${description}

depends_lib-append  port:cl-flexi-streams \
                    port:cl-ppcre

post-destroot {
    # Some times this files aren't included into into archive, let fail when it
    # happened to prevent making broken shipment.
    foreach f {lists.lisp hash-tables.lisp methods.lisp} {
        if {![file exists ${destroot}/${common_lisp.prefix}/source/cl-unicode/$f]} {
            ui_error "${name} should produce ${f}."
            return -code error "missing ${f}"
        }
    }
}
