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 | |
---|
5 | PortSystem 1.0 |
---|
6 | PortGroup python 1.0 |
---|
7 | PortGroup select 1.0 |
---|
8 | |
---|
9 | name py-ipython |
---|
10 | set my_name ipython |
---|
11 | version 0.11 |
---|
12 | categories python |
---|
13 | platforms darwin |
---|
14 | maintainers akitada openmaintainer |
---|
15 | supported_archs noarch |
---|
16 | |
---|
17 | python.versions 26 27 31 32 |
---|
18 | |
---|
19 | description An enhanced Interactive Python shell |
---|
20 | long_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 | |
---|
26 | homepage http://ipython.org |
---|
27 | master_sites http://archive.ipython.org/release/${version} |
---|
28 | distname ${my_name}-${version} |
---|
29 | |
---|
30 | checksums md5 efc899e752a4a4a67a99575cea1719ef \ |
---|
31 | sha1 e658f48502b9bac5a280d34da232303ff599e9af \ |
---|
32 | rmd160 2f9cae582e8a185040b30cd77a2c24ee7699b0e2 |
---|
33 | |
---|
34 | if { $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 | |
---|
43 | depends_lib port:readline |
---|
44 | depends_run port:ipython_select |
---|
45 | |
---|
46 | test.run no |
---|
47 | use_parallel_build yes |
---|
48 | |
---|
49 | post-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 | |
---|
55 | select.group $my_name |
---|
56 | select.file ${filespath}/${my_name}[string map {. ""} ${python.branch}] |
---|
57 | notes \ |
---|
58 | "To make the Python ${python.branch} version of IPython the one that is run |
---|
59 | when you execute the commands without a version suffix, e.g. 'ipython', |
---|
60 | run: |
---|
61 | port select --set ${select.group} [file tail ${select.file}]" |
---|
62 | |
---|
63 | variant parallel description "Support for parallel computing" { |
---|
64 | depends_lib-append port:py${python.version}-zmq |
---|
65 | } |
---|
66 | |
---|
67 | variant pyside conflicts pyqt4 requires parallel description "Support for the Qt console using pyside" { |
---|
68 | depends_lib-append port:py${python.version}-pyside |
---|
69 | } |
---|
70 | |
---|
71 | variant pyqt4 conflicts pyside requires parallel description "Support for the Qt console using pyqt4" { |
---|
72 | depends_lib-append port:py${python.version}-pyqt4 |
---|
73 | } |
---|
74 | |
---|
75 | livecheck.type regex |
---|
76 | livecheck.url ${homepage} |
---|
77 | livecheck.regex ${my_name}-(\\d+(?:\\.\\d+)*) |
---|