# -*- 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.10.0
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  67e7c573b940292bf4a9d2efd198291825d281d1 \
                    sha256  b344286e84143e6613e9f433f1e887c24e33c2320a0c597342ec1cbd35eb8e68 \
                    size    35971235

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
}
