source: trunk/dports/kde/kde-extra-cmake-modules/Portfile @ 138055

Last change on this file since 138055 was 138055, checked in by mk@…, 4 years ago

kde-extra-cmake-modules: use 'system -W' instead of 'exec' (Thanks Ryan for spotting this.)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.9 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 138055 2015-06-27 01:03:30Z mk@macports.org $
3
4PortSystem          1.0
5PortGroup           cmake 1.0
6
7cmake.out_of_source yes
8
9set ECM             extra-cmake-modules
10name                kde-${ECM}
11version             5.11.0
12set branch          [join [lrange [split ${version} .] 0 1] .]
13supported_archs     noarch
14categories          kde kf5 devel
15license             GPL-2+
16maintainers         gmail.com:rjvbertin mk openmaintainer
17description         Extra modules and scripts for CMake.
18long_description    Extra CMake Modules, or ECM, aims to augment CMake with additional \
19                    modules. It serves as both a staging ground for new modules before \
20                    they are moved upstream to CMake and a place for modules that, for \
21                    whatever reason, are not a good fit for CMake itself.
22platforms           darwin
23homepage            http://projects.kde.org/projects/kdesupport/${ECM}
24master_sites        http://download.kde.org/stable/frameworks/${branch}/
25
26distname            ${ECM}-${version}
27use_xz              yes
28
29checksums           rmd160  f5df1f931934433cce0496630d7eca5e9efbe69c \
30                    sha256  9ee39c08ca4a6066e9c7061b740ed8b1d5f289e6b19a568d1704585d883cb718
31
32
33variant qt4 description {Use qt4-mac to build the Qt documentation} {
34    PortGroup               qt4 1.0
35}
36variant qt5 description {Use qt5-mac to build the Qt documentation} {
37    PortGroup               qt5 1.0
38}
39variant docs description {Build documentation} {
40   if {![variant_isset qt4] && ![variant_isset qt5]} {
41        # user didn't request a Qt variant to use for building the documentation
42        if {[file exists ${prefix}/libexec/qt5/bin/qcollectiongenerator] || [file exists ${prefix}/libexec/qt5-mac/bin/qcollectiongenerator]} {
43            # qcollectiongenerator is installed and provided by a concurrent qt5-mac port
44            default_variants    +qt5
45            PortGroup           qt5 1.0
46        } elseif {[file exists ${prefix}/libexec/qt4/bin/qcollectiongenerator]} {
47            # qcollectiongenerator is installed and provided by a concurrent qt4-mac port
48            default_variants    +qt4
49            PortGroup           qt4 1.0
50        } else {
51            # a qcollectiongenerator version cannot be found in a location indicating who provides it
52            # fall back to using the most Qt version most likely to be installed at this time
53            # (and which at this exact time won't need to be built from source)
54            default_variants    +qt4
55            PortGroup           qt4 1.0
56        }
57    }
58    depends_build-append    port:py-sphinx
59    patchfiles-append       patch-doc-building.diff
60    configure.args-append   -DBUILD_HTML_DOCS:BOOL=OFF -DBUILD_QTHELP_DOCS:BOOL=ON
61    pre-destroot {
62        system -W ${build.dir}/docs "${qt_bins_dir}/qcollectiongenerator qthelp/ExtraCMakeModules.qhcp"
63    }
64}
65
66livecheck.type      none
67
Note: See TracBrowser for help on using the repository browser.