# -*- 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                iso-codes
version             4.7.0
revision            0
checksums           rmd160  62b4ec46fba1267ca9b1ebb0feb255b86fe7eb0e \
                    sha256  bdfd06cdd77d73d491dcd57d6c946cb95a939f19f7ffc6a31f2f93923412219b \
                    size    3679988

categories          devel
platforms           any
supported_archs     noarch
license             LGPL-2.1+
maintainers         {ryandesign @ryandesign} openmaintainer

description         ISO country, language and currency codes and translations
long_description    This package aims to provide the list of the country and \
                    language (and currency) names in one place, rather than \
                    repeated in many programs.

homepage            https://salsa.debian.org/iso-codes-team/iso-codes
master_sites        debian:i/iso-codes

use_xz              yes
distfiles           ${name}_${version}.orig${extract.suffix}

set python_version  3.13

depends_build       port:gettext \
                    port:python[string map {. {}} ${python_version}]

build.env           PATH=${frameworks_dir}/Python.framework/Versions/${python_version}/bin:$env(PATH)

post-destroot {
    xinstall -d ${destroot}${prefix}/share/doc/${name}
    xinstall -m 0644 -W ${worksrcpath} ChangeLog.md COPYING README.md TODO \
        ${destroot}${prefix}/share/doc/${name}
}

livecheck.type      regex
livecheck.url       https://salsa.debian.org/iso-codes-team/iso-codes/-/tags
livecheck.regex     ${name}-(\\d+(?:\\.\\d+)*)\\.tar
