# $Id: Portfile 78591 2011-05-13 16:57:49Z jmr@macports.org $

PortSystem 1.0
PortGroup select 1.0

name                    python_select
version                 0.3
revision                1
categories              sysutils
platforms               darwin
license                 BSD
maintainers             raimue
supported_archs         noarch
description             common files for selecting default python version
long_description        This port installs files that allow 'port select' to \
                        be used to create links to the preferred default \
                        version of python.

homepage                http://www.macports.org/

distfiles

use_configure           no
build                   {}
# install all files
destroot {
    select::install python ${filespath}/base
    select::install python ${filespath}/none
}

platform darwin 8 {
    post-destroot {
        select::install python ${filespath}/python23-apple
    }
}

platform darwin 9 {
    post-destroot {
        select::install python ${filespath}/python25-apple
    }
}

platform darwin 10 {
    post-destroot {
        select::install python ${filespath}/python25-apple
        select::install python ${filespath}/python26-apple
    }
}

platform darwin 11 {
    post-destroot {
        select::install python ${filespath}/python25-apple
        select::install python ${filespath}/python26-apple
        select::install python ${filespath}/python27-apple
    }
}

livecheck.type     none

# Documentation for python ports:
#   PortGroup select 1.0
#   select.group            python
#   select.file             ${filespath}/python[string map {. {}} ${branch}]
