Commits
Marcus Calhoun-Lopez authored 2447ba83873
1 1 | # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 |
2 2 | |
3 3 | PortSystem 1.0 |
4 4 | PortGroup qmake5 1.0 |
5 5 | PortGroup cxx11 1.1 |
6 6 | |
7 7 | name qt5-qtcreator |
8 8 | |
9 - | version 4.7.0 |
9 + | version 4.7.1 |
10 10 | #revision 0 |
11 11 | categories devel aqua |
12 12 | platforms darwin |
13 13 | # from https://blog.qt.io/blog/2016/01/13/new-agreement-with-the-kde-free-qt-foundation/ |
14 14 | # The GPL license comes with two exceptions that ensure that there are no license restrictions on generated code, and that bridging to 3rd party code is still possible. |
15 15 | license GPL-3 |
16 16 | maintainers {mcalhoun @MarcusCalhoun-Lopez} openmaintainer |
17 17 | description Cross-platform integrated development environment (IDE) tailored to the needs of Qt developers. |
18 18 | long_description Qt Creator is a cross-platform integrated development environment (IDE) tailored to the needs of Qt developers. |
19 19 | |
20 20 | homepage http://qt-project.org/wiki/Category:Tools::QtCreator |
21 21 | distname qt-creator-opensource-src-${version} |
22 22 | master_sites https://download.qt.io/official_releases/qtcreator/[join [lrange [split ${version} .] 0 1] .]/${version}/ |
23 23 | |
24 - | checksums rmd160 27e50cc866f291932e28ac906321e64eb42c6930 \ |
25 - | sha256 a83a61f73279533f31a688a0f1c9e0178c99fd27f0a9fe659fe242ce72693077 \ |
26 - | size 31512514 |
24 + | checksums rmd160 cb6af73c49a6d99483fb62b2a542327dcdf0b240 \ |
25 + | sha256 cf6bd76170b9334fcc93020cf0cdf286d62f808656e1564addb7f7a2b8061289 \ |
26 + | size 31535823 |
27 27 | |
28 28 | pre-fetch { |
29 29 | if {${os.platform} eq "darwin" && ${os.major} < 12} { |
30 30 | # last version that runs on Lion is 3.6.1 |
31 31 | ui_error "${subport} requires OS X 10.8 or later" |
32 32 | return -code error "incompatible OS version" |
33 33 | } |
34 34 | } |
35 35 | |
36 36 | # qtcreator does not depend directly on openssl |
44 44 | if { ${subport} eq ${name} } { |
45 45 | |
46 46 | qt5.depends_component qtscript qtdeclarative qttools qtmacextras qtquickcontrols qtsvg |
47 47 | |
48 48 | depends_lib-append port:botan |
49 49 | configure.args-append "USE_SYSTEM_BOTAN=1" |
50 50 | |
51 51 | depends_lib-append port:qbs |
52 52 | configure.args-append "QBS_INSTALL_DIR=${prefix}" |
53 53 | |
54 + | # LLVM 7 does not seem to work (see https://bugreports.qt.io/browse/QTCREATORBUG-21237) |
54 55 | depends_lib-append port:llvm-6.0 |
55 56 | configure.args-append "LLVM_INSTALL_DIR=${prefix}/libexec/llvm-6.0" |
56 57 | |
58 + | depends_build-append port:python27 |
59 + | set python_framework ${frameworks_dir}/Python.framework/Versions/2.7 |
60 + | configure.env-append PATH=${python_framework}/bin:$env(PATH) |
61 + | build.env-append PATH=${python_framework}/bin:$env(PATH) |
62 + | |
57 63 | # do not opportunistically use QtWebengine |
58 64 | patchfiles-append patch-no_qtwebengine.diff |
59 65 | |
60 66 | # qtwebengine does not have a universal build |
61 67 | variant qtwebengine conflicts universal description {build with QtWebengine support} { |
62 68 | patchfiles-delete patch-no_qtwebengine.diff |
63 69 | qt5.depends_component qtwebengine qtwebchannel |
64 70 | } |
65 71 | |
66 72 | destroot { |
162 168 | |
163 169 | # N.B. that at some point in the future, QtCreator.ini may need to be created |
164 170 | # to include more search locations for documentation and examples |
165 171 | } |
166 172 | } |
167 173 | |
168 174 | subport ${name}-docs { |
169 175 | |
170 176 | universal_variant no |
171 177 | supported_archs noarch |
178 + | installs_libs no |
172 179 | qt5.debug_variant no |
173 180 | |
174 181 | qt5.depends_build_component sqlite-plugin |
175 182 | depends_run-append port:${name} |
176 183 | build.target docs |
177 184 | |
178 185 | destroot { |
179 186 | xinstall -m 755 -d ${destroot}${qt_docs_dir} |
180 187 | |
181 188 | foreach dir "qtcreator qtcreator-dev" { |