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

name                texlive-tlpdb
version             2025.74524

categories          tex
maintainers         {dports @drkp}
description         TeX Live package database (for scripts)
long_description    This port provides the TeX Live package database \
                    to support scripts such as texdoc that require it

homepage            http://www.tug.org/texlive/
platforms           any
supported_archs     noarch
license             Permissive

master_sites        https://www.ambulatoryclam.net/texlive/

use_xz              yes

checksums           rmd160  cc8307c7fbcc6e8c624b1777f63d14089a599ca7 \
                    sha256  d47f2ee1f57933bd417ce734c7f3fcd0cf49d3e8b33d4912d5e968ade4be8cdc \
                    size    1525592

livecheck.type  regex
livecheck.url   [lindex ${master_sites} 0]
livecheck.regex ${name}-(\[\\d-\]+(?:\\.\\d+)?)\\.tar


use_configure   no

build           { }

destroot {
    xinstall -d ${destroot}${prefix}/share/tlpkg
    xinstall ${worksrcpath}/texlive.tlpdb ${destroot}${prefix}/share/tlpkg
}

livecheck.type none
