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

name                py-jupyterlab_launcher
version             0.13.1
revision            0
categories-append   devel
platforms           darwin
license             BSD
supported_archs     noarch

python.versions     27 35 36 37

maintainers         {stromnov @stromnov} openmaintainer

description         Launch an application built using JupyterLab.
long_description    ${description}

homepage            https://jupyter.org/

if {${name} ne ${subport}} {

    if {${python.version} < 36} {
        version             0.11.2
        revision            0
        checksums           rmd160  1d6bb6fdabd30fd77ae4dafb154c357e519b262e \
                            sha256  236a647f4c3f8417413643a918a893a5f662fb5d2fdccce2fd101e3cca2e7fd1 \
                            size    19106
        depends_build-append \
                            port:py${python.version}-setuptools
        depends_lib-append  port:py${python.version}-jsonschema \
                            port:py${python.version}-notebook
    } else {
        distfiles
        depends_lib
        known_fail          yes
        pre-fetch {
            ui_error "Please do not install this port since it has been replaced by 'py-jupyterlab_server'."
            return -code error
        }
        replaced_by         py${python.version}-jupyterlab_server
    }
}

livecheck.type      none
