source: trunk/dports/python/py-roman/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
File size: 1.5 KB
Line 
1# -*- 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
2# $Id: Portfile 148976 2016-05-24 07:48:05Z ryandesign@macports.org $
3
4PortSystem 1.0
5PortGroup python 1.0
6
7set realname        roman
8name                py-${realname}
9version             2.0.0
10python.versions     26 27 33 34 35
11categories-append   textproc
12license             PSF-2.1.1
13platforms           darwin
14supported_archs     noarch
15maintainers         aronnax openmaintainer
16description         Integer to Roman numerals converter
17long_description    ${description}
18homepage            http://pypi.python.org/pypi/${realname}/
19master_sites        pypi:[string index ${realname} 0]/${realname}/
20distname            ${realname}-${version}
21use_zip             yes
22
23checksums           md5     aa71d131eec16d45c030fd06a27c9d17 \
24                    sha1    7fd136f80cf780bbf802ffe1c4989a64ff469c75 \
25                    rmd160  a8ca66d5fafd340986a45332d861d6bae259fe1e
26
27if {${name} eq ${subport}} {
28    livecheck.type  regex
29    livecheck.regex [format "%s-%s" ${realname} {(\d+(?:\.\d+)*)}]
30} else {
31    depends_build   port:py${python.version}-setuptools
32
33    pre-activate {
34        if {[file exists ${python.pkgd}/roman.py]
35            && ![catch {set vers [lindex [registry_active py${python.version}-docutils] 0]}]
36            && [vercmp [lindex $vers 1] 0.6] < 0} {
37            registry_deactivate_composite py${python.version}-docutils "" [list ports_nodepcheck 1]
38        }
39    }
40
41    livecheck.type  none
42}
Note: See TracBrowser for help on using the repository browser.