Ticket #30521: Portfile_pyxx-ipython

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

unified portfile for pyxx-ipython

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
17description             An enhanced Interactive Python shell
18long_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
24homepage                http://ipython.org
25master_sites            http://archive.ipython.org/release/${version}
26distname                ${my_name}-${version}
27
28checksums               md5     efc899e752a4a4a67a99575cea1719ef \
29                        sha1    e658f48502b9bac5a280d34da232303ff599e9af \
30                        rmd160  2f9cae582e8a185040b30cd77a2c24ee7699b0e2
31
32python.versions     24 25 26 27
33
34depends_lib             port:readline
35depends_run             port:ipython_select
36
37test.run                no
38use_parallel_build      yes
39
40post-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
46select.group            $my_name
47select.file             ${filespath}/${my_name}[string map {. ""} ${python.branch}]
48notes \
49"To make the Python ${python.branch} version of IPython the one that is run
50when you execute the commands without a version suffix, e.g. 'ipython',
51run:
52    port select --set ${select.group} [file tail ${select.file}]"
53
54variant 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
72variant 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
90variant 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
108livecheck.type          regex
109livecheck.url           ${homepage}
110livecheck.regex         ${my_name}-(\\d+(?:\\.\\d+)*)