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 151403 2016-08-15 12:47:01Z stromnov@macports.org $ |
---|
3 | |
---|
4 | PortSystem 1.0 |
---|
5 | PortGroup github 1.0 |
---|
6 | PortGroup python 1.0 |
---|
7 | PortGroup select 1.0 |
---|
8 | |
---|
9 | github.setup ipython ipython 5.1.0 |
---|
10 | name py-ipython |
---|
11 | revision 0 |
---|
12 | categories-append devel science |
---|
13 | platforms darwin |
---|
14 | license BSD |
---|
15 | supported_archs noarch |
---|
16 | |
---|
17 | python.versions 27 34 35 |
---|
18 | |
---|
19 | maintainers aronnax sean stromnov openmaintainer |
---|
20 | |
---|
21 | description An enhanced interactive Python shell. |
---|
22 | long_description ${description} |
---|
23 | |
---|
24 | distname ${python.rootname}-${version} |
---|
25 | |
---|
26 | checksums rmd160 28d0e1b878167a2ae69923be6308b89d194526dd \ |
---|
27 | sha256 06b658c1894a802de5609869088aeff5cb1136ea2674f9979e18b00a903b2697 |
---|
28 | |
---|
29 | if {${name} ne ${subport}} { |
---|
30 | set python_major [string range ${python.version} 0 end-1] |
---|
31 | |
---|
32 | depends_lib-append port:ipython_select \ |
---|
33 | port:ipython${python_major}_select \ |
---|
34 | port:py${python.version}-setuptools \ |
---|
35 | port:py${python.version}-decorator \ |
---|
36 | port:py${python.version}-pickleshare \ |
---|
37 | port:py${python.version}-simplegeneric \ |
---|
38 | port:py${python.version}-traitlets \ |
---|
39 | port:py${python.version}-pexpect \ |
---|
40 | port:py${python.version}-appnope \ |
---|
41 | port:py${python.version}-gnureadline \ |
---|
42 | port:py${python.version}-prompt_toolkit \ |
---|
43 | port:py${python.version}-pygments |
---|
44 | |
---|
45 | if {${python.version} == 27} { |
---|
46 | depends_lib-append port:py${python.version}-backports-shutil_get_terminal_size \ |
---|
47 | port:py${python.version}-pathlib2 |
---|
48 | } |
---|
49 | |
---|
50 | variant parallel description "Support for parallel computing (deprecated variant)" { |
---|
51 | notes-append " |
---|
52 | To enable support for parallel computing please install py${python.version}-ipyparallel port: |
---|
53 | |
---|
54 | sudo port install py${python.version}-ipyparallel |
---|
55 | " |
---|
56 | } |
---|
57 | |
---|
58 | variant pyqt4 conflicts pyside description "Support for the Qt console using pyqt4 (deprecated variant)" { |
---|
59 | notes-append " |
---|
60 | To enable support for the Qt console please install py${python.version}-pyqt4 and py${python.version}-qtconsole ports: |
---|
61 | |
---|
62 | sudo port install py${python.version}-pyqt4 |
---|
63 | sudo port install py${python.version}-qtconsole |
---|
64 | " |
---|
65 | } |
---|
66 | |
---|
67 | variant pyside conflicts pyqt4 description "Support for the Qt console using pyside (deprecated variant)" { |
---|
68 | notes-append " |
---|
69 | To enable support for the Qt console please install py${python.version}-pyside and py${python.version}-qtconsole ports: |
---|
70 | |
---|
71 | sudo port install py${python.version}-pyside |
---|
72 | sudo port install py${python.version}-qtconsole |
---|
73 | " |
---|
74 | } |
---|
75 | |
---|
76 | variant terminal description "Support for the terminal emulation (deprecated variant)" {} |
---|
77 | |
---|
78 | variant notebook description "Support for IPython HTML notebook (deprecated variant)" { |
---|
79 | notes-append " |
---|
80 | To enable support for the notebook please install py${python.version}-notebook port: |
---|
81 | |
---|
82 | sudo port install py${python.version}-notebook |
---|
83 | " |
---|
84 | } |
---|
85 | |
---|
86 | select.entries [list ipython py${python.version}-ipython py${python.version}-ipython] \ |
---|
87 | [list ipython${python_major} py${python.version}-ipython py${python.version}-ipython] |
---|
88 | |
---|
89 | notes-append " |
---|
90 | Please note that since version 4.0 IPython was refactored and splitted across several packages under new project named Jupyter. |
---|
91 | |
---|
92 | To make this the default IPython or IPython${python_major} (i.e., the version run by\ |
---|
93 | the 'ipython' or 'ipython${python_major}' commands), run one or both of: |
---|
94 | |
---|
95 | sudo port select --set ipython py${python.version}-ipython |
---|
96 | sudo port select --set ipython${python_major} py${python.version}-ipython |
---|
97 | " |
---|
98 | |
---|
99 | livecheck.type none |
---|
100 | } else { |
---|
101 | livecheck.regex archive/[join ${github.tag_prefix} ""](\[^"rba\]+)${extract.suffix} |
---|
102 | } |
---|