# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4 PortSystem 1.0 PortGroup github 1.0 PortGroup meson 1.0 name catgirl-downloader github.setup NyarchLinux CatgirlDownloader 0.2.6 revision 1 categories www graphics license GPL-3 maintainers {@barracuda156 gmail.com:vital.had} openmaintainer description GTK4 application that downloads images of catgirl long_description {*}${description} based on https://nekos.moe checksums rmd160 e3e6c3bd81327c2d74767eef86710567a4dc19f7 \ sha256 10fda0cf480b64b067a711bf8e419bd6e0d9be83783fe6a93883bc5acd5da784 \ size 7111799 github.tarball_from archive meson.wrap_mode nodownload set py_ver 3.12 set py_ver_nodot [string map {. {}} ${py_ver}] configure.python ${prefix}/bin/python${py_ver} patchfiles-append patch-use-right-python.diff post-patch { reinplace "s|@PYTHON@|${configure.python}|" ${worksrcpath}/src/meson.build } depends_build-append \ port:gettext \ path:bin/pkg-config:pkgconfig \ port:python${py_ver_nodot} depends_lib-append port:appstream-glib \ port:desktop-file-utils \ port:gettext-runtime \ path:lib/pkgconfig/glib-2.0.pc:glib2 \ path:lib/pkgconfig/gtk4.pc:gtk4 # https://trac.macports.org/ticket/70538 depends_run-append port:libadwaita \ port:py${py_ver_nodot}-gobject3 \ port:py${py_ver_nodot}-requests post-activate { system "${prefix}/bin/update-desktop-database ${prefix}/share/applications" system "${prefix}/bin/gtk4-update-icon-cache -f -t ${prefix}/share/icons/hicolor" }