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

name                cl-quicklisp
categories          devel
license             permissive
github.setup        quicklisp quicklisp-bootstrap 2015-01-28 version-
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball

platforms           any
supported_archs     noarch
maintainers         @jrjsmrtn openmaintainer
description         Quicklisp is a library manager for Common Lisp
long_description    {*}${description}. It works with your existing Common Lisp \
                    implementation to download, install, and load any of \
                    over 1,500 libraries with a few simple commands.

homepage            https://www.quicklisp.org/beta/

checksums           rmd160  b0d6482491853919566b4a6dc7e86c731f949cbe \
                    sha256  be2c4bf2d3d630b82c6081d2c01563980464810552b343ef84f6bfe75003127e \
                    size    13941

use_configure       no
build               {}

destroot {
    xinstall -m 755 -d ${destroot}${prefix}/share/${name}
    xinstall -m 644 -W ${worksrcpath} \
        quicklisp.lisp \
        ${destroot}${prefix}/share/${name}

    xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
    xinstall -m 644 -W ${worksrcpath} \
        README.txt LICENSE.txt \
        ${destroot}${prefix}/share/doc/${name}
}

set bootstrap_path  "${prefix}/share/${name}/quicklisp.lisp"
set load_exp        "(load \"${bootstrap_path}\")"
set install_exp     "(quicklisp-quickstart:install)"

notes "\
To install Quicklisp in your environment, execute one of:

  \$ abcl --load '${bootstrap_path}' --eval '${install_exp}' --batch
  \$ clisp -x '${load_exp}' -x '${install_exp}'
  \$ ecl --load '${bootstrap_path}' --eval '${install_exp}' --eval '(quit)'
  \$ sbcl --load '${bootstrap_path}' --eval '${install_exp}' --quit

To load Quicklisp into a running session, use:

  (load \"~/quicklisp/setup.lisp\")

To load Quicklisp when you start Lisp, use:

  (ql:add-to-init-file)

Quicklisp will append code to your Lisp's init file that will load Quicklisp on startup."

livecheck.regex     "version-(\\d{4}-\\d{2}-\\d{2})"
