Ticket #47215: Portfile

File Portfile, 1.3 KB (added by bket, 9 years ago)
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$
3
4PortSystem          1.0
5PortGroup           github 1.0
6PortGroup           qt5 1.0
7
8github.setup        openconnect openconnect-gui 1.3 v
9categories          net
10platforms           darwin
11maintainers         hydroxide.nl:bjorn.ketelaars openmaintainer
12license             GPL-2+
13
14description         GUI client for openconnect VPN
15long_description    ${description}
16
17depends_build       port:pkgconfig
18
19depends_lib         port:gnutls \
20                    port:openconnect \
21                    port:qt5-mac
22
23depends_run         port:vpnc-scripts
24
25checksums           rmd160  2ee0a3bf301b3c9af6bb3b7663875afea6f0a307 \
26                    sha256  7377a5e3de6e5b0764723d66fbd0a1d8b380ddbb5b3862714197a4ba47ee8982
27
28patchfiles          patch-common_h.diff
29
30configure.cmd       ${qt_qmake_cmd}
31configure.pre_args  PREFIX="${prefix}"
32
33post-patch {
34    reinplace -E "s|@PREFIX@|${prefix}|" ${worksrcpath}/common.h
35}
36
37destroot {
38    xinstall -d ${destroot}${applications_dir}
39    copy "${worksrcpath}/openconnect-gui.app" ${destroot}${applications_dir}
40}
41
42livecheck.url       https://github.com/openconnect/openconnect-gui/releases
43livecheck.regex     v(\[0-9.\]+)${extract.suffix}