# -*- 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.3
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  ab26d274d4d6cd3e5da1128d8662bf5da1b2770d \
                    sha256  2fdb4f0f6b61184ab862fcfb41dafe1a795636de9fd8d21a8ca4feea3b6bf858 \
                    size    2533727

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