New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Changeset 82247


Ignore:
Timestamp:
08/11/11 10:25:58 (4 years ago)
Author:
eborisch@…
Message:

py-spyder: New unified spyder port. Currently only 25 and 27 versions enabled; waiting for maintainer action on py26-spyder.

Location:
trunk/dports/python/py-spyder
Files:
2 edited
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/dports/python/py-spyder/Files/patch-widgets-pylintgui.py.diff

    r82219 r82247  
    66  
    77-PYLINT_PATH = programs.get_nt_program_name('pylint') 
    8 +PYLINT_PATH = programs.get_nt_program_name('pylint-2.7') 
     8+PYLINT_PATH = programs.get_nt_program_name('@@LINT_BIN_NAME@@') 
    99  
    1010 def is_pylint_installed(): 
  • trunk/dports/python/py-spyder/Portfile

    r82219 r82247  
    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 
     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 
    22# $Id$ 
    33 
    44PortSystem          1.0 
    5 PortGroup           python27 1.0 
     5name                py-spyder 
     6version             2.0.12 
     7revision            2 
     8 
     9PortGroup           python 1.0 
     10 
     11#Waiting for py26-spyder maintainer to either take over or abandon 
     12#python.versions    25 26 27 
     13python.versions     25 27 
     14python.default_version 27 
     15 
    616PortGroup           qt4 1.0 
    7  
    8 name                py27-spyder 
    9 version             2.0.12 
    10 revision            1 
    1117categories          python devel 
    1218platforms           darwin 
     
    2632use_zip             yes 
    2733 
    28 depends_lib-append  port:py27-pyqt4 \ 
    29                     port:py27-lint \ 
    30                     port:py27-numpy \ 
    31                     port:py27-scipy \ 
    32                     port:py27-matplotlib \ 
    33                     port:py27-sphinx 
     34#pyNN-pyqt4 doesn't want to build universal 
     35universal_variant   no  
    3436 
    3537checksums           md5     035852cfc6109541d72003111cf31bb3 \ 
    3638                    sha1    a592caf81f4c1f72d637a5269f5c60f8f43e57ee 
    3739 
    38 patchfiles          patch-widgets-pylintgui.py.diff 
     40if {${subport} != ${name}} { 
     41    # Set the pylint executable name 
     42    set LINT_BIN_NAME   pylint-${python.branch} 
     43    patchfiles          patch-widgets-pylintgui.py.diff 
    3944 
    40 post-destroot { 
    41   ln -s ${python.prefix}/bin/spyder ${destroot}${prefix}/bin/ 
     45    post-patch { 
     46        reinplace "s|@@LINT_BIN_NAME@@|${LINT_BIN_NAME}|g" \ 
     47            ${worksrcpath}/spyderplugins/widgets/pylintgui.py 
     48    } 
     49 
     50    depends_lib-append  port:py${python.version}-pyqt4 \ 
     51                        port:py${python.version}-lint \ 
     52                        port:py${python.version}-scipy \ 
     53                        port:py${python.version}-matplotlib \ 
     54                        port:py${python.version}-sphinx \ 
     55                        port:py${python.version}-pyflakes \ 
     56                        port:py${python.version}-ipython \ 
     57                        port:py${python.version}-rope 
     58 
     59    if {${python.version} == ${python.default_version}} { 
     60        post-destroot { 
     61          ln -s ${python.prefix}/bin/spyder ${destroot}${prefix}/bin/ 
     62        } 
     63    } 
    4264} 
    4365 
    4466livecheck.type      regex 
    4567livecheck.url       http://code.google.com/p/spyderlib/ 
    46 livecheck.regex     spyder-(0\.\[0-9\]+\.\[0-9\]+) 
     68livecheck.regex     spyder-(\[0-9\]+\.\[0-9\]+(\.\[0-9\]+)?) 
Note: See TracChangeset for help on using the changeset viewer.