source: trunk/dports/python/py-autopep8/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.8 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
6PortGroup           select 1.0
7
8name                py-autopep8
9set realname        autopep8
10version             1.2.1
11categories-append   devel
12platforms           darwin
13supported_archs     noarch
14license             MIT
15maintainers         gmail.com:patrik.hartlen openmaintainer
16
17description         A tool that automatically formats Python code to \
18                    conform to the PEP 8 style guide
19long_description    autopep8 formats Python code based on the output \
20                    of the pep8_ utility.
21
22homepage            http://pypi.python.org/pypi/${realname}
23
24master_sites        pypi:a/${realname}
25distname            ${realname}-${version}
26
27checksums           md5     4167555f521ddd69b66f13819604f3db \
28                    rmd160  175a0f1fc4a79073bca99ab3a87f87f07aa54af9 \
29                    sha256  d0a7cdc397e46be0d91a968acb3f561cc1b9244f5df94a2514cf32acfc8a2e94
30
31python.versions     27 34 35
32
33if {${name} ne ${subport}} {
34    depends_build           port:py${python.version}-setuptools
35    depends_run-append      \
36        port:${realname}_select \
37        path:${python.pkgd}/pep8:py${python.version}-pep8
38
39    select.group            ${realname}
40    select.file             ${filespath}/${realname}-${python.version}
41    notes "
42To make the Python ${python.branch} version of autopep8 the one that is run\
43when you execute the commands without a version suffix, e.g. 'autopep8', run:
44
45    port select --set ${select.group} [file tail ${select.file}]
46"
47
48    livecheck.type  none
49} else {
50    livecheck.type  regex
51    livecheck.url   https://pypi.python.org/pypi/${realname}/json
52    livecheck.regex "\"${realname}-(\[.\\d\]+)\\${extract.suffix}\""
53}
Note: See TracBrowser for help on using the repository browser.