# -*- coding: utf-8; mode: tcl; tab-width: 4; truncate-lines: t; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
# $Id: Portfile 64750 2010-03-15 13:16:24Z nox@macports.org $

PortSystem              1.0
PortGroup               python26 1.0

name                    py26-ipython
set my_name             ipython
version                 0.10
categories              python
platforms               darwin
maintainers             akitada openmaintainer
description             An enhanced Interactive Python shell
long_description        Provide an interactive shell superior to Python's default. \
                        Serve as an embeddable, ready to use interpreter for your own programs. \
                        Offer a flexible framework which can be used as the base environment for \
                        other systems with Python as the underlying language.  \
                        Allow interactive testing of threaded graphical toolkits.

homepage                http://ipython.scipy.org/
master_sites            ${homepage}dist/
distname                ${my_name}-${version}
checksums               md5 dd10cd1b622c16c1afca2239fcc0dfdf \
                        sha1 175bbacf74d94336e3fe06e390e04ad2bfff6fd4 \
                        rmd160 819609298bb000aa01c3af6ad2717d91d46e39d8

use_parallel_build      yes

test.run                no

post-destroot {
    foreach f {ipython pycolor} {
        ln -s ${python.prefix}/share/man/man1/${f}.1.gz ${destroot}${prefix}/share/man/man1/${f}${python.branch}.1.gz
    }
}

variant scientific description "Use ScientificPython to provide physical quantities support" {
    depends_lib-append      port:py26-scientific
}

default_variants        +scientific
universal_variant       no

livecheck.type          regex
livecheck.url           ${homepage}/moin/Download
livecheck.regex         ${my_name}-(\\d+(?:\\.\\d+)*)
