# -*- coding: utf-8; mode: tcl; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- 
# $Id: Portfile 106911 2013-06-11 14:40:14Z jmr@macports.org $
# vim: set fileencoding=utf-8 tabstop=8 shiftwidth=4 softtabstop=4 noexpandtab filetype=tcl :

PortSystem	    1.0
PortGroup python  1.0

name		    py-country
version		    0.10
license		    LGPL-2.1
platforms	    darwin
supported_archs	    noarch
maintainers	    openmaintainer krischik
description	    ISO country, subdivision, language, currency and script definitions and their translations
long_description    ISO country, subdivision, language, currency and script definitions and their translations

homepage	    http://pypi.python.org/pypi/pycountry
master_sites	    http://pypi.python.org/packages/source/p/pycountry
distname	    pycountry-${version}
checksums	    md5 9329f25a88573174130159b96ba8730a

python.versions	    26

if {$subport != $name} {
        depends_build	    port:py${python.version}-setuptools

        test.run	    yes
        test.cmd	    ${python.bin}
        test.target	    test.py

        post-destroot {
            foreach f [glob -directory ${worksrcpath}/ *.txt] {
                copy $f ${destroot}${prefix}/share/doc/${subport}/[file tail $f]
            }
        }
}
