# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4

PortSystem              1.0
PortGroup               github 1.0
PortGroup               qmake 1.0

github.setup            IJHack QtPass 1.8.0 v
revision                0
categories              aqua security sysutils
license                 GPL-3+
maintainers             nomaintainer

description \
    QtPass is a multi-platform GUI for pass, the standard unix password manager.
long_description \
    QtPass is part of the pass ecosystem. This means you are not stuck with \
    QtPass, you can use the same password store with many clients. \
    \
    Contrary to many Free, Libre and OpenSource password managers, pass and by \
    extension QtPass are not bound to one user or device. Since we are based on \
    GnuPG we have multi-key, multi recipient encryption out of the box. The use \
    of external encryption devices like OpenPGP or x509/CMS based smartcards or \
    USB tokens and per-folder ACL makes it easy to grant or take away privileges \
    from users.

homepage                https://qtpass.org

github.tarball_from     releases
checksums               rmd160  8165796025c11ce0f2f3155de53be18d051c32d4 \
                        sha256  0907e2a7d362dac0c45989aee88afc811eb3777e4007f4a0fdcbd7292b9a98c1 \
                        size    1697091

# Qt4 port: string-form connects, a QRegExp-backed QRegularExpression
# and a few other Qt5 API shims under src/qt4/, lrelease-driven translations.
patch.pre_args-replace  -p0 -p1
patchfiles              0001-build-qt4.patch \
                        0002-src-qt4.patch \
                        0003-tests-qt4.patch \
                        0004-qt4-macos-locale.patch

compiler.cxx_standard   2017

configure.args-append   CONFIG+=release

destroot {
    copy ${worksrcpath}/main/${name}.app ${destroot}${applications_dir}
}

test.run                yes
test.target             check

github.livecheck.regex  {^v?[0-9.]+)}
