Changeset 141016


Ignore:
Timestamp:
Oct 7, 2015, 11:29:28 PM (3 years ago)
Author:
eborisch@…
Message:

KeePassX: Update to 2.0-beta2. Use github and cmake (with out_of_source) groups. WITH_CXX11 switched to default ON; change config options.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/security/KeePassX/Portfile

    r139326 r141016  
    44PortSystem              1.0
    55PortGroup               qt4 1.0
     6PortGroup               github 1.0
     7PortGroup               cmake 1.0
     8github.setup            keepassx keepassx 2.0-beta2
    69
    710name                    KeePassX
    8 version                 2.0-beta1
    911revision                0
    1012categories              security aqua
     
    2830
    2931homepage                https://www.keepassx.org/
    30 master_sites            https://www.keepassx.org/dev/attachments/download/100
    31 distname                keepassx-${version}
    3232
    3333checksums \
    34     rmd160  d464465eeceaf94d5bedf0e124702dea2ca13324 \
    35     sha256  bce1933c48fd33ef8043dd526d769fd9c454d1b63464c82a35e1f7a8689acbf2
     34    rmd160  542eda22b8393f1de6798d7c3072d229da3103d1 \
     35    sha256  a81239227905fcace9efd007b53a98b84c7711a3600bf2ded0d6743e8ddfce66
    3636
    3737depends_lib-append      port:libgcrypt \
     
    4040depends_build-append    port:cmake
    4141
    42 worksrcdir              build
    43 
    44 post-extract {
    45     file mkdir ${worksrcpath}
    46     reinplace "s|zlib.h|${prefix}/include/zlib.h|" ../${distname}/CMakeLists.txt
    47     platform darwin {
    48         if {${os.major} >= 13} {
    49             reinplace "s|-stack-protector-buffer-size=4||g" \
    50                       ../${distname}/CMakeLists.txt
    51             reinplace "s|-mllvm||g" \
    52                       ../${distname}/CMakeLists.txt
    53         }
    54     }
    55 }
    56 
    57 configure.cmd           cmake
    58 configure.pre_args      -DCMAKE_INSTALL_PREFIX=${applications_dir} \
    59                         -DZLIB_ROOT=${prefix}
    60 configure.args          ${qt_cmake_defines} ../${distname}
     42cmake.out_of_source     yes
    6143
    6244platform darwin {
     
    6446        # Build fails with clang: unsupported -stack-protector-buffer-size=4
    6547        # (even though clang -help lists option)
    66         compiler.blacklist          clang
    67     } else {
    68         configure.pre_args-append   -DWITH_CXX11=On
     48        # Disabling blacklist; option no longer set in source CMakeLists.txt
     49        # compiler.blacklist          clang
     50        configure.pre_args-append   -DWITH_CXX11=OFF
    6951    }
    7052}
     
    7254# Don't make copies of all the QT4 libraries etc... (MUCH smaller install)
    7355post-configure {
    74     reinplace "s/FIXUP_QT4_EXECUTABLE.*//" src/cmake_install.cmake
     56    reinplace "s/FIXUP_QT4_EXECUTABLE.*//" \
     57        ${cmake.build_dir}/src/cmake_install.cmake
    7558}
    7659
    7760post-destroot {
    7861    xinstall -d ${destroot}${prefix}/share/doc/${name}
    79     xinstall -W ${workpath}/${distname} COPYING LICENSE.BSD LICENSE.CC0 \
     62    xinstall -W ${worksrcpath} COPYING LICENSE.BSD LICENSE.CC0 \
    8063             LICENSE.GPL-2 LICENSE.LGPL-2.1 LICENSE.LGPL-3 \
    8164             LICENSE.NOKIA-LGPL-EXCEPTION \
Note: See TracChangeset for help on using the changeset viewer.