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

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  6b581068368f557667b30b885e1c7ff710be0bcd \
                    sha256  c1fa83184ffa9de0c60c7a2ba2a74bab64142b6dcfd8b93e6f4cc75342c35dc4 \
                    size    1570772

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
