Ticket #50033: ECM.diff

File ECM.diff, 4.5 KB (added by RJVB (René Bertin), 9 years ago)
  • /opt/local/

    old new  
    22# $Id: Portfile 138055 2015-06-27 01:03:30Z mk@macports.org $
    33
    44PortSystem          1.0
    5 PortGroup           cmake 1.0
    6 
     5PortGroup           cmake   1.0
    76cmake.out_of_source yes
    87
    98set ECM             extra-cmake-modules
    109name                kde-${ECM}
    11 version             5.11.0
    12 set branch          [join [lrange [split ${version} .] 0 1] .]
     10subport ${name}-devel {}
     11
     12set kf5.branch      5.17
     13
     14if {${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
    1333supported_archs     noarch
    1434categories          kde kf5 devel
    1535license             GPL-2+
     
    2141                    whatever reason, are not a good fit for CMake itself.
    2242platforms           darwin
    2343homepage            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
    2844
    29 checksums           rmd160  f5df1f931934433cce0496630d7eca5e9efbe69c \
    30                     sha256  9ee39c08ca4a6066e9c7061b740ed8b1d5f289e6b19a568d1704585d883cb718
     45patchfiles-append   patch-BUNDLEDIR.diff
    3146
     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
    3253
    33 variant qt4 description {Use qt4-mac to build the Qt documentation} {
     54variant qt4 description {Use Qt4 to build the Qt documentation} {
    3455    PortGroup               qt4 1.0
    3556}
    36 variant qt5 description {Use qt5-mac to build the Qt documentation} {
     57variant qt5 description {Use Qt5 to build the Qt documentation} {
    3758    PortGroup               qt5 1.0
    3859}
    3960variant docs description {Build documentation} {
    40    if {![variant_isset qt4] && ![variant_isset qt5]} {
     61    if {![variant_isset qt4] && ![variant_isset qt5]} {
    4162        # 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
    4466            default_variants    +qt5
    4567            PortGroup           qt5 1.0
    4668        } elseif {[file exists ${prefix}/libexec/qt4/bin/qcollectiongenerator]} {
    47             # qcollectiongenerator is installed and provided by a concurrent qt4-mac port
     69            # qcollectiongenerator is installed and provided by a concurrent qt4 port
    4870            default_variants    +qt4
    4971            PortGroup           qt4 1.0
    5072        } else {
     
    5577            PortGroup           qt4 1.0
    5678        }
    5779    }
    58     depends_build-append    port:py-sphinx
    5980    patchfiles-append       patch-doc-building.diff
     81    depends_build-append    port:py-sphinx
    6082    configure.args-append   -DBUILD_HTML_DOCS:BOOL=OFF -DBUILD_QTHELP_DOCS:BOOL=ON
    6183    pre-destroot {
    6284        system -W ${build.dir}/docs "${qt_bins_dir}/qcollectiongenerator qthelp/ExtraCMakeModules.qhcp"
    6385    }
    6486}
    6587
    66 livecheck.type      none
    67 
     88livecheck.type      regex
     89livecheck.url       http://download.kde.org/stable/frameworks/${kf5.branch}
     90livecheck.regex     (5+(\\.\\d+)+)