<pre style='margin:0'>
Renee Otten (reneeotten) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/4a7253cfcec282c814f33c6cba40f6c80197eefc">https://github.com/macports/macports-ports/commit/4a7253cfcec282c814f33c6cba40f6c80197eefc</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 4a7253cfcec282c814f33c6cba40f6c80197eefc
</span>Author: Renee Otten <reneeotten@macports.org>
AuthorDate: Thu Apr 25 22:30:27 2019 -0400
<span style='display:block; white-space:pre;color:#404040;'> py-eric-ide: new port, version 19.04
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Looking at the commit history, upstream seems to intent to package the
</span><span style='display:block; white-space:pre;color:#404040;'> software on PyPI as "eric-ide"; hence the choice for the name.
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> The software has its own install.py script that requires the non-default
</span><span style='display:block; white-space:pre;color:#404040;'> setup in the Portfile for build/destroot phases and some patching to get
</span><span style='display:block; white-space:pre;color:#404040;'> the App to work.
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Closes: https://trac.macports.org/ticket/52865
</span><span style='display:block; white-space:pre;color:#404040;'> Closes: https://trac.macports.org/ticket/56636
</span><span style='display:block; white-space:pre;color:#404040;'> Closes: #3638
</span>---
python/py-eric-ide/Portfile | 98 ++++++++++++++++++++++++++
python/py-eric-ide/files/patch-install.py.diff | 39 ++++++++++
2 files changed, 137 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/python/py-eric-ide/Portfile b/python/py-eric-ide/Portfile
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..39b5c1a
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/python/py-eric-ide/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,98 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# -*- 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
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortSystem 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup python 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+name py-eric-ide
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set real_name eric6
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+version 19.04
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+categories-append devel
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+platforms darwin
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+supported_archs noarch
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+license GPL-3+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+maintainers {reneeotten @reneeotten} openmaintainer
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+description Eric is a full featured Python and Ruby editor and IDE
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+long_description ${description}, written in python. It is based on the cross \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ platform Qt gui toolkit, integrating the highly flexible \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ Scintilla editor control. It is designed to be usable as \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ everdays' quick and dirty editor as well as being usable \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ as a professional project management tool integrating many \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ advanced features Python offers the professional coder.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+homepage https://eric-ide.python-projects.org/index.html
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+master_sites sourceforge:project/eric-ide/${real_name}/stable/${version}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+distname ${real_name}-${version}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+checksums rmd160 cbb0b5dc96c9aefdaae2f029b881c9c044c8c325 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 62b34c8cf152e7342a92ef0c76efe54ae78c611bc50293fcab072a180fafb4dc \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 17160668
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+python.versions 27 37
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+if {${name} ne ${subport}} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ variant qt5 conflicts qt4 description "Use Qt5 backend" {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ PortGroup qt5 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ depends_lib-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:py${python.version}-pyqt5 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:py${python.version}-pyqt5-webengine \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:py${python.version}-qscintilla-qt5
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ build.args-append --pyqt=5
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ variant qt4 conflicts qt5 description "Use Qt4 backend" {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ PortGroup qt4 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ depends_lib-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:py${python.version}-pyqt4 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:py${python.version}-qscintilla-qt4
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ build.args-append --pyqt=4
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {![ variant_isset qt4 ]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ default_variants +qt5
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ depends_lib-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:py${python.version}-cx_Freeze \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:py${python.version}-enchant \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:py${python.version}-pylint \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:py${python.version}-pysvn \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:py${python.version}-rope
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ patchfiles patch-install.py.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ post-patch {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace "s|@@PYTHON_BIN_NAME@@|${python.bin}|g" ${worksrcpath}/install.py
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace "s|@@PYTHON_PKG_DIR@@|${python.pkgd}/${real_name}|g" ${worksrcpath}/install.py
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {[ variant_isset qt4 ]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace "s|@@PYQT_VERSION@@|--pyqt4|g" ${worksrcpath}/install.py
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ } else {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace "s|@@PYQT_VERSION@@|--pyqt5|g" ${worksrcpath}/install.py
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ build.cmd ${python.bin} install.py
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ build.args -b ${python.prefix}/bin \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -i ${destroot} \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -n ${destroot}/Applications/MacPorts \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -m ${real_name}-${python.branch}.app
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ build.target
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ destroot { }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ post-destroot {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set docdir ${prefix}/share/doc/${subport}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -d ${destroot}${docdir}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -m 0644 -W ${worksrcpath} changelog THANKS \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ LICENSE.GPL3 ${destroot}${docdir}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ livecheck.type none
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+} else {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ livecheck.regex ${real_name}-(\[0-9.\]+)${extract.suffix}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/python/py-eric-ide/files/patch-install.py.diff b/python/py-eric-ide/files/patch-install.py.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..df7d596
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/python/py-eric-ide/files/patch-install.py.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,39 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- install.py.orig 2019-04-26 22:19:54.000000000 -0400
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ install.py 2019-04-26 22:21:34.000000000 -0400
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -1191,11 +1191,13 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ os.makedirs(dirs["exe"])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ os.makedirs(dirs["icns"])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- if macPythonExe == defaultMacPythonExe:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- starter = os.path.join(dirs["exe"], "eric")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- os.symlink(macPythonExe, starter)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- else:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- starter = "python{0}".format(sys.version_info.major)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++## if macPythonExe == defaultMacPythonExe:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++## starter = os.path.join(dirs["exe"], "eric")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++## os.symlink(macPythonExe, starter)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++## else:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++## starter = "python{0}".format(sys.version_info.major)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ starter = "@@PYTHON_BIN_NAME@@"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ wname = os.path.join(dirs["exe"], "eric6")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -1224,13 +1226,15 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ pathlist_n.append(path_)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ pathLine = "PATH={0}\n".format(os.pathsep.join(pathlist_n))
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ pydir = "@@PYTHON_PKG_DIR@@"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ pyqt_ver = "@@PYQT_VERSION@@"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # create the wrapper script
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ wrapper = ('''#!/bin/sh\n'''
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ '''\n'''
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ '''{0}'''
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ '''{1}'''
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- '''exec "{2}" "{3}/{4}.py" "$@"\n'''
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- .format(pathLine, dyldLine, starter, pydir, "eric6"))
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ '''exec "{2}" "{3}/{4}.py" "{5}" "$@"\n'''
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ .format(pathLine, dyldLine, starter, pydir, "eric6", pyqt_ver))
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ copyToFile(wname, wrapper)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ os.chmod(wname, 0o755)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span></pre><pre style='margin:0'>
</pre>