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 | description An enhanced Interactive Python shell |
---|
18 | long_description Provide an interactive shell superior to Python's default. \ |
---|
19 | Serve as an embeddable, ready to use interpreter for your own programs. \ |
---|
20 | Offer a flexible framework which can be used as the base environment for \ |
---|
21 | other systems with Python as the underlying language. \ |
---|
22 | Allow interactive testing of threaded graphical toolkits. |
---|
23 | |
---|
24 | homepage http://ipython.org |
---|
25 | master_sites http://archive.ipython.org/release/${version} |
---|
26 | distname ${my_name}-${version} |
---|
27 | |
---|
28 | checksums md5 efc899e752a4a4a67a99575cea1719ef \ |
---|
29 | sha1 e658f48502b9bac5a280d34da232303ff599e9af \ |
---|
30 | rmd160 2f9cae582e8a185040b30cd77a2c24ee7699b0e2 |
---|
31 | |
---|
32 | python.versions 24 25 26 27 |
---|
33 | |
---|
34 | depends_lib port:readline |
---|
35 | depends_run port:ipython_select |
---|
36 | |
---|
37 | test.run no |
---|
38 | use_parallel_build yes |
---|
39 | |
---|
40 | post-destroot { |
---|
41 | foreach f {ipcluster ipcontroller ipengine ipython ipython-wx ipythonx irunner pycolor} { |
---|
42 | ln -s ${python.prefix}/share/man/man1/${f}.1.gz ${destroot}${prefix}/share/man/man1/${f}${python.branch}.1.gz |
---|
43 | } |
---|
44 | } |
---|
45 | |
---|
46 | select.group $my_name |
---|
47 | select.file ${filespath}/${my_name}[string map {. ""} ${python.branch}] |
---|
48 | notes \ |
---|
49 | "To make the Python ${python.branch} version of IPython the one that is run |
---|
50 | when you execute the commands without a version suffix, e.g. 'ipython', |
---|
51 | run: |
---|
52 | port select --set ${select.group} [file tail ${select.file}]" |
---|
53 | |
---|
54 | variant parallel description "Support for parallel computing" { |
---|
55 | subport py-ipython { |
---|
56 | depends_lib-append port:py-zmq |
---|
57 | } |
---|
58 | subport py24-ipython { |
---|
59 | depends_lib-append port:py24-zmq |
---|
60 | } |
---|
61 | subport py25-ipython { |
---|
62 | depends_lib-append port:py25-zmq |
---|
63 | } |
---|
64 | subport py26-ipython { |
---|
65 | depends_lib-append port:py26-zmq |
---|
66 | } |
---|
67 | subport py27-ipython { |
---|
68 | depends_lib-append port:py27-zmq |
---|
69 | } |
---|
70 | } |
---|
71 | |
---|
72 | variant pyside conflicts pyqt4 requires parallel description "Support for the Qt console using pyside" { |
---|
73 | subport py-ipython { |
---|
74 | depends_lib-append port:py-pyside |
---|
75 | } |
---|
76 | subport py24-ipython { |
---|
77 | depends_lib-append port:py24-pyside |
---|
78 | } |
---|
79 | subport py25-ipython { |
---|
80 | depends_lib-append port:py25-pyside |
---|
81 | } |
---|
82 | subport py26-ipython { |
---|
83 | depends_lib-append port:py26-pyside |
---|
84 | } |
---|
85 | subport py27-ipython { |
---|
86 | depends_lib-append port:py27-pyside |
---|
87 | } |
---|
88 | } |
---|
89 | |
---|
90 | variant pyqt4 conflicts pyside requires parallel description "Support for the Qt console using pyqt4" { |
---|
91 | subport py-ipython { |
---|
92 | depends_lib-append port:py-pyqt4 |
---|
93 | } |
---|
94 | subport py24-ipython { |
---|
95 | depends_lib-append port:py24-pyqt4 |
---|
96 | } |
---|
97 | subport py25-ipython { |
---|
98 | depends_lib-append port:py25-pyqt4 |
---|
99 | } |
---|
100 | subport py26-ipython { |
---|
101 | depends_lib-append port:py26-pyqt4 |
---|
102 | } |
---|
103 | subport py27-ipython { |
---|
104 | depends_lib-append port:py27-pyqt4 |
---|
105 | } |
---|
106 | } |
---|
107 | |
---|
108 | livecheck.type regex |
---|
109 | livecheck.url ${homepage} |
---|
110 | livecheck.regex ${my_name}-(\\d+(?:\\.\\d+)*) |
---|