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

github.setup        steenzout python-kerfi-vangasvipur 1.0.0
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball

name                py-kerfi-vangasvipur
version             1.0.0
maintainers         {gmail.com:pedro.salgado @steenzout}
platforms           {darwin any}
supported_archs     noarch
license             Apache-2
description         Python tool to manipulate OS X system_profiler output.
long_description    {*}${description}

checksums           sha256 0513135f4b13c9bb3d1297e0de02ccf77db258bc7d493b44dbe07e868f1ed42a \
                    rmd160 168a81a270feb979da9df562e78283fc581b2642 \
                    size   11652

python.versions     27

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

    patchfiles          patch-setup.py.diff

    depends_run-append  port:${python.rootname}_select
    select.group        ${python.rootname}
    select.file         ${filespath}/kv-print${python.version}

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

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

    livecheck.type      none
}
