# -*- 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: Portfile 55535 2009-08-13 02:22:18Z rmsfisher@macports.org $

PortSystem          1.0

name                iso-codes
version             3.10.2
categories          devel
platforms           darwin
maintainers         nomaintainer

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        ftp://pkg-isocodes.alioth.debian.org/pub/pkg-isocodes/
use_bzip2           yes

checksums           md5     1cf0aa3d1afe4cdfe5aceff1c6a53cde \
                    sha1    9f023781413dd0add99250eeaa5ce66f8cc82500 \
                    rmd160  43f2c319c44cc24e7d78f1a26417190d8e338eed

depends_build       port:gettext

post-patch {
    reinplace "s|#!/usr/bin/env python|#!/usr/bin/python|g" \
        ${worksrcpath}/iso2pot.py
}

universal_variant   no

livecheck.check     regex
livecheck.url       ${master_sites}
livecheck.regex     "${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}"
