# -*- 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
# $Id$

PortSystem          1.0

name                iso-codes
version             3.70
categories          devel
platforms           darwin
supported_archs     noarch
license             LGPL-2.1+
maintainers         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            http://pkg-isocodes.alioth.debian.org/
master_sites        ${homepage}downloads/
use_xz              yes

checksums           rmd160  23d9723a8d5a3c6209da2bdf3abc04c7f83a50c0 \
                    sha256  41e2fbaec2ed57e767b94f175d0dcd31b627aeb23b75cd604605a6fb6109d61f

depends_build       port:gettext \
                    port:python35

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

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

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