Ticket #30521: Portfile_pyxx-ipython.2

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

updated unified portfile

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
30if { $subport == "py31-ipython" || $subport == "py32-ipython" } {
31    master_sites            http://archive.ipython.org/release/${version}/py3
32    distname                ${my_name}-${version}-py3
33}
34
35checksums               md5     efc899e752a4a4a67a99575cea1719ef \
36                        sha1    e658f48502b9bac5a280d34da232303ff599e9af \
37                        rmd160  2f9cae582e8a185040b30cd77a2c24ee7699b0e2
38
39depends_lib             port:readline
40depends_run             port:ipython_select
41
42test.run                no
43use_parallel_build      yes
44
45post-destroot {
46    foreach f {ipcluster ipcontroller ipengine ipython ipython-wx ipythonx irunner pycolor} {
47        ln -s ${python.prefix}/share/man/man1/${f}.1.gz ${destroot}${prefix}/share/man/man1/${f}${python.branch}.1.gz
48    }
49}
50
51select.group            $my_name
52select.file             ${filespath}/${my_name}[string map {. ""} ${python.branch}]
53notes \
54"To make the Python ${python.branch} version of IPython the one that is run
55when you execute the commands without a version suffix, e.g. 'ipython',
56run:
57    port select --set ${select.group} [file tail ${select.file}]"
58
59variant parallel description "Support for parallel computing" {
60    depends_lib-append     port:py${python.version}-zmq
61}
62
63variant pyside conflicts pyqt4 requires parallel description "Support for the Qt console using pyside" {
64    depends_lib-append     port:py${python.version}-pyside
65}
66
67variant pyqt4 conflicts pyside requires parallel description "Support for the Qt console using pyqt4" {
68    depends_lib-append     port:py${python.version}-pyqt4
69}
70
71livecheck.type          regex
72livecheck.url           ${homepage}
73livecheck.regex         ${my_name}-(\\d+(?:\\.\\d+)*)