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

github.setup        nyergler hieroglyph 1.0.0 hieroglyph-
revision            0
name                py-hieroglyph
categories-append   textproc devel
license             BSD
maintainers         nomaintainer
description         Sphinx slide generator
long_description \
    Generate HTML presentations from plain text sources with all the power of Sphinx.

platforms           darwin
supported_archs     noarch

checksums           rmd160  f6926523ef64c88a03daf1dd4e103d27a4e89c1f \
                    sha256  8e73d86395b6b9570e6d324a2ee66e9255baaf4cd321237a2165fcc0a35d0643 \
                    size    2112931

python.versions     27 35 36 37

if {$subport ne $name} {
    depends_lib-append \
                    port:py${python.version}-setuptools \
                    port:py${python.version}-six \
                    port:py${python.version}-sphinx

    post-destroot {
        set docdir ${prefix}/share/doc/${subport}
        xinstall -d ${destroot}${docdir}
        xinstall -m 0644 -W ${worksrcpath} README.rst NEWS.txt \
            LICENSE ${destroot}${docdir}
    }

    depends_run-append \
                    port:hieroglyph_select

    select.group    hieroglyph
    select.file     ${filespath}/py${python.version}-hieroglyph

    notes "
To make the Python ${python.branch} version of Hierogplyh the one that is run when\
you execute the commands without a version suffix, e.g. 'hierogplyh-build', run:

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

    livecheck.type  none
}
