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

github.setup        osicat osicat 982327905b8980ff3173344ca87282e046565732
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball
name                cl-osicat
version             20231003
revision            0

checksums           rmd160  1e690f304cf762b38ab9b05551f23259cca8599b \
                    sha256  3387036a7bd14bd9cf0637e42c9ef4d69f5980eae7668353bf2d3cfaa126f848 \
                    size    66968

categories-append   devel
maintainers         nomaintainer
license             MIT

description         Osicat is a lightweight operating system interface \
                    for Common Lisp
long_description    {*}${description}

depends_lib-append  port:cl-alexandria \
                    port:cl-cffi \
                    port:cl-rt \
                    port:cl-trivial-features

# https://github.com/osicat/osicat/issues/70
# A possibly better fix would be to link to legacysupport,
# but build system ignores passed flags.
if {${os.platform} eq "darwin" && ${os.major} < 14} {
    patchfiles-append \
                    patch-legacy.diff
}

# https://github.com/osicat/osicat/issues/69
# Must use build_arch, not configure.build_arch.
if {${build_arch} in [list i386 ppc]} {
    patchfiles-append \
                    patch-32-bit.diff
}

common_lisp.ffi     yes
