# -*- 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

PortSystem          1.0
PortGroup           app 1.0
PortGroup           github 1.0
PortGroup           qmake5 1.0

github.setup        francescmm gitqlient 1.4.3 v
github.tarball_from archive
revision            0
categories          devel
license             LGPL-2.1

maintainers         {harens @harens} openmaintainer

description         Multi-platform Git client written with Qt
long_description    GitQlient, pronounced as git+client, is a multi-platform Git \
                    client originally forked from QGit. Nowadays it goes beyond of just a fork and \
                    adds a lot of new functionality.

# Don't use ${name} in homepage - different url.
homepage            https://francescmm.github.io/GitQlient/

checksums           rmd160  7e35fde124bc36ae07346f0578cb3f8ca7111e79 \
                    sha256  28de5df9866a6ad6639b0f4b46cac0066a30e27a4898c92c25d4e191c23e035a \
                    size    4477433

qt5.depends_component \
                    qtwebengine

configure.args-append \
                    GitQlient.pro \
                    VERSION=${version}

depends_run         port:git

# Generate app from executable since bundled app has some runtime issues.
destroot {
    xinstall -m 0755 ${worksrcpath}/${name}.app/Contents/MacOS/${name} ${destroot}${prefix}/bin/
}

app.name            GitQlient
app.icon            src/resources/icon.icns
app.identifier      org.${name}.${name}
app.retina          yes
