source: trunk/dports/python/py-spyder/Portfile @ 92782

Last change on this file since 92782 was 91493, checked in by eborisch@…, 5 years ago

py-spyder: Upgrade to 2.1.9; add pyNN-pep8 as dep.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 4.3 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 91493 2012-04-03 14:50:09Z pixilla@macports.org $
3
4PortSystem          1.0
5name                py-spyder
6version             2.1.9
7epoch               20111202
8
9PortGroup           python 1.0
10
11python.versions     26 27
12python.default_version 27
13
14PortGroup           qt4 1.0
15categories          python devel
16platforms           darwin
17maintainers         eborisch openmaintainer
18license             MIT
19homepage            http://packages.python.org/spyder/
20description         Spyder is the Scientific PYthon Development EnviRonment
21long_description    ${description}. \
22                    Spyder provides a powerful interactive development \
23                    environment for the Python language with advanced \
24                    editing, interactive testing, debugging and introspection \
25                    features as well as a numerical computing environment \
26                    thanks to the support of IPython (enhanced interactive \
27                    Python interpreter) and popular Python libraries such as \
28                    NumPy (linear algebra), SciPy (signal and image \
29                    processing) or matplotlib (interactive 2D/3D plotting) \
30                    development environment with advanced editing, \
31                    interactive testing, debugging and introspection features.
32
33master_sites        googlecode:spyderlib
34distname            spyder-${version}
35use_zip             yes
36supported_archs     noarch
37
38#pyNN-scipy doesn't build universal
39universal_variant   no
40
41checksums           md5     051a4540ccca49976beec93c2d1f3d32 \
42                    sha1    7624a37d8e9266243113dc42e58455d8535fddb0 \
43                    rmd160  d9850ecb6b63d17dd50856006f3c29c5582f36e7
44
45if {${subport} != ${name}} {
46    conflicts           port:py${python.version}-spyder-beta
47   
48    # Set the pylint executable name
49    set LINT_BIN_NAME   pylint-${python.branch}
50    set WINPDB_BIN_NAME winpdb-${python.branch}
51    patchfiles          patch-widgets-pylintgui.py.diff \
52                        spyderlib_plugins_editor.py.diff \
53                        spyderlib_spyder.py.diff \
54                        spyderlib_utils_programs.py.diff \
55                        spyderlib_widgets_sourcecode_codeeditor.py.diff
56
57    post-patch {
58        reinplace "s|@@WINPDB_BIN_NAME@@|${WINPDB_BIN_NAME}|g" \
59            ${worksrcpath}/spyderlib/plugins/editor.py
60        reinplace "s|@@LINT_BIN_NAME@@|${LINT_BIN_NAME}|g" \
61            ${worksrcpath}/spyderplugins/widgets/pylintgui.py
62        reinplace "s|\"assistant\"|\"Assistant\"|g" \
63            ${worksrcpath}/spyderlib/spyder.py
64        reinplace "s|\"linguist\"|\"Linguist\"|g" \
65            ${worksrcpath}/spyderlib/spyder.py
66        reinplace "s|\"designer\"|\"Designer\"|g" \
67            ${worksrcpath}/spyderlib/spyder.py
68        reinplace "s|@@PREFIX@@|${prefix}|g" \
69            ${worksrcpath}/spyderlib/spyder.py
70        reinplace "s|@@APPS_DIR@@|${applications_dir}|g" \
71            ${worksrcpath}/spyderlib/utils/programs.py
72        # Windows newlines in the file cause compile() (in 2.6) to choke
73        reinplace "s|\r||g" \
74            ${worksrcpath}/doc/conf.py
75    }
76
77    depends_lib-append  \
78        port:py${python.version}-h5py \
79        port:py${python.version}-htmldocs \
80        port:py${python.version}-ipython \
81        port:py${python.version}-lint \
82        port:py${python.version}-matplotlib \
83        port:py${python.version}-pep8 \
84        port:py${python.version}-pil \
85        port:py${python.version}-pyflakes \
86        port:py${python.version}-pyqt4 \
87        port:py${python.version}-rope \
88        port:py${python.version}-scipy \
89        port:py${python.version}-sphinx
90   
91    post-destroot {
92        if {${python.version} == ${python.default_version}} {
93          ln -s ${python.prefix}/bin/spyder ${destroot}${prefix}/bin/
94        }
95        set OPTCMD    [concat "export HOME=${destroot}/tmp/spyder &&" \
96                       "export PYTHONPATH=${destroot}${python.pkgd} &&" \
97                       "./spyder --optimize"]
98       
99        file mkdir ${destroot}/tmp/spyder
100        system "cd ${destroot}${python.prefix}/bin && ${OPTCMD}"
101        file delete -force ${destroot}/tmp/spyder
102    }
103}
104
105livecheck.type      regex
106livecheck.url       http://code.google.com/p/spyderlib/
107livecheck.regex     spyder-(\[0-9\]+\.\[0-9\]+(\.\[0-9\]+)?)
Note: See TracBrowser for help on using the repository browser.