[MacPorts] #56636: Eric4 is obsolete. Update to Eric6

MacPorts noreply at macports.org
Fri Jun 8 22:47:10 UTC 2018


#56636: Eric4 is obsolete. Update to Eric6
---------------------------+--------------------
 Reporter:  josephsacco    |      Owner:  (none)
     Type:  update         |     Status:  new
 Priority:  Normal         |  Milestone:
Component:  ports          |    Version:  2.5.2
 Keywords:  Eric6, python  |       Port:  eric4
---------------------------+--------------------
 Version 4 of the Eric IDE is obsolete.  The current version is Eric6,
 release 18.06. I have made an attempt at creating a Portfile to build
 eric6 at 18.06 using python27 and qt5 [see attached Portfile].  Someone else
 who actually understands Portfiles in depth could use the attached
 Portfile as a starting point and generalize it to support python3.x and
 qt4.

 The author of Eric6,  Detlev Offenbach, has made the install.py script
 "smart". A number options have been added as well as an awareness of the
 python environment you choose to use. Run the script with a given version
 of python and the "-h" flag  and it will tell you where it is planning to
 put things.   For example:

 {{{
 cavandish:eric6-18.06 jsacco$ /opt/local/bin/python2.7 install.py -h

 Usage:
     install.py [-chxyz] [-a dir] [-b dir] [-d dir] [-f file] [-i dir] [-m
 name] [-p python] [--pyqt=version]
 where:
     -h, --help display this help message
     -a dir     where the API files will be installed
                (default: /opt/local/libexec/qt5/qsci/api)
     --noapis   don't install API files
     -b dir     where the binaries will be installed
                (default: /Users/jsacco/bin)
     -d dir     where eric6 python files will be installed
                (default:
 /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
 /site-packages)
     -f file    configuration file naming the various installation paths
     -i dir     temporary install prefix
                (default: None)
     -m name    name of the Mac app bundle
                (default: eric6.app)
     -n path    path of the directory the Mac app bundle will
                be created in
                (default: /Applications)
     -p python  path of the python executable
                (default:
 /opt/local/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python)
     -c         don't cleanup old installation first
     -x         don't perform dependency checks (use on your own risk)
     -y         add the Python variant to the executable names
     -z         don't compile the installed python files
     --pyqt=version version of PyQt to be used (one of 4 or 5)
                    (default: 5)

 The file given to the -f option must be valid Python code defining a
 dictionary called 'cfg' with the keys 'ericDir', 'ericPixDir',
 'ericIconDir',
 'ericDTDDir', 'ericCSSDir', 'ericStylesDir', 'ericDocDir',
 'ericExamplesDir',
 'ericTranslationsDir', 'ericTemplatesDir', 'ericCodeTemplatesDir',
 'ericOthersDir','bindir', 'mdir' and 'apidir.
 These define the directories for the installation of the various parts of
 eric6.
 }}}

 The Portfile I created,  used the '-b', '-i', '-n' flags along with
 --pyqt:

 {{{
 destroot {
     system -W ${worksrcpath} "${prefix}/bin/python2.7 install.py -b
 '${prefix}/bin' -i '${destroot}' -n '${destroot}/Applications/MacPorts'
 --pyqt=5"
 }
 }}}

 The '--pyqt' flag is not necessary when using the default, qt5.  I left it
 in because, I also  built a version of Eric6 using qt4.

 I am thinking that adding the '-y' flag to label python variants would
 also be a good idea.

 I am not sure that all of the dependencies that I 'borrowed' from the
 Eric4 Portfile are required.  From the included 'README.rst':

 {{{
 eric6 may be used with any combination of Python 3 or 2, Qt5 or Qt4 and
 PyQt5 or PyQt4. If the required packages (Qt5/4, QScintilla2, sip and
 PyQt5/4)
 are not installed, please get them and install them in the following order
 (order is important).

 1. Install Qt5 (from The Qt Company)

 2. Build and install QScintilla2 (from Riverbank Computing)

 3. Build and install sip (from Riverbank Computing)

 4. Build and install PyQt5 (from Riverbank Computing)

 5. Build and install QScintilla2 Python bindings
    (part of the QScintilla2 package)

 6. Install eric6

 If you want to use the interfaces to other supported software packages,
 you may
 install them in any order and at any time.

 Please note, that the QScintilla2 Python bindings have to be rebuild, if
 the PyQt5 package gets updated. If this step is omitted, a bunch of
 strange
 errors will occur.
 }}}

 -Joseph

-- 
Ticket URL: <https://trac.macports.org/ticket/56636>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list