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

github.setup        jendrikseipp rednotebook 2.42 v
github.tarball_from archive
categories-prepend  office
license             GPL-2+
maintainers         nomaintainer
description         RedNotebook is a modern desktop journal
long_description    {*}${description}. It lets you format, tag and search \
                    your entries. You can also add pictures, links and customizable \
                    templates, spell check your notes, and export to plain text, \
                    HTML, Latex or PDF.

supported_archs     noarch
platforms           {darwin any}

checksums           rmd160  bc2276bb6dd33aff67d64c432c2c228b19e7cb8b \
                    sha256  f0eddb338a74c5819000a6be16ef24b2821f9e60f86b3505f93f9a5bd2e3e9b2 \
                    size    2286219

python.default_version 310
python.pep517       yes

depends_lib-append  path:lib/pkgconfig/gtk+-3.0.pc:gtk3 \
                    path:lib/pkgconfig/webkit2gtk-4.1.pc:webkit2-gtk \
                    port:gtksourceview3 \
                    port:py${python.version}-enchant \
                    port:py${python.version}-gobject3 \
                    port:py${python.version}-yaml

post-destroot {
    xinstall -m 644 -W ${worksrcpath} CHANGELOG.md LICENSE README.md \
        ${destroot}${prefix}/share/doc/${name}
}
