# -*- 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.16.12 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  8e6c3157d0d496d262149d6d75b1e1942bbcceed \
                    sha256  5889ff5d2cc386b07c8320bfc4a7a949d8b25e9e21c15cea3ea121337083a49b \
                    size    34107323

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))
"
