source: trunk/dports/python/py-bpython/Portfile @ 105060

Last change on this file since 105060 was 105060, checked in by aronnax@…, 7 years ago

py-bpython: remove Python 2.5 subport, add Python 3.1 subport

  • bpython now uses 'with' statements, so Python 2.5 is no longer supported.
  • added dependencies for building manpages and internationalization.
  • bpython_select now works for all subports.
  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.4 KB
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 105060 2013-04-08 17:52:28Z aronnax@macports.org $
3
4PortSystem              1.0
5PortGroup               python 1.0
6PortGroup               select 1.0
7
8name                    py-bpython
9version                 0.12
10revision                2
11platforms               darwin
12supported_archs         noarch
13maintainers             aronnax openmaintainer
14license                 MIT
15description             fancy interface to the Python interpreter
16long_description        a fancy interface to the Python interpreter for \
17                        Unix-like operating systems
18
19homepage                http://www.bpython-interpreter.org/
20master_sites            ${homepage}releases/
21distname                bpython-${version}
22checksums               rmd160  7e52c0ec1fa56f42b9660496776876eaf09e9cc5 \
23                        sha256  74a9074c5d5448e09ea9efe6b5305a4f580617d73c38f21eab5fe983312a8ec6
24
25python.versions         26 27 31 32 33
26
27if {$name != $subport} {
28    livecheck.type          none
29
30    depends_lib-append      port:py${python.version}-parsing \
31                            port:py${python.version}-pygments \
32                            port:py${python.version}-distribute
33
34    # py-babel is only available for Python 2.x
35    if {[expr ${python.branch} < 3]} { 
36        depends_build-append \
37                            port:py${python.version}-babel
38    }
39
40    depends_build-append    port:py${python.version}-sphinx
41
42    depends_run-append      port:py${python.version}-urwid \
43                            port:bpython_select
44
45    select.group            bpython
46    select.file             ${filespath}/bpython${python.version}
47   
48    post-destroot {
49        set pyetc ${destroot}${python.prefix}/etc
50        xinstall -d ${pyetc}
51        set themedir ${destroot}${python.prefix}/share/themes
52        xinstall -d ${themedir}
53
54        xinstall -W ${worksrcpath} sample-config ${pyetc}
55        xinstall -W ${worksrcpath} sample.theme light.theme \
56            ${themedir}
57    }
58
59    notes "
60To make the Python ${python.branch} version of bpython the one that is run\
61when you execute the commands without a version suffix, e.g. 'bpython', run:
62
63port select --set ${select.group} [file tail ${select.file}]
64"
65} else {
66    livecheck.type          regex
67    livecheck.url           [lindex ${master_sites} 0]
68    livecheck.regex         bpython-(\\d+(\\.\\d+)*)[quotemeta ${extract.suffix}]
69}
Note: See TracBrowser for help on using the repository browser.