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 | |
---|
4 | PortSystem 1.0 |
---|
5 | PortGroup cmake 1.0 |
---|
6 | |
---|
7 | cmake.out_of_source yes |
---|
8 | |
---|
9 | set ECM extra-cmake-modules |
---|
10 | name kde-${ECM} |
---|
11 | version 5.11.0 |
---|
12 | set branch [join [lrange [split ${version} .] 0 1] .] |
---|
13 | supported_archs noarch |
---|
14 | categories kde kf5 devel |
---|
15 | license GPL-2+ |
---|
16 | maintainers gmail.com:rjvbertin openmaintainer |
---|
17 | description Extra modules and scripts for CMake. |
---|
18 | long_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. |
---|
22 | platforms darwin |
---|
23 | homepage http://projects.kde.org/projects/kdesupport/${ECM} |
---|
24 | master_sites http://download.kde.org/stable/frameworks/${branch}/ |
---|
25 | |
---|
26 | distname ${ECM}-${version} |
---|
27 | use_xz yes |
---|
28 | |
---|
29 | checksums rmd160 f5df1f931934433cce0496630d7eca5e9efbe69c \ |
---|
30 | sha256 9ee39c08ca4a6066e9c7061b740ed8b1d5f289e6b19a568d1704585d883cb718 |
---|
31 | |
---|
32 | |
---|
33 | variant qt4 description {Use qt4-mac to build the Qt documentation} { |
---|
34 | PortGroup qt4 1.0 |
---|
35 | } |
---|
36 | variant qt5 description {Use qt5-mac to build the Qt documentation} { |
---|
37 | PortGroup qt5 1.0 |
---|
38 | } |
---|
39 | variant 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 | |
---|
61 | livecheck.type none |
---|
62 | |
---|