source: trunk/dports/python/py-ipython/Portfile

Last change on this file was 151403, checked in by stromnov@…, 15 months ago

py-ipython: update to version 5.1.0

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.9 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 151403 2016-08-15 12:47:01Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           github 1.0
6PortGroup           python 1.0
7PortGroup           select 1.0
8
9github.setup        ipython ipython 5.1.0
10name                py-ipython
11revision            0
12categories-append   devel science
13platforms           darwin
14license             BSD
15supported_archs     noarch
16
17python.versions     27 34 35
18
19maintainers         aronnax sean stromnov openmaintainer
20
21description         An enhanced interactive Python shell.
22long_description    ${description}
23
24distname            ${python.rootname}-${version}
25
26checksums           rmd160  28d0e1b878167a2ae69923be6308b89d194526dd \
27                    sha256  06b658c1894a802de5609869088aeff5cb1136ea2674f9979e18b00a903b2697
28
29if {${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 "
52To 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 "
60To 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 "
69To 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 "
80To 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 "
90Please note that since version 4.0 IPython was refactored and splitted across several packages under new project named Jupyter.
91
92To make this the default IPython or IPython${python_major} (i.e., the version run by\
93the '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}
Note: See TracBrowser for help on using the repository browser.