Ticket #46978: Portfile.2

File Portfile.2, 2.5 KB (added by mkae (Marko Käning), 9 years ago)

my current status which doesnt work with +docs variant

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 129773 2015-02-26 08:18:44Z rjvbertin@gmail.com $
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 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    # It seems overkill to record a dependency on an already installed port that's
41    # required only to build documentation...
42    if {[file exists ${prefix}/libexec/qt5/bin/qcollectiongenerator] && ![variant_isset qt4]} {
43        default_variants    +qt5
44        PortGroup           qt5 1.0
45    } elseif {[file exists ${prefix}/libexec/qt4/bin/qcollectiongenerator] && ![variant_isset qt5]} {
46        default_variants    +qt4
47        PortGroup           qt4 1.0
48    } else {
49        default_variants    +qt5
50        PortGroup           qt5 1.0
51    }
52
53    depends_build-append    port:py-sphinx
54    patchfiles-append       patch-doc-building.diff
55    configure.args-append   -DBUILD_HTML_DOCS:BOOL=OFF -DBUILD_QTHELP_DOCS:BOOL=ON
56    pre-destroot {
57        exec sh -c "cd ${build.dir}/docs ; ${qt_bins_dir}/qcollectiongenerator qthelp/ExtraCMakeModules.qhcp"
58    }
59}
60
61livecheck.type      none
62