source: trunk/dports/python/py-pep8/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
8set realname        pep8
9
10name                py-pep8
11
12version             1.7.0
13categories-append   devel
14platforms           darwin
15supported_archs     noarch
16license             MIT
17maintainers         gmail.com:patrik.hartlen openmaintainer
18
19description         Python style guide checker
20long_description    pep8 is a tool to check your Python code against \
21                    some of the style conventions in PEP 8 \
22                    (http://www.python.org/dev/peps/pep-0008/)
23
24homepage            https://pypi.python.org/pypi/${realname}/
25
26master_sites        pypi:p/${realname}/
27distname            ${realname}-${version}
28
29checksums           md5     2b03109b0618afe3b04b3e63b334ac9d \
30                    rmd160  bca97f9cd30b21ce1f765b1f4f520747443b5d3e \
31                    sha256  a113d5f5ad7a7abacef9df5ec3f2af23a20a28005921577b15dd584d099d5900
32
33python.versions     27 34 35
34
35if {${name} ne ${subport}} {
36    depends_lib-append      port:py${python.version}-setuptools
37    depends_run-append      port:${realname}_select
38    select.group            ${realname}
39    select.file             ${filespath}/${realname}-${python.version}
40    notes "
41To make the Python ${python.branch} version of pep8 the one that is run\
42when you execute the commands without a version suffix, e.g. 'pep8', run:
43
44port select --set ${select.group} [file tail ${select.file}]
45"
46
47    livecheck.type  none
48} else {
49    livecheck.type  regex
50    livecheck.url   https://pypi.python.org/pypi/${realname}/json
51    livecheck.regex "${realname}-(\\d+(\\.\\d+)+)\\${extract.suffix}"
52}
Note: See TracBrowser for help on using the repository browser.