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

github.setup        ocicl ocicl 2.17.0 v
github.tarball_from archive
revision            0

categories          devel
license             MIT
maintainers         @rudolfochrist openmaintainer

description         An OCI-based ASDF system distribution and management tool for Common Lisp
long_description    ${name} is a modern alternative to quicklisp. It is modern in the sense that: \
                    \n \
                    \n- All software is packaged as OCI-compliant artifacts and distributed from mirrored OCI-compliant registries (the GitHub and Docker Hub Container Registries). \
                    \n- All software packages are securely distributed over TLS connections. \
                    \n- All connections respect HTTPS_PROXY environment settings for authenticated proxy support. \
                    \n- sigstore is used to ensure the integrity and authenticity of all software packages. \
                    \n- Software packages are project-local by default, simplifying the process of tying specific versions to your projects. \
                    \n- All software packages are built and published transparently using hosted CI infrastructure \
                    \n- LLM-generated summaries of changes between versions are available for all packages.

checksums           rmd160  29d2848070620071bc29febba9cacb8344bec06b \
                    sha256  6cc0337bd96f37e91fbac0335e77aa824e603234e862d3fcad7d345ca01b3923 \
                    size    34149545

depends_build       port:sbcl

depends_lib         port:zstd

use_configure       no

build.env           OCICL_PREFIX=${worksrcpath}/stage
build.cmd           sbcl --non-interactive --no-userinit
build.target        --load setup.lisp

destroot {
    xinstall -m 0755 ${worksrcpath}/stage/bin/ocicl ${destroot}${prefix}/bin/ocicl
}

notes-append "
After installation run 'ocicl setup' to install the ocicl-runtime library:
    $ ocicl setup
    ;; Add the following to your lisp startup file
    ;; (~/.sbclrc, ~/.eclrc, ~/.abclrc or ~/.roswell/init.lisp):

    #-ocicl
    (when (probe-file #P\"/home/green/.local/share/ocicl/ocicl-runtime.lisp\")
    (load #P\"/home/green/.local/share/ocicl/ocicl-runtime.lisp\"))
    (asdf:initialize-source-registry
     (list :source-registry (list :directory (uiop:getcwd)) :inherit-configuration))
"
