Ticket #30521: Portfile_pyxx-ipython.3

File Portfile_pyxx-ipython.3, 3.2 KB (added by jjstickel@…, 13 years ago)

corrections for py3x

Line 
1# -*- 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
2# $Id: Portfile 80270 2011-07-08 12:22:01Z stromnov@macports.org $
3
4
5PortSystem              1.0
6PortGroup               python 1.0
7PortGroup               select 1.0
8
9name                    py-ipython
10set my_name             ipython
11version                 0.11
12categories              python
13platforms               darwin
14maintainers             akitada openmaintainer
15supported_archs         noarch
16
17python.versions         26 27 31 32
18
19description             An enhanced Interactive Python shell
20long_description        Provide an interactive shell superior to Python's default. \
21                        Serve as an embeddable, ready to use interpreter for your own programs. \
22                        Offer a flexible framework which can be used as the base environment for \
23                        other systems with Python as the underlying language.  \
24                        Allow interactive testing of threaded graphical toolkits.
25
26homepage                http://ipython.org
27master_sites            http://archive.ipython.org/release/${version}
28distname                ${my_name}-${version}
29
30checksums               md5     efc899e752a4a4a67a99575cea1719ef \
31                        sha1    e658f48502b9bac5a280d34da232303ff599e9af \
32                        rmd160  2f9cae582e8a185040b30cd77a2c24ee7699b0e2
33
34if { $subport == "py31-ipython" || $subport == "py32-ipython" } {
35    master_sites            http://archive.ipython.org/release/${version}/py3
36    distname                ${my_name}-${version}-py3
37    worksrcdir              ${my_name}-${version}
38    checksums               md5     d4a83d38401c6c8c6768cba8a63341db \
39                            sha1    8204a5f05f97de2f0f434b7ffc751749b4407f38 \
40                            rmd160  6dd414f5e85f2d96c94974fe67c06699f123e360
41}
42
43depends_lib             port:readline
44depends_run             port:ipython_select
45
46test.run                no
47use_parallel_build      yes
48
49post-destroot {
50    foreach f {ipcluster ipcontroller ipengine ipython ipython-wx ipythonx irunner pycolor} {
51        ln -s ${python.prefix}/share/man/man1/${f}.1.gz ${destroot}${prefix}/share/man/man1/${f}${python.branch}.1.gz
52    }
53}
54
55select.group            $my_name
56select.file             ${filespath}/${my_name}[string map {. ""} ${python.branch}]
57notes \
58"To make the Python ${python.branch} version of IPython the one that is run
59when you execute the commands without a version suffix, e.g. 'ipython',
60run:
61    port select --set ${select.group} [file tail ${select.file}]"
62
63variant parallel description "Support for parallel computing" {
64    depends_lib-append     port:py${python.version}-zmq
65}
66
67variant pyside conflicts pyqt4 requires parallel description "Support for the Qt console using pyside" {
68    depends_lib-append     port:py${python.version}-pyside
69}
70
71variant pyqt4 conflicts pyside requires parallel description "Support for the Qt console using pyqt4" {
72    depends_lib-append     port:py${python.version}-pyqt4
73}
74
75livecheck.type          regex
76livecheck.url           ${homepage}
77livecheck.regex         ${my_name}-(\\d+(?:\\.\\d+)*)