Ticket #52865: Portfile.draft

File Portfile.draft, 3.2 KB (added by iEFdev, 8 years ago)

Draft

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# $Id: Portfile 114303 2013-12-04 19:18:35Z ryandesign@macports.org $
3
4PortSystem      1.0
5
6name            eric6
7version         16.11
8categories      editors devel
9platforms       darwin
10maintainers     nomaintainer
11license         GPL-3
12
13description     Eric is a full featured Python and Ruby editor and IDE, written in python
14
15long_description \
16    Eric is a full featured Python and Ruby editor and IDE, written in python. \
17    It is based on the cross platform Qt gui toolkit, integrating the highly  \
18    flexible Scintilla editor control. It is designed to be usable as everdays' \
19    quick and dirty editor as well as being usable as a professional project \
20    management tool integrating many advanced features Python offers the \
21    professional coder.\n\nCurrent stable version is ${name} based on PyQt5/4 \
22    (with Qt5/4) and Python 3 or Python 2.\n
23
24homepage        http://eric-ide.python-projects.org/index.html
25master_sites    sourceforge:projects/eric-ide/files/${name}/stable/${version}/
26
27checksums       rmd160  59b61f34d93569b1736ebad6f2c86598a3b0e1e6 \
28                sha256  68e6e2a3295f190d62cb006e30851505bcbeacbd8623e09a624730683a709c49
29
30## Can use either py*-pyqt4 or py*-pyqt4-devel.
31#depends_lib     port:python27 \
32#                path:share/py27-sip/PyQt4:py27-pyqt4 \
33#                port:py27-qscintilla \
34#                port:py27-pysvn \
35#                port:py27-rope \
36#                port:py27-pylint \
37#                port:py27-cx_Freeze \
38#                port:py27-enchant
39
40patchfiles      patch-install.py.diff
41
42post-patch {
43    reinplace "s|@APPLICATIONS_DIR@|${destroot}${applications_dir}|g" ${worksrcpath}/install.py
44}
45
46# add conflict here to?
47variant python27 conflicts python33 python34 python35 description {Build ${name} with: python27} {
48    depends_lib         port:python27
49
50    configure.python    ${prefix}/bin/python2.7
51}
52
53variant python33 conflicts python27 python34 python35 description {Build ${name} with: python33} {
54    depends_lib         port:python33
55
56    configure.python    ${prefix}/bin/python3.3
57}
58
59variant python34 conflicts python27 python33 python35 description {Build ${name} with: python34} {
60    depends_lib         port:python34
61
62    configure.python    ${prefix}/bin/python3.4
63}
64
65variant python35 conflicts python27 python33 python34 description {Build ${name} with: python34} {
66    depends_lib         port:python35
67
68    configure.python    ${prefix}/bin/python3.5
69}
70
71variant qt4 description {Build ${name} with QT4} {
72    depends_lib         port:
73}
74
75variant qt5 description {Build ${name} with QT5} {
76    depends_lib         port:
77}
78
79# Perhaps use xtra variants for the plugins + adding “pygit”?
80#variant fooBar description {Build with fooBar} {
81#    depends_lib        port:
82#}
83
84
85#default_variants        +qt5 +python35
86
87
88use_configure   no
89
90build {
91    # Building and installing are synonymous
92}
93
94destroot {
95    system -W ${worksrcpath} "${configure.python} install.py -b '${prefix}/bin' -i '${destroot}'"
96}
97
98livecheck.type  regex
99livecheck.url   http://eric-ide.python-projects.org/eric-news.html
100livecheck.regex "eric (\\d+\\.\\d+) has been released"