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

perl5.branches      5.26
perl5.setup         Inline-Python 0.56
platforms           darwin
license             {Artistic-1 GPL}
maintainers         nomaintainer

description         Write inline python in perl scripts

long_description    The Inline::Python module allows you \
                    to put Python source code directly \
                    "inline" in a Perl script or module. \
                    It sets up an in-process Python interpreter, \
                    runs your code, and then examines Python's \
                    symbol table for things to bind to Perl. The \
                    process of interrogating the Python \
                    interpreter for globals only occurs the first \
                    time you run your Python code. The namespace \
                    is cached, and subsequent calls use the cached \
                    version.

checksums           rmd160  e5d490725ec1500887ec3a0b22c5e5c300c30d04 \
                    sha256  ae2c437f367160ecfd6f8d6c6fe027ea6754feaa27648971c4a74e7fe934d95f

if {${perl5.major} != ""} {
    depends_build-append \
                    port:p${perl5.major}-parse-recdescent \
                    port:p${perl5.major}-proc-processtable \
                    port:p${perl5.major}-test-deep \
                    port:p${perl5.major}-test-number-delta

    depends_lib-append \
                    port:python27 \
                    port:p${perl5.major}-inline

    configure.env-append \
                    INLINE_PYTHON_EXECUTABLE="${prefix}/bin/python2.7"
}