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

name                tubeup
version             2025.5.11
revision            0

categories-append   multimedia
platforms           {darwin any}
supported_archs     noarch
license             GPL-3+
maintainers         nomaintainer

description         VOD service to Archive.org uploader
long_description    Use yt-dlp to download video and upload to the Internet Archive with metadata.

homepage            https://github.com/bibanon/tubeup

checksums           rmd160  0557aacb08786b94beec59a0db23d1dac7f75caa \
                    sha256  2d9fe436dc394f0dcfb6a429e03ab6a8e7978287c80f9ba916fa4b317508ba23 \
                    size    58191

python.default_version 313

require_active_variants yt-dlp ffmpeg

depends_lib-append  port:internetarchive \
                    port:py${python.version}-docopt \
                    port:yt-dlp

notes "
You need to configure your Internet Archive account with \"ia configure\" before you can upload.

Tubeup sets the mediatype metadata to \"movies\" by default. Mediatype cannot be changed after upload; if you need to set this to somthing else use \"--metadata=<key:value>\"
"
