# -*- 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 104451 2013-03-25 20:10:37Z sean@macports.org $

PortSystem          1.0
PortGroup           python 1.0
PortGroup           select 1.0
PortGroup           bitbucket 1.0

bitbucket.setup     eliben pss 1.38 v
name                py-pss

categories-append   devel
platforms           darwin
license             public-domain
supported_archs     noarch
maintainers         sean openmaintainer

description         pss is a tool for grepping through source code

long_description    ${description}

checksums           rmd160  217ed66cfd4920fdce9251d2d2eba395d4edacda \
                    sha256  89e496cdfc1dffc7bb2bcde2de8ae7fd921dcbc557f30ca8d1087e7068fb1937

python.versions     26 27 31 32 33

if {${name} != ${subport}} {

    depends_run         port:py-pss_select

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

    livecheck.type  none

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

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