Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
104 lines (83 sloc) 3.7 KB
# -*- 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.7
revision 0
# 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 fbde2f4fa8acfed4c0a32b218b58c3dde7c8fb06 \
sha256 94cdd4d2da7d18590c6db96b6eb3a0fda03cc6a87ec74a809ccfa6986230b030 \
size 17205093
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.platform} eq "darwin" && ${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}
}
You can’t perform that action at this time.