Ticket #56636: Portfile_19.02.1

File Portfile_19.02.1, 3.2 KB (added by josephsacco, 6 years ago)

Portfile for version 19.02.1

Line 
1# -*- 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
2
3PortSystem      1.0
4PortGroup       python 1.0
5PortGroup       active_variants 1.1
6PortGroup       select 1.0
7
8name            py-eric6
9set real_name   eric6
10version         19.02.1
11categories      devel
12platforms       darwin
13maintainers     nomaintainer
14license         GPL-3
15
16python.versions     27 36 37
17
18description     Eric is a full featured Python and Ruby editor and IDE, written in python
19
20long_description \
21    Eric is a full featured Python and Ruby editor and IDE, written in python. \
22    It is based on the cross platform Qt gui toolkit, integrating the highly  \
23    flexible Scintilla editor control. It is designed to be usable as everdays' \
24    quick and dirty editor as well as being usable as a professional project \
25    management tool integrating many advanced features Python offers the \
26    professional coder.
27
28homepage        http://eric-ide.python-projects.org/index.html
29master_sites    https://sourceforge.net/projects/eric-ide/files/latest/download
30distfiles       eric-${version}.tar.gz
31distname        ${real_name}-${version}
32
33universal_variant   no
34
35checksums           rmd160  8e69d9ed2deb24deeb13728de9edc0bf81a9a41f \
36                    sha256  c0291a6307e479ff2ad6dacfa15688302e8bcccf8b0a5dfa981aa2bde538e390 \
37                    size    16889271
38
39if {${name} ne ${subport}} {
40    depends_lib     port:python${python.version} \
41                    port:py${python.version}-pysvn \
42                    port:py${python.version}-rope \
43                    port:py${python.version}-pylint \
44                    port:py${python.version}-cx_Freeze \
45                    port:py${python.version}-enchant
46
47    if { ${os.major} < 10 } {
48        default_variants    +pyqt4
49    }
50
51    variant pyqt5 conflicts pyqt4 description "Qt backend using PyQt5" {
52            PortGroup                  qt5 1.0
53
54            depends_lib-append         port:py${python.version}-pyqt5 \
55                                       port:py${python.version}-qscintilla-qt5
56            require_active_variants    py${python.version}-pyqt5 webengine
57    }
58    variant pyqt4 conflicts pyqt5 description "Qt backend using PyQt4" {
59        PortGroup                  qt4 1.0
60
61        depends_lib-append         port:py${python.version}-pyqt4 \
62                                   port:py${python.version}-qscintilla-qt4
63    }
64
65    if {![ variant_isset pyqt4 ]} {
66        default_variants    +pyqt5
67    }
68
69    build {
70        # Building and installing are synonymous
71    }
72
73    destroot {
74        if {![ variant_isset pyqt4 ]} {
75            system -W ${worksrcpath} "${python.bin} install.py -b '${prefix}/bin' -i '${destroot}' -n '${destroot}/Applications/MacPorts'"
76        } else {
77            system -W ${worksrcpath} "${python.bin} install.py -b '${prefix}/bin' -i '${destroot}' -n '${destroot}/Applications/MacPorts' --pyqt=4"
78        }
79
80    }
81    post-destroot {
82        # fix path in eric6.app
83        reinplace "s|${destroot}||g" ${destroot}/Applications/MacPorts/eric6.app/Contents/MacOS/eric6
84    }
85}
86
87livecheck.type  regex
88livecheck.url   http://eric-ide.python-projects.org/eric-news.html
89livecheck.regex "eric (\\d+\\.\\d+) has been released"