source: trunk/dports/devel/qt4-creator-mac/Portfile @ 140954

Last change on this file since 140954 was 140954, checked in by michaelld@…, 2 years ago

qt4-creator-mac: fix to use qt.io; rearrange & tweak the livecheck to be for this specific major release (2.8.X); add myself as maintainer but with openmaintainer also.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.5 KB
Line 
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# $Id: Portfile 140954 2015-10-06 19:34:00Z michaelld@macports.org $
3
4PortSystem          1.0
5PortGroup           qmake 1.0
6
7name                qt4-creator-mac
8categories          devel aqua
9platforms           darwin
10license             LGPL-2.1
11maintainers         michaelld openmaintainer
12description         Cross-platform integrated development environment (IDE) tailored to the needs of Qt developers.
13long_description    Qt Creator is a cross-platform integrated development environment (IDE) tailored to the needs of Qt developers.
14
15version             2.8.1
16checksums           rmd160 9348896ff468a90e2c36260621c615c1ee89e82c \
17                    sha256 d5ae007a297a4288d0e95fd605edbfb8aee80f6788c7a6cfb9cb297f50c364b9
18
19set branch          [join [lrange [split ${version} .] 0 1] .]
20homepage            http://www.qt.io/ide/
21distname            qt-creator-${version}-src
22master_sites        https://download.qt.io/official_releases/qtcreator/${branch}/${version}/
23
24depends_lib-append  port:botan \
25                    port:qt4-mac-sqlite3-plugin
26
27# fix up QMake build files to remove debug and release building;
28# specify that here instead.
29patchfiles          patch-remove_build_types.diff \
30                    patch-macports-paths.diff
31
32post-patch {
33    # remove arch from QMake build scripts
34    reinplace "/ppc/d" ${worksrcpath}/qtcreator.pri
35
36    # add MacPorts-specific paths to the list of search paths for Qt binaries
37    reinplace "s|@@PREFIX@@|${prefix}|" \
38        ${worksrcpath}/src/libs/utils/environment.cpp
39    reinplace "s|@@QT_APPS_DIR@@|${qt_apps_dir}|" \
40        ${worksrcpath}/src/plugins/qtsupport/baseqtversion.cpp
41}
42
43pre-configure {
44    # set arch type(s); done is a stage to make sure the 'options
45    # qt_arch_types' is evaluated -after- +universal (if selected).
46    configure.pre_args CONFIG+="${qt_arch_types}"
47
48    # always build just the release, no debug
49    configure.pre_args-append CONFIG+="release"
50}
51
52configure.args      "USE_SYSTEM_BOTAN=1"
53
54build.target-append docs
55
56# allow ccache, if specified by the user
57pre-build {
58    if {[tbool configure.ccache]} {
59        build.post_args "CCACHE=ccache"
60    }
61}
62
63destroot {
64    xinstall -m 755 -d ${destroot}${qt_apps_dir}
65    copy "${worksrcpath}/bin/Qt Creator.app" "${destroot}${qt_apps_dir}"
66}
67
68livecheck.type      regex
69# Qt Creator >=2.6 requires Qt 4.8
70# Qt Creator >=3.0 requires Qt 5+, so stick with the 2.8 release
71livecheck.regex     qt-creator-(2.8.\[0-9\])-src.zip
72livecheck.url       ${master_sites}
Note: See TracBrowser for help on using the repository browser.