Ticket #56636: Portfile.2

File Portfile.2, 3.2 KB (added by mf2k (Frank Schima), 6 years ago)
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             18.09
11categories-append   devel
12platforms           darwin
13license             GPL-3
14maintainers         nomaintainer
15
16python.versions     27 36 37
17
18description         Eric is a full featured Python and Ruby editor and IDE, written in python
19long_description \
20    Eric is a full featured Python and Ruby editor and IDE, written in python. \
21    It is based on the cross platform Qt gui toolkit, integrating the highly  \
22    flexible Scintilla editor control. It is designed to be usable as a \
23    quick and dirty editor as well as being usable as a professional project \
24    management tool integrating many advanced features Python offers the \
25    professional coder.
26
27homepage            http://eric-ide.python-projects.org/index.html
28master_sites        https://sourceforge.net/projects/eric-ide/files/latest/download
29
30distname            ${real_name}-${version}
31
32universal_variant   no
33
34checksums           rmd160  d5fa5684118d028209b9793c6eeefac4fbc1049d \
35                    sha256  53ab26dc2801c9865635099d73a41a5e5e7bf8b444ee55a74411dc6c478c176f \
36                    size    16764022
37
38if {${name} ne ${subport}} {
39    depends_lib-append \
40                    port:py${python.version}-cx_Freeze \
41                    port:py${python.version}-enchant \
42                    port:py${python.version}-pylint \
43                    port:py${python.version}-pysvn \
44                    port:py${python.version}-rope
45
46    if { ${os.major} < 10 } {
47        default_variants    +pyqt4
48    }
49
50    variant pyqt5 conflicts pyqt4 description "Qt 5 backend using PyQt5" {
51        PortGroup                   qt5 1.0
52
53        require_active_variants     py${python.version}-pyqt5 webengine
54
55        depends_lib-append          port:py${python.version}-pyqt5 \
56                                    port:py${python.version}-qscintilla-qt5
57    }
58    variant pyqt4 conflicts pyqt5 description "Qt 4 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"