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

name            py-pyesorex
version         1.0.3
categories      science
license         GPL-3+
platforms       darwin
maintainers     eso.org:usd-help
description     Python ESO Recipe Execution Tool
long_description PyEsoRex is a recipe execution tool that complements the \
                 PyCPL library. It fills the role of the existing EsoRex recipe \
                 execution tool, but extends it by facilitating the execution of \
                 recipes implemented either in C using CPL or in Python using PyCPL. \
                 PyEsoRex is meant to be a drop-in replacement of the classic EsoRex \
                 tool.
homepage        https://www.eso.org/sci/software/pycpl/
master_sites    https://ftp.eso.org/pub/dfs/pipelines/libraries/pyesorex
checksums       rmd160 0fb8d49322a847beee78d95aaaf50486ed688d9b \
                sha256 8a496663448a46b8c071c521eda845b8705acf9fce9c15d46e3514a9124ecbfa

python.versions 39 310 311 312 313
python.pep517   yes
python.pep517_backend setuptools

if {${name} ne ${subport}} {
    depends_build-append \
                    port:py${python.version}-pycpl

    depends_lib-append  \
                    port:py${python.version}-pycpl

    depends_run-append  \
                    port:${python.rootname}_select

    select.group    ${python.rootname}
    select.file     ${filespath}/py${python.version}-${python.rootname}
    notes "
To make the Python ${python.branch} version of pyesorex the one that is run\
when you execute the commands without a version suffix, e.g. 'pyesorex', run:

    sudo port select --set ${select.group} [file tail ${select.file}]
"
}

test.run        no
