Ticket #28642: Portfile

File Portfile, 1.6 KB (added by jls@…, 14 years ago)
Line 
1# -*- 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
2# $Id: Portfile 75519 2011-01-28 16:07:25Z jameskyle@macports.org $
3
4PortSystem              1.0
5PortGroup               python27 1.0
6
7name                    py27-bpython
8version                 0.9.7.1
9platforms               darwin
10categories              python
11maintainers             jameskyle
12description             fancy interface to the Python interpreter
13long_description        a fancy interface to the Python interpreter for \
14                        Unix-like operating systems
15
16homepage                http://www.bpython-interpreter.org/
17master_sites            ${homepage}/releases/
18distname                bpython-${version}
19
20checksums           md5     f32ce6aa8ae6af8d2cf65e13f58859d4 \
21                    sha1    4ab3b8c06e3ab0bd30fc20f52cd97c1687731699 \
22                    rmd160  4e5f3e1603957bdd0984024d0abb0e3e59f33aa8
23depends_lib-append      port:py27-parsing \
24                        port:py27-pygments \
25                        port:py27-distribute
26
27post-destroot {
28    set sharedoc ${destroot}${prefix}/share/bpython2.7
29    xinstall -d ${sharedoc}
30    xinstall ${worksrcpath}/sample-config ${sharedoc}
31    xinstall ${worksrcpath}/sample.theme ${sharedoc}
32    xinstall ${worksrcpath}/light.theme ${sharedoc}
33   
34    set pyman ${python.prefix}/share/man/
35    set manroot ${destroot}${prefix}/share/man/
36   
37    xinstall -d ${manroot}/man5
38    xinstall -d ${manroot}/man1
39    ln -s ${pyman}man5/bpython-config.5 ${manroot}/man5/
40    ln -s ${pyman}/man1/bpython.1 ${manroot}/man1/
41}