# -*- 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$

PortSystem              1.0
PortGroup               python26 1.0

name                    py26-bpython
version                 0.9.7.1
platforms               darwin
categories              python 
maintainers             jameskyle
description             fancy interface to the Python interpreter
long_description        a fancy interface to the Python interpreter for \
                        Unix-like operating systems

homepage                http://www.bpython-interpreter.org/
master_sites            ${homepage}/releases/
distname                bpython-${version}

checksums           md5     f32ce6aa8ae6af8d2cf65e13f58859d4 \
                    sha1    4ab3b8c06e3ab0bd30fc20f52cd97c1687731699 \
                    rmd160  4e5f3e1603957bdd0984024d0abb0e3e59f33aa8
depends_lib-append      port:py26-parsing \
                        port:py26-pygments \
                        port:py26-distribute

post-destroot {
    set sharedoc ${destroot}${prefix}/share/bpython2.6
    xinstall -d ${sharedoc}
    xinstall ${worksrcpath}/sample-config ${sharedoc}
    xinstall ${worksrcpath}/sample.theme ${sharedoc}
    xinstall ${worksrcpath}/light.theme ${sharedoc}
    
    set pyman ${python.prefix}/share/man/
    set manroot ${destroot}${prefix}/share/man/
    
    xinstall -d ${manroot}/man5
    xinstall -d ${manroot}/man1
    ln -s ${pyman}man5/bpython-config.5 ${manroot}/man5/
    ln -s ${pyman}/man1/bpython.1 ${manroot}/man1/
}