# -*- 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

name                kid3
version             3.9.7
revision            0

categories          audio
supported_archs     x86_64
license             GPL
maintainers         {judaew @judaew} openmaintainer

description         An Audio Tagger
long_description    \
    If you want to easily tag multiple MP3, Ogg/Vorbis, FLAC, Monkey’s Audio, \
    MPC, MP4/AAC, MP2, Opus, Speex, TrueAudio, WavPack, WMA/WMV, WAV and AIFF \
    files (e.g. full albums) without typing the same information again and \
    again and have control over both ID3v1 and ID3v2 tags, then Kid3 is the \
    program you are looking for.
homepage            https://kid3.kde.org/

master_sites        sourceforge:kid3
distname            ${name}-${version}-Darwin-amd64
use_dmg             yes

checksums           rmd160  65fd2bdf5113c86da01612c629c946a970e9a392 \
                    sha256  11d9f03e34c40434972a5073f7e385931a41513345cb032d212c4a1372caf4f8 \
                    size    33393485

use_configure       no
build {}

variant no_extensions description \
    {Disable overriding the extensions to open media files by default} {
    patchfiles      patch-disable-CFBundleTypeExtensions.diff
}

default_variants +no_extensions

destroot {
    move ${worksrcpath}/kid3.app ${destroot}${applications_dir}
    ln -s ${applications_dir}/kid3.app/Contents/MacOS/kid3-cli \
        ${destroot}${prefix}/bin/kid3-cli
}
