# -*- 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           cmake 1.1
PortGroup           github 1.0
PortGroup           qt5 1.0

github.setup        vnotex vnote 2.10 v
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball
revision            0

categories          editors
maintainers         nomaintainer
license             MIT

description         A note-taking application, focusing on Markdown

long_description    VNote is a Qt-based, free and open source note-taking application, focusing on Markdown.

homepage            https://vnotex.github.io/vnote/
fetch.type          git

post-fetch {
    system -W ${worksrcpath} "git submodule update --init"
}

qt5.depends_component \
                    qtsvg qtwebchannel qtwebengine

patchfiles          CMakeLists.txt.patch

cmake.install_prefix ${applications_dir}

post-build {
    file mkdir ${build.dir}/src/VNote.app/Contents/Resources
    copy ${worksrcpath}/src/resources/icons/vnote.icns \
        ${build.dir}/src/VNote.app/Contents/Resources
}
