# -*- 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                gi-docgen
version             2026.1
revision            0

categories          gnome python
supported_archs     noarch
platforms           {darwin any}
license             {Apache-2 GPL-3+}
installs_libs       no
maintainers         {judaew @judaew} openmaintainer

description         Documentation tool for GObject-based libraries
long_description    {*}${description}
homepage            https://gitlab.gnome.org/GNOME/gi-docgen

python.rootname     gi_docgen

checksums           rmd160  4b574dd55bfc0089cdc2ec92e5ac1d36cb3f9c4a \
                    sha256  65ac3c4f2b4255d1c616fb8eae55139b6ca10071545ca2272759ffd2ccf2c7b5 \
                    size    2533823

python.default_version 314

depends_build-append    port:py${python.version}-setuptools
depends_lib-append      port:py${python.version}-jinja2 \
                        port:py${python.version}-markdown \
                        port:py${python.version}-markupsafe \
                        port:py${python.version}-packaging \
                        port:py${python.version}-pygments \
                        port:py${python.version}-toml \
                        port:py${python.version}-typogrify

post-destroot {
    ln -s ${python.prefix}/share/man/man1/gi-docgen.1 \
        ${destroot}${prefix}/share/man/man1/
    ln -s ${python.prefix}/share/pkgconfig/gi-docgen.pc \
        ${destroot}${prefix}/lib/pkgconfig/
}
