# -*- 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
PortGroup           github 1.0 

github.setup        jvoisin mat2 0.14.0                    
github.tarball_from archive

name                mat2
revision            0
categories-prepend  multimedia
license             LGPL-3
supported_archs     noarch
platforms           {darwin any}
maintainers         {@akierig fastmail.de:akierig} \
                    openmaintainer

description         metadata removal tool
long_description    mat2 is a metadata removal tool, supporting a wide range \
                    of commonly used file formats, written in python3.
homepage            https://github.com/jvoisin/mat2

checksums           rmd160  1093685b62e90489fb1113f1cfe89fee620a8423 \
                    sha256  bf15251cb249a6028fd8532d31388b296dffc28c90782fcc0e7ba6f56354f4c5 \
                    size    11544055

python.default_version 314

depends_lib-append  port:py${python.version}-cairo \
                    port:py${python.version}-mutagen \
                    port:py${python.version}-gobject3 \
                    path:lib/pkgconfig/gdk-pixbuf-2.0.pc:gdk-pixbuf2 \
                    path:lib/pkgconfig/librsvg-2.0.pc:librsvg

depends_run-append  port:exiftool \
                    path:lib/libavcodec.dylib:ffmpeg8

post-destroot {
    ln -s ${python.prefix}/man/man1/mat2.1 ${destroot}${prefix}/share/man/man1/mat2.1
}
