Ticket #50033: ECM.diff
File ECM.diff, 4.5 KB (added by RJVB (René Bertin), 9 years ago) |
---|
-
/opt/local/
old new 2 2 # $Id: Portfile 138055 2015-06-27 01:03:30Z mk@macports.org $ 3 3 4 4 PortSystem 1.0 5 PortGroup cmake 1.0 6 5 PortGroup cmake 1.0 7 6 cmake.out_of_source yes 8 7 9 8 set ECM extra-cmake-modules 10 9 name kde-${ECM} 11 version 5.11.0 12 set branch [join [lrange [split ${version} .] 0 1] .] 10 subport ${name}-devel {} 11 12 set kf5.branch 5.17 13 14 if {${subport} eq "${name}-devel"} { 15 # version v5.16.0-rc1-6-g55c5580 according to git describe, but 5.16.0 according to CMakeLists.txt 16 version ${kf5.branch}.0.1 17 fetch.type git 18 git.url git://anongit.kde.org/extra-cmake-modules 19 git.branch 9911382614c46be19fd6ed3b163ebcf468bd5337 20 distname ECM-5.1x.git 21 } else { 22 version ${kf5.branch}.0 23 set branch [join [lrange [split ${version} .] 0 1] .] 24 master_sites http://download.kde.org/stable/frameworks/${branch}/ 25 26 distname ${ECM}-${version} 27 use_xz yes 28 29 checksums rmd160 055d774f8ef552a30e9771ac12255ce64676a1ef \ 30 sha256 1a57fe0e07cca59e68bcbb4e06e07e62e335473173ce1e447bda399e47537405 31 } 32 13 33 supported_archs noarch 14 34 categories kde kf5 devel 15 35 license GPL-2+ … … 21 41 whatever reason, are not a good fit for CMake itself. 22 42 platforms darwin 23 43 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 yes28 44 29 checksums rmd160 f5df1f931934433cce0496630d7eca5e9efbe69c \ 30 sha256 9ee39c08ca4a6066e9c7061b740ed8b1d5f289e6b19a568d1704585d883cb718 45 patchfiles-append patch-BUNDLEDIR.diff 31 46 47 # # Apparently not used here, but these should be used when configuring KF5 packages: 48 # configure.args-append \ 49 # -DCMAKE_DISABLE_FIND_PACKAGE_X11=ON \ 50 # -DAPPLE_SUPPRESS_X11_WARNING=ON \ 51 # -DCMAKE_INSTALL_LIBEXECDIR=${prefix}/libexec \ 52 # -DKDE_INSTALL_LIBEXECDIR=${prefix}/libexec/kde5 32 53 33 variant qt4 description {Use qt4-macto build the Qt documentation} {54 variant qt4 description {Use Qt4 to build the Qt documentation} { 34 55 PortGroup qt4 1.0 35 56 } 36 variant qt5 description {Use qt5-macto build the Qt documentation} {57 variant qt5 description {Use Qt5 to build the Qt documentation} { 37 58 PortGroup qt5 1.0 38 59 } 39 60 variant docs description {Build documentation} { 40 if {![variant_isset qt4] && ![variant_isset qt5]} {61 if {![variant_isset qt4] && ![variant_isset qt5]} { 41 62 # 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 63 if {[file exists ${prefix}/libexec/qt5/bin/qcollectiongenerator] \ 64 || [file exists ${prefix}/libexec/qt5-mac/bin/qcollectiongenerator]} { 65 # qcollectiongenerator is installed and provided by a concurrent qt5 port 44 66 default_variants +qt5 45 67 PortGroup qt5 1.0 46 68 } elseif {[file exists ${prefix}/libexec/qt4/bin/qcollectiongenerator]} { 47 # qcollectiongenerator is installed and provided by a concurrent qt4 -macport69 # qcollectiongenerator is installed and provided by a concurrent qt4 port 48 70 default_variants +qt4 49 71 PortGroup qt4 1.0 50 72 } else { … … 55 77 PortGroup qt4 1.0 56 78 } 57 79 } 58 depends_build-append port:py-sphinx59 80 patchfiles-append patch-doc-building.diff 81 depends_build-append port:py-sphinx 60 82 configure.args-append -DBUILD_HTML_DOCS:BOOL=OFF -DBUILD_QTHELP_DOCS:BOOL=ON 61 83 pre-destroot { 62 84 system -W ${build.dir}/docs "${qt_bins_dir}/qcollectiongenerator qthelp/ExtraCMakeModules.qhcp" 63 85 } 64 86 } 65 87 66 livecheck.type none 67 88 livecheck.type regex 89 livecheck.url http://download.kde.org/stable/frameworks/${kf5.branch} 90 livecheck.regex (5+(\\.\\d+)+)