| 24 | installs_libs no |
| 25 | |
| 26 | homepage http://wiki.qt.io/Category:Tools::QtCreator |
| 27 | |
| 28 | subport ${name}-devel { |
| 29 | set use_git yes |
| 30 | if {${use_git}} { |
| 31 | depends_fetch-append port:git |
| 32 | fetch.type git |
| 33 | git.url git://code.qt.io/qt-creator/qt-creator.git |
| 34 | git.branch 51bb521 |
| 35 | set qbs.branch 760dc4e |
| 36 | version 3.4.0.638.g${git.branch} |
| 37 | distname qt-creator-opensource-src-3.4.x |
| 38 | fetch { |
| 39 | # I don't see any provisions for git submodules in MacPorts, so we have to clone by hand: |
| 40 | system "${prefix}/bin/git clone --depth=1 --no-single-branch --recursive -q ${git.url} ${workpath}/${worksrcdir}" |
| 41 | system "cd ${workpath}/${worksrcdir} ; ${prefix}/bin/git checkout -q ${git.branch}" |
| 42 | system "cd ${workpath}/${worksrcdir}/src/shared/qbs ; ${prefix}/bin/git checkout -q ${qbs.branch}" |
| 43 | } |
| 44 | # hopefully temporary patches: |
| 45 | patchfiles-append \ |
| 46 | patch-missing-botan-headers.diff \ |
| 47 | patch-coreplugin+CoreServices.diff |
| 48 | } else { |
| 49 | version 3.4.0 |
| 50 | master_sites https://download.qt.io/official_releases/qtcreator/[join [lrange [split ${version} .] 0 1] .]/${version}/ |
| 51 | |
| 52 | distname qt-creator-opensource-src-${version} |
| 53 | checksums rmd160 de85ab935a094e94a8e8864406d82dbb57b3233a \ |
| 54 | sha256 b80baf5be9b0421b3d951a8a0eb411a65cf008f4c753f5a80d205e90fa4fe112 |
| 55 | livecheck.type regex |
| 56 | livecheck.url http://www.qt.io/download-open-source/ |
| 57 | livecheck.regex qt-creator-opensource-src-(\[a-z0-9.\]+)${extract.suffix} |
| 58 | } |
22 | | homepage http://qt-project.org/wiki/Category:Tools::QtCreator |
23 | | distname qt-creator-opensource-src-${version} |
24 | | master_sites https://download.qt-project.org/official_releases/qtcreator/[join [lrange [split ${version} .] 0 1] .]/${version}/ |
| 60 | # don't let QtCreator set up a global Mac-style menubar when using the xcb plugin |
| 61 | patchfiles-append devel/patch-show-menubar-with-xcb.diff |
| 62 | } |
| 63 | #else |
| 64 | if { ${subport} ne "${name}-devel" } { |
| 65 | # version 3.3.2 |
| 66 | # master_sites https://download.qt.io/official_releases/qtcreator/[join [lrange [split ${version} .] 0 1] .]/${version}/ |
| 67 | # |
| 68 | # distname qt-creator-opensource-src-${version} |
| 69 | # checksums rmd160 faeff05d1d58f3eb4666618221a3775239f4c6ec \ |
| 70 | # sha256 6ef76d23c778a58caffb487b8bc6a192defa2d5dd5fab1ecf8eb70d53ccfb98a |
| 71 | # livecheck.type regex |
| 72 | # livecheck.url http://www.qt.io/download-open-source/ |
| 73 | # livecheck.regex qt-creator-opensource-src-(\[a-z0-9.\]+)${extract.suffix} |
| 74 | version 3.4.0 |
| 75 | master_sites https://download.qt.io/official_releases/qtcreator/[join [lrange [split ${version} .] 0 1] .]/${version}/ |
| 76 | |
| 77 | distname qt-creator-opensource-src-${version} |
| 78 | checksums rmd160 de85ab935a094e94a8e8864406d82dbb57b3233a \ |
| 79 | sha256 b80baf5be9b0421b3d951a8a0eb411a65cf008f4c753f5a80d205e90fa4fe112 |
| 80 | livecheck.type regex |
| 81 | livecheck.url http://www.qt.io/download-open-source/ |
| 82 | livecheck.regex qt-creator-opensource-src-(\[a-z0-9.\]+)${extract.suffix} |
32 | | |
| 92 | |
| 93 | post-fetch { |
| 94 | file mkdir ${workpath}/build |
| 95 | if {${use_git} && (${subport} eq "${name}-devel")} { |
| 96 | catch {eval exec sh -c "\"cd ${workpath}/${worksrcdir} ; git submodule update --init\""} result |
| 97 | ui_debug "git submodule -init: $result" |
| 98 | if {[file exists ${filespath}/QC-git/.git]} { |
| 99 | reinplace -W ${workpath}/${worksrcdir} "s|qt-labs/qbs.git|files/QC-git/src/shared/qbs|g" .git/config |
| 100 | } |
| 101 | catch {eval exec sh -c "\"cd ${workpath}/${worksrcdir} ; git submodule update\""} result |
| 102 | ui_debug "git submodule: $result" |
| 103 | } |
| 104 | } |
| 105 | configure.args-append ../${worksrcdir}/qtcreator.pro |
| 106 | default configure.dir {${workpath}/build} |
| 107 | default build.dir {${workpath}/build} |
| 108 | |
44 | | xinstall -m 755 -d ${destroot}-${arch}${qt_apps_dir} |
45 | | copy "${worksrcpath}-${arch}/bin/Qt Creator.app" "${destroot}-${arch}${qt_apps_dir}" |
| 124 | set adest ${destroot}-${arch}${qt_apps_dir} |
| 125 | xinstall -m 755 -d ${adest} |
| 126 | copy "${worksrcpath}-${arch}/bin/Qt Creator.app" "${adest}" |
| 127 | reinplace "s|/usr/local/|${prefix}/|g" \ |
| 128 | "${adest}/Qt Creator.app/Contents/Resources/qbs/share/qbs/imports/qbs/Probes/FrameworkProbe.qbs" \ |
| 129 | "${adest}/Qt Creator.app/Contents/Resources/qbs/share/qbs/imports/qbs/Probes/PathProbe.qbs" |