Ticket #46952: akonadi-diff2.patch

File akonadi-diff2.patch, 4.0 KB (added by RJVB (René Bertin), 9 years ago)
  • trunk/dports/devel/akonadi/Portfile

    diff --git a/trunk/dports/devel/akonadi/Portfile b/trunk/dports/devel/akonadi/Portfile
    a b  
    11# -*- 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# kate: backspace-indents true; indent-pasted-text true; indent-width 4; keep-extra-spaces true; remove-trailing-spaces modified; replace-tabs true; replace-tabs-save true; syntax Tcl/Tk; tab-indents true; tab-width 4;
    23# $Id$
    34
    45PortSystem          1.0
     
    56PortGroup           kde4    1.1
    67PortGroup           compiler_blacklist_versions 1.0
    78
     9fetch.type          git
     10if {[file exists /Users/bertin/cworks/new/KDE/kdepim/akonadi-git]} {
     11    git.url         /Users/bertin/cworks/new/KDE/kdepim/akonadi-git
     12} else {
     13    git.url         git://anongit.kde.org/akonadi
     14}
     15git.branch          c733429f
     16
    817name                akonadi
    9 version             1.13.0
    10 revision            1
     18set akoversion      1.13.1
     19version             ${akoversion}.20141210
    1120categories          devel kde kde4
    1221maintainers         nicos openmaintainer
    1322license             LGPL-2+
     
    1625for PIM data and metadata providing concurrent read, write, and query access.
    1726platforms           darwin
    1827homepage            http://community.kde.org/KDE_PIM/Akonadi
    19 master_sites        kde:stable/${name}/src/
    20 use_bzip2           yes
    2128
    22 checksums           rmd160  411e4e3b203cd9681b10d21af75806f723a687ec \
    23                     sha256  8c7f690002ea22c139f3a64394aef2e816e00ca47fd971af7d54a66087356dd2
     29worksrcdir          ${name}-${akoversion}
     30distname            ${name}-${akoversion}
    2431
    2532depends_lib-append  port:soprano \
    2633                    port:boost \
     
    3138compiler.blacklist-append   {clang < 500}
    3239
    3340configure.args-append  -DPOSTGRES_PATH=Off
     41# mute akonadiserver which is usually overly chatty:
     42configure.cflags-append     -DQT_NO_DEBUG_OUTPUT
     43configure.cxxflags-append   -DQT_NO_DEBUG_OUTPUT
    3444
    3545set startup_root ""
    3646post-destroot {
     
    177187    default_variants +mariadb55
    178188}
    179189
     190# package require fileutil
    180191post-patch {
    181     # fix '#include "utils.h"' -> "src/utils.h" to avoid a conflict
    182     # with the 'utils.h' header installed by the cdparanoia port
    183     fs-traverse item ${workpath}/${distname} {
     192    fs-traverse item ${workpath}/${distname}/server {
    184193        if {[file isfile ${item}]} {
     194#             # fix '#include "utils.h"' -> "src/utils.h" to avoid a conflict
     195#             # with the 'utils.h' header installed by the cdparanoia port
     196#             # do this only on the files actually containing the pattern (which would also exclude the
     197#             # .git directory)
     198#             if {[::fileutil::grep "include.*utils.h" ${item}] != ""} {
     199#                 reinplace "/include/s@\\(utils\\.h\\)@src/\\1@g" ${item}
     200#             }
    185201            reinplace "/include/s@\\(utils\\.h\\)@src/\\1@g" ${item}
    186202        }
    187203    }
     
    188204        reinplace "s|/Applications|${applications_dir}|" ${worksrcpath}/CMakeLists.txt
    189205}
    190206
     207variant verbose description {Enable debug output (chatty!)} {
     208    configure.cflags-delete     -DQT_NO_DEBUG_OUTPUT
     209    configure.cxxflags-delete   -DQT_NO_DEBUG_OUTPUT
     210}
     211
    191212platform darwin {
    192     #Deactivate tests for 10.8 and lower, as they require full C++11 support (ticket #45300)
    193     patchfiles-append     patch-tests.diff
     213    #Deactivate tests as they require full C++11 support (ticket #45300)
    194214    configure.args-append -DAKONADI_BUILD_TESTS:BOOL=OFF -DBUILD_TESTING:BOOL=OFF
    195 
    196215    if {${os.major} == 9} {
    197216        if {[info exists universal_target] && ${universal_target} == "10.4"} {
    198217        # Needed if compiling for 10.4 universal on 10.5
     
    203222    }
    204223}
    205224
    206 livecheck.type      regex
    207 livecheck.url       http://kde.mirrors.hoobly.com/stable/akonadi/src/
    208 livecheck.regex     ${name}-(\\d+(\\.\\d+)+)
     225livecheck.type      none
     226 No newline at end of file