# -*- 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             2025.5
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  d1db3bec1c9a6058629075a9427ad1fd524d5b09 \
                    sha256  7fb2b5370d99849e52e74e9e584b7eeb5b5a3a95493d6752c88c0d251777f4bf \
                    size    2533728

python.default_version 313

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/
}
