source: trunk/dports/python/py-country/Portfile

Last change on this file was 148976, checked in by raimue@…, 18 months ago

Mass update of python ports for master_sites pypi

The pypi hosting site changed the naming scheme for new uploads. While old URLs
continue to work, this possibly breaks updates as master_sites would need to be
changed. This patch updates all previously hardcoded references to
pypi.python.org to the pypi: mirror sites, which was already updated to check
at both the old and new location. See #51391.

Overriding maintainers as this is a mass update of ports.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
  • Property svn:mime-type set to text/x-shellscript
File size: 1.2 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
2# $Id: Portfile 148976 2016-05-24 07:48:05Z ryandesign@macports.org $
3# vim: set fileencoding=utf-8 tabstop=8 shiftwidth=4 softtabstop=4 noexpandtab filetype=tcl :
4
5PortSystem          1.0
6PortGroup python  1.0
7
8name                py-country
9version             0.10
10license             LGPL-2.1
11platforms           darwin
12supported_archs     noarch
13maintainers         openmaintainer krischik
14description         ISO country, subdivision, language, currency and script definitions and their translations
15long_description    ISO country, subdivision, language, currency and script definitions and their translations
16
17homepage            http://pypi.python.org/pypi/pycountry
18master_sites        pypi:p/pycountry
19distname            pycountry-${version}
20checksums           md5 9329f25a88573174130159b96ba8730a
21
22python.versions     26
23
24if {${name} ne ${subport}} {
25        depends_build       port:py${python.version}-setuptools
26
27        test.run            yes
28        test.cmd            ${python.bin}
29        test.target         test.py
30
31        post-destroot {
32            foreach f [glob -directory ${worksrcpath}/ *.txt] {
33                copy $f ${destroot}${prefix}/share/doc/${subport}/[file tail $f]
34            }
35        }
36}
Note: See TracBrowser for help on using the repository browser.