# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4 PortSystem 1.0 PortGroup python 1.0 name py-eric-ide set real_name eric6 version 19.5 revision 1 # sourceforge directory name is YY.MM, with leading zero for month lassign [split ${version} .] year month set directory [format %i.%02i ${year} ${month}] categories-append devel platforms darwin supported_archs noarch license GPL-3+ maintainers {reneeotten @reneeotten} openmaintainer description Eric is a full featured Python and Ruby editor and IDE long_description ${description}, written in python. It is based on the cross \ platform Qt gui toolkit, integrating the highly flexible \ Scintilla editor control. It is designed to be usable as \ everdays' quick and dirty editor as well as being usable \ as a professional project management tool integrating many \ advanced features Python offers the professional coder. homepage https://eric-ide.python-projects.org/index.html master_sites sourceforge:project/eric-ide/${real_name}/stable/${directory} distname ${real_name}-${version} checksums rmd160 bcca62e6a9b741ba9119494050632f75c2266e33 \ sha256 d455c0d7c0143e65d2c9b42b33c7682f2580b8a69ab969f94bf15d2905ffcd57 \ size 17153593 python.versions 27 37 if {${name} ne ${subport}} { variant qt5 conflicts qt4 description "Use Qt5 backend" { PortGroup qt5 1.0 depends_lib-append \ port:py${python.version}-pyqt5 \ port:py${python.version}-pyqt5-webengine \ port:py${python.version}-qscintilla-qt5 build.args-append --pyqt=5 } variant qt4 conflicts qt5 description "Use Qt4 backend" { PortGroup qt4 1.0 depends_lib-append \ port:py${python.version}-pyqt4 \ port:py${python.version}-qscintilla-qt4 build.args-append --pyqt=4 } if {${os.major} <= 13} { default_variants +qt4 } elseif {![ variant_isset qt4 ]} { default_variants +qt5 } depends_lib-append \ port:py${python.version}-cx_Freeze \ port:py${python.version}-enchant \ port:py${python.version}-pylint \ port:py${python.version}-pysvn \ port:py${python.version}-rope patchfiles patch-install.py.diff post-patch { reinplace "s|@@PYTHON_BIN_NAME@@|${python.bin}|g" ${worksrcpath}/install.py reinplace "s|@@PYTHON_PKG_DIR@@|${python.pkgd}/${real_name}|g" ${worksrcpath}/install.py if {[ variant_isset qt4 ]} { reinplace "s|@@PYQT_VERSION@@|--pyqt4|g" ${worksrcpath}/install.py } else { reinplace "s|@@PYQT_VERSION@@|--pyqt5|g" ${worksrcpath}/install.py } } build.cmd ${python.bin} install.py build.args -b ${python.prefix}/bin \ -i ${destroot} \ -n ${destroot}${applications_dir} \ -m ${real_name}-${python.branch}.app build.target destroot { } post-destroot { set docdir ${prefix}/share/doc/${subport} xinstall -d ${destroot}${docdir} xinstall -m 0644 {*}[glob ${worksrcpath}/eric/docs/*] \ ${destroot}${docdir} } livecheck.type none } else { livecheck.regex ${real_name}-(\[0-9.\]+)${extract.suffix} }