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

name                rednotebook
version             2.25
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}

homepage            https://rednotebook.sourceforge.io/
master_sites        sourceforge:project/rednotebook

checksums           md5 7bc49fcae2e6816756a3375e1a007da6 \
                    sha1 ef72ff66139d097f70ba5b2ca801cab023aec5fd \
                    rmd160 606dbc24b2c0b1c06a2502fd75e06744bea5d8bb \
                    sha256 28a8226c3b0d06e6a7eaee6a04db95e5e9a5559f322a243966aecb3288d6484c

python.default_version 310
python.pep517       yes
                    
depends_lib-append  path:lib/pkgconfig/gtk+-3.0.pc:gtk3 \
                    path:lib/pkgconfig/webkit2gtk-4.0.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}
}

livecheck.regex     /${name}-(\[0-9.\]+)${extract.suffix}
