# -*- 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
# $Id: Portfile 127977 2014-11-09 22:59:17Z mf2k@macports.org $

PortSystem          1.0
PortGroup           python 1.0
PortGroup           select 1.0
PortGroup           github 1.0

github.setup        steenzout python-kerfi-vangasvipur 1.0.0

set real_name       kerfi-vangasvipur
name                py-kerfi-vangasvipur
version             1.0.0
maintainers         gmail.com:pedro.salgado
platforms           darwin
supported_archs     noarch
license             Apache-2
description         python tool to manipulate OS X system_profiler output.
long_description    Python tool to manipulate OS X system_profiler output.
homepage            https://www.github.com/steenzout/python-${real_name}/

checksums           sha256 0513135f4b13c9bb3d1297e0de02ccf77db258bc7d493b44dbe07e868f1ed42a \
                    rmd160 168a81a270feb979da9df562e78283fc581b2642

python.versions     27

if {${name} ne ${subport}} {
    depends_lib-append port:${real_name}_select \
                       port:py${python.version}-pip
    livecheck.type     none
    select.group       ${real_name}
    select.file        ${filespath}/kv-print${python.version}
    notes "
To make the Python ${python.branch} version of ${real_name} 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}]
"
}
