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

Last change on this file was 148976, checked in by raimue@…, 16 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.3 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
7name                py-robotframework
8set internal_name   robotframework
9
10version             3.0
11license             Apache-2
12
13categories-append   devel
14maintainers         jwa
15description         ATDD framework
16long_description    ATDD framework with plugins
17
18homepage        http://robotframework.org/
19
20checksums           rmd160  1d4f5234ee63963f33042fddb96ff23941fed3af \
21                    sha256  cd16f5f83031b8a754ca0a7523ce10b5046a17f3b9422626804ec05b7c501c87
22
23platforms           darwin
24python.versions         26 27 34
25python.default_version  27
26
27universal_variant       yes
28
29master_sites        pypi:r/robotframework
30distname            ${internal_name}-${version}
31
32
33if {${name} ne ${subport}} {
34    post-destroot               {
35        reinplace "s;${destroot};;" ${destroot}${python.prefix}/bin/pybot
36        reinplace "s;${destroot};;" ${destroot}${python.prefix}/bin/rebot
37    }
38}
39
40if {${name} eq ${subport}} {
41    livecheck.type     regex
42    livecheck.url      https://pypi.python.org/pypi/robotframework
43    livecheck.regex    ${internal_name}-(\[3-9\]\\.\[0-9.\]+)\\.tar\\.\[bg\]z
44} else {
45    livecheck.type      none
46}
Note: See TracBrowser for help on using the repository browser.