Ticket #52481: patch-kdepimlibs4.diff

File patch-kdepimlibs4.diff, 1.6 KB (added by NicosPavlov, 8 years ago)
  • Portfile

     
    66
    77name                kdepimlibs4
    88version             4.14.3
    9 revision            4
     9revision            5
    1010categories          kde kde4
    1111maintainers         nicos
    1212license             GPL-2+ LGPL-2+ BSD
     
    4141                    port:gpgme
    4242
    4343#Suppress build of kioslaves which conflict with openssl
    44 patchfiles-append   patch-CMakeLists.diff \
    45                     patch-gpgme.diff \
    46                     patch-qgpgme.diff \
    47                     patch-testqgpgme.diff
     44patchfiles-append   patch-CMakeLists.diff
    4845
    4946configure.args-append   -DMAILTRANSPORT_INPROCESS_SMTP=Off
    5047
    5148pre-configure {
    5249    #Deactivating gpgme++ to avoid conflict with gpgme port
    53     reinplace "s|add_subdirectory(gpgme++)|#add_subdirectory(gpgme++)|g" \
    54         ${worksrcpath}/CMakeLists.txt
    55     reinplace "s|%PREFIX%|${prefix}/lib|g" \
    56         ${worksrcpath}/qgpgme/CMakeLists.txt
    57     reinplace "s|%PREFIX%|${prefix}/lib|g" \
    58         ${worksrcpath}/qgpgme/tests/CMakeLists.txt
     50    reinplace "s|%PREFIX%|${prefix}|g" \
     51        ${worksrcpath}/gpgme++/CMakeLists.txt
    5952}
    6053
    6154pre-activate {
     
    6659    }
    6760}
    6861
     62post-destroot {
     63    #Move headers only in case of main port
     64    if {${subport} eq ${name}} {
     65        #Move internal gpgme headers out of the way
     66        file mkdir ${destroot}${prefix}/include/KDE4
     67        move ${destroot}${prefix}/include/gpgme++ \
     68            ${destroot}${prefix}/include/kde4/gpgme++
     69    }
     70}
     71
    6972subport kdepimlibs4-kioslaves {
    7073
    7174#kioslaves components conflict with openssl license