# -*- 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 65908 2010-04-02 22:28:17Z jmr@macports.org $

PortSystem              1.0
PortGroup               python26 1.0

name                    py26-bpython
version                 0.9.5.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     8c1e0da30c76b670e5d65fc2a17daa00 \
                        sha1    14453ae591a289bca6b5a26ed79fa58df1928fe6 \
                        rmd160  6f3d8e475ebe744803fa4e437c227b249618c597 

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/
}                        
