Ticket #53122: gpgme.2.diff

File gpgme.2.diff, 3.1 KB (added by RJVB (René Bertin), 7 years ago)

updated Portfile (diff against macports-ports master/head)

  • devel/gpgme/Portfile

    old new  
    44PortSystem          1.0
    55
    66name                gpgme
    7 version             1.7.0
     7version             1.8.0
    88categories          devel security crypto
    99license             {LGPL-2.1+ GPL-3+}
    1010maintainers         schenkel.net:leonardo devans openmaintainer
     
    2222master_sites        gnupg
    2323use_bzip2           yes
    2424
    25 checksums           rmd160  3159142bd912fe482566a78f48d19fe6a4d3221e \
    26                     sha256  71f55fed0f2b3eaf7a606e59772aa645ce3ffff322d361ce359951b3f755cc48
     25checksums           rmd160  b21a322ddbaf160538267cf201aeec207b8287f6 \
     26                    sha256  596097257c2ce22e747741f8ff3d7e24f6e26231fa198a41b2a072e62d1e5d33
    2727
    2828# either gnupg2 (the default) or gnupg21 is needed for running the unit tests
    2929# and at runtime but does not link directly with gpgme
     
    3636
    3737depends_run         path:bin/gpg2:gnupg2
    3838
    39 use_parallel_build  no
     39use_parallel_build  yes
    4040
    4141patchfiles          patch-configure.ac.diff \
    4242                    patch-tests-gpg-Makefile.am.diff
     
    5858# cpp bindings require libc++
    5959
    6060platform darwin {
     61    patchfiles-append \
     62                    patch-missing-prototypes.diff
    6163    if {${configure.cxx_stdlib} eq "libc++"} {
    6264        lappend languages cpp
    6365    }
     66    post-configure {
     67        reinplace "s|CC -dynamiclib|CC -dynamiclib [get_canonical_archflags]|g" ${worksrcpath}/libtool
     68    }
    6469}
    6570
    66 configure.args      --enable-languages="${languages}" \
    67                     --enable-static
    68 
    69 post-configure {
    70     reinplace "s|CC -dynamiclib|CC -dynamiclib [get_canonical_archflags]|g" ${worksrcpath}/libtool
     71variant qt5 description {build Qt5 support (qgpgme)} {}
     72if {[variant_isset qt5]} {
     73    set qt5.prefer_kde 1
     74    PortGroup       qt5 1.0
     75    lappend languages qt
     76    # rename libqgpgme to libq5gpgme to avoid conflicts with port:kdepimlibs4
     77    # (and having to modify that port once more to co-exist with us).
     78    # The library is found through CMake files (also modified), so well behaved
     79    # software (presumably KF5) won't have issues with the non-standard name.
     80    patchfiles-append \
     81                    patch-libqgpgme-name.diff
    7182}
    7283
     84configure.args      --disable-dependency-tracking \
     85                    --enable-languages="${languages}" \
     86                    --enable-static
     87
    7388test.run            yes
    7489test.target         check
    7590
     
    7893    xinstall -m 644 -W ${worksrcpath} AUTHORS COPYING COPYING.LESSER \
    7994        ChangeLog INSTALL NEWS README THANKS TODO \
    8095        ${destroot}${prefix}/share/doc/${name}
     96    platform darwin {
     97        if {[variant_isset qt5]} {
     98            reinplace "s|.so|.dylib|g" ${destroot}${prefix}/lib/cmake/QGpgme/QGpgmeConfig.cmake
     99        }
     100        reinplace "s|@libsuffix@|.dylib|g" ${destroot}${prefix}/lib/cmake/Gpgmepp/GpgmeppConfig.cmake
     101        reinplace "s|.so|.dylib|g" ${destroot}${prefix}/lib/cmake/Gpgmepp/GpgmeppConfig.cmake
     102    }
    81103}
    82104
    83105# deactivate kdepimlibs4 earlier than 4.14.3_4 to avoid