# -*- 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           github 1.0
PortGroup           python 1.0
PortGroup           app 1.0
PortGroup           active_variants 1.1

github.setup        OpenShot openshot-qt 3.1.1 v
github.tarball_from archive
checksums           rmd160  01ae2064be7e56f5c11dc155c4f8aa3035250172 \
                    sha256  2b67cb4fc78863911b0263364240947b6331a976aad74943e8f6e46221b52e91 \
                    size    95843738
homepage            https://www.openshot.org/
categories          multimedia
license             GPL-3+
maintainers         nomaintainer

description         simple and powerful video editor
long_description    Award-winning free and open-source video editor dedicated to \
                    delivering high quality video editing and animation solutions \
                    to the world.

python.versions         311
python.default_version  311
python.link_binaries    no
python.pep517           no

installs_libs           no

depends_build-append    port:py${python.version}-pyqt5
depends_run             port:py${python.version}-pyqt5 \
                        port:py${python.version}-requests \
                        port:libopenshot

require_active_variants py${python.version}-pyqt5 webkit

post-extract {
    reinplace -locale C "s|^#! */usr/bin/env python3\$|#!${python.bin}|" src/launch.py
}

post-destroot {
    file attributes ${destroot}/${python.pkgd}/openshot_qt/launch.py -permissions +x
}

app.name Openshot
app.executable ${python.pkgd}/openshot_qt/launch.py
app.icon installer/openshot.icns
app.retina yes
