# -*- 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 # $Id$ PortSystem 1.0 PortGroup cmake 1.0 cmake.out_of_source yes set ECM extra-cmake-modules name kde-${ECM} version 5.11.0 set branch [join [lrange [split ${version} .] 0 1] .] supported_archs noarch categories kde kf5 devel license GPL-2+ maintainers gmail.com:rjvbertin mk openmaintainer description Extra modules and scripts for CMake. long_description Extra CMake Modules, or ECM, aims to augment CMake with additional \ modules. It serves as both a staging ground for new modules before \ they are moved upstream to CMake and a place for modules that, for \ whatever reason, are not a good fit for CMake itself. platforms darwin homepage http://projects.kde.org/projects/kdesupport/${ECM} master_sites http://download.kde.org/stable/frameworks/${branch}/ distname ${ECM}-${version} use_xz yes checksums rmd160 f5df1f931934433cce0496630d7eca5e9efbe69c \ sha256 9ee39c08ca4a6066e9c7061b740ed8b1d5f289e6b19a568d1704585d883cb718 variant qt4 description {Use qt4-mac to build the Qt documentation} { PortGroup qt4 1.0 } variant qt5 description {Use qt5-mac to build the Qt documentation} { PortGroup qt5 1.0 } variant docs description {Build documentation} { if {![variant_isset qt4] && ![variant_isset qt5]} { # user didn't request a Qt variant to use for building the documentation if {[file exists ${prefix}/libexec/qt5/bin/qcollectiongenerator] || [file exists ${prefix}/libexec/qt5-mac/bin/qcollectiongenerator]} { # qcollectiongenerator is installed and provided by a concurrent qt5-mac port default_variants +qt5 PortGroup qt5 1.0 } elseif {[file exists ${prefix}/libexec/qt4/bin/qcollectiongenerator]} { # qcollectiongenerator is installed and provided by a concurrent qt4-mac port default_variants +qt4 PortGroup qt4 1.0 } else { # a qcollectiongenerator version cannot be found in a location indicating who provides it # fall back to using the most Qt version most likely to be installed at this time # (and which at this exact time won't need to be built from source) default_variants +qt4 PortGroup qt4 1.0 } } depends_build-append port:py-sphinx patchfiles-append patch-doc-building.diff configure.args-append -DBUILD_HTML_DOCS:BOOL=OFF -DBUILD_QTHELP_DOCS:BOOL=ON pre-destroot { system -W ${build.dir}/docs "${qt_bins_dir}/qcollectiongenerator qthelp/ExtraCMakeModules.qhcp" } } livecheck.type none