# -*- 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 # $Id$ PortSystem 1.0 PortGroup github 1.0 github.setup spyder-ide spyder 3.0.0 v name py-spyder-devel revision 0 # Preference on mailing list is to use small numbers for epoch. # This is already a date code, so sticking with dates. epoch 20161005 PortGroup python 1.0 python.versions 27 34 35 categories-append devel platforms darwin maintainers eborisch openmaintainer license MIT homepage http://packages.python.org/spyder/ description Spyder is the Scientific PYthon Development EnviRonment long_description ${description}. \ Spyder provides a powerful interactive development \ environment for the Python language with advanced \ editing, interactive testing, debugging and introspection \ features as well as a numerical computing environment \ thanks to the support of IPython (enhanced interactive \ Python interpreter) and popular Python libraries such as \ NumPy (linear algebra), SciPy (signal and image \ processing) or matplotlib (interactive 2D/3D plotting) \ development environment with advanced editing, \ interactive testing, debugging and introspection features. supported_archs noarch #pyNN-scipy doesn't build universal universal_variant no if {${name} ne ${subport}} { checksums \ rmd160 4d068d854ca1c97987e72591c8f523b2adc85bd1 \ sha256 779f48bfc227694388f17fdb9931938fb25c1fc1e98c0a0527a03060e555d9ad conflicts py${python.version}-spyder # Will *work* with either/both under the hood, but for dependencies, # provide variants to determine what we label depends_lib. # Set the pylint executable name set LINT_BIN_NAME pylint-${python.branch} set WINPDB_BIN_NAME winpdb-${python.branch} patchfiles patch-widgets-pylintgui.py.diff \ spyderlib_baseconfig.py.diff \ spyderlib_plugins_editor.py.diff \ spyderlib_start_app.py.diff \ spyderlib_spyder.py.diff \ spyderlib_utils_programs.py.diff post-patch { reinplace "s|@@WINPDB_BIN_NAME@@|${WINPDB_BIN_NAME}|g" \ ${worksrcpath}/spyder/plugins/editor.py reinplace "s|@@LINT_BIN_NAME@@|${LINT_BIN_NAME}|g" \ ${worksrcpath}/spyder_pylint/widgets/pylintgui.py reinplace "s|\"assistant\"|\"Assistant\"|g" \ ${worksrcpath}/spyder/app/mainwindow.py reinplace "s|\"linguist\"|\"Linguist\"|g" \ ${worksrcpath}/spyder/app/mainwindow.py reinplace "s|\"designer\"|\"Designer\"|g" \ ${worksrcpath}/spyder/app/mainwindow.py reinplace "s|@@PREFIX@@|${prefix}|g" \ ${worksrcpath}/spyder/app/mainwindow.py reinplace "s|@@APPS_DIR@@|${applications_dir}/Qt5|g" \ ${worksrcpath}/spyder/utils/programs.py } # Bare minimum depends_lib-append \ port:py${python.version}-sphinx \ port:py${python.version}-zmq \ port:py${python.version}-qtpy \ port:py${python.version}-qtawesome \ port:py${python.version}-pickleshare \ port:py${python.version}-path \ port:py${python.version}-pyqt5 depends_build-append \ port:GraphicsMagick variant tiny description { Remove all optional dependencies for quickest install. Dependencies\ are detected/enabled at runtime and may be installed separately. } conflicts small {} variant small description { Remove most optional dependencies for quicker install. Dependencies\ are detected/enabled at runtime and may be installed separately. } conflicts tiny {} variant no_anti_alias description {Use non-anti-aliased fonts in editor.} { patchfiles-append no_AA.diff } # These add very little to the install time if {![ variant_isset tiny ]} { depends_lib-append \ port:py${python.version}-pylint \ path:${python.pkgd}/pep8:py${python.version}-pep8 \ port:py${python.version}-pyflakes \ port:py${python.version}-rope \ port:py${python.version}-psutil \ port:py${python.version}-jedi } # These add substantially to the install time if {![ variant_isset small ] && ![ variant_isset tiny ] } { depends_lib-append \ path:${python.pkgd}/h5py/__init__.py:py${python.version}-h5py \ port:py${python.version}-qtconsole \ port:py${python.version}-matplotlib \ port:py${python.version}-scipy \ port:py${python.version}-nbconvert \ port:py${python.version}-pandas \ port:py${python.version}-sympy } variant docs description {Include python and Qt offline documentation.} { depends_lib-append port:qt5-docs depends_lib-append port:py${python.version}-htmldocs } variant pil description { Support image objects in editor through PIL or Pillow (many dependencies.) } { depends_lib-append \ path:${python.pkgd}/PIL:py${python.version}-Pillow } post-extract { fs-traverse f ${worksrcpath} { touch $f } } post-destroot { if {${python.version} == ${python.default_version}} { ln -s ${python.prefix}/bin/spyder ${destroot}${prefix}/bin/ } system -W ${destroot}${prefix} \ "find . -name *.png -print0 | xargs -0 gm mogrify -strip" delete \ ${destroot}${prefix}/bin/spyder_win_post_install.py-${python.branch} delete ${destroot}${python.prefix}/bin/spyder_win_post_install.py file mkdir ${destroot}${prefix}/share/doc/${subport} copy ${worksrcpath}/LICENSE \ ${destroot}${prefix}/share/doc/${subport} } if {${python.version} == ${python.default_version}} { set EXENAME "'spyder' " } else { set EXENAME "'spyder-${python.branch}'" } notes \ " ############################################################## ### Spyder is launched from the terminal with ${EXENAME} ### ##############################################################" livecheck.type none }