source: trunk/dports/security/KeePassX/Portfile @ 125901

Last change on this file since 125901 was 122412, checked in by ryandesign@…, 5 years ago

libgcrypt: update to 1.6.1 and revbump dependents (#43109)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.1 KB
Line 
1# -*- 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# $Id: Portfile 122412 2014-07-22 12:41:54Z ryandesign@macports.org $
3
4PortSystem              1.0
5PortGroup               qt4 1.0
6
7name                    KeePassX
8version                 2.0-alpha6
9revision                1
10categories              security aqua
11maintainers             nomaintainer
12
13description             KeePassX is a password manager compatiable with KeePass
14long_description        KeePassX is an application for people with extremely \
15                        high demands on secure personal data management. It \
16                        has a light interface and is cross platform. KeePassX \
17                        saves many different types of information including \
18                        user names, passwords, URLs, attachments and comments \
19                        in one single database.
20
21platforms               darwin
22license                 GPL-2 LGPL-2 LGPL-3 BSD permissive
23license_noconflict      openssl
24
25notes "
26BEWARE, THIS IS AN ALPHA RELEASE AND NOT INTENDED TO BE USED IN A PRODUCTION\
27ENVIRONMENT.
28"
29
30homepage                https://www.keepassx.org/
31master_sites            https://www.keepassx.org/dev/attachments/download/69
32distname                keepassx-${version}
33
34checksums               md5     7c1c3a42aff63abd8db3bc8df6c963f6 \
35                        rmd160  ef46208dd0654e9046e048c2a91c285d1fb14001 \
36                        sha256  592f9995b13c4f84724fb24a0078162246397eedccd467daaf0fd3608151f2b0
37
38depends_lib-append      port:libgcrypt \
39                        port:zlib
40
41depends_build-append    port:cmake
42
43worksrcdir              build
44
45post-extract {
46    file mkdir ${worksrcpath}
47    reinplace "s|zlib.h|${prefix}/include/zlib.h|" ../${distname}/CMakeLists.txt
48    platform darwin {
49        if {${os.major} >= 13} {
50            reinplace "s|-stack-protector-buffer-size=4||g" \
51                      ../${distname}/CMakeLists.txt
52            reinplace "s|-mllvm||g" \
53                      ../${distname}/CMakeLists.txt
54        }
55    }
56}
57
58configure.cmd           cmake
59configure.pre_args      -DCMAKE_INSTALL_PREFIX=${applications_dir} \
60                        -DZLIB_ROOT=${prefix}
61configure.args          ${qt_cmake_defines} ../${distname}
62
63platform darwin {
64    if {${os.major} < 13} {
65        # Build fails with clang: unsupported -stack-protector-buffer-size=4
66        # (even though clang -help lists option)
67        compiler.blacklist          clang
68    } else {
69        configure.pre_args-append   -DWITH_CXX11=On
70    }
71}
72
73# Don't make copies of all the QT4 libraries etc... (MUCH smaller install)
74post-configure {
75    reinplace "s/FIXUP_QT4_EXECUTABLE.*//" src/cmake_install.cmake
76}
77
78post-destroot {
79    xinstall -d ${destroot}${prefix}/share/doc/${name}
80    xinstall -W ${workpath}/${distname} COPYING LICENSE.BSD LICENSE.CC0 \
81             LICENSE.GPL-2 LICENSE.LGPL-2.1 LICENSE.LGPL-3 \
82             LICENSE.NOKIA-LGPL-EXCEPTION \
83             ${destroot}${prefix}/share/doc/${name}
84}
85
86livecheck.type          regex
87livecheck.url           ${homepage}dev/projects/keepassx/files
88livecheck.regex         keepassx-(\[-alphabet\\d\.\]+).tar.gz
Note: See TracBrowser for help on using the repository browser.