source: trunk/dports/python/py-chardet/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.2 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        chardet
8
9name                py-${realname}
10version             2.3.0
11categories-append   devel textproc
12license             LGPL-2.1+
13platforms           darwin
14supported_archs     noarch
15maintainers         aronnax openmaintainer
16description         Universal character encoding detector
17long_description    Character encoding auto-detection in Python. \
18                    As smart as your browser.
19
20homepage            https://pypi.python.org/pypi/${realname}/
21master_sites        pypi:[string index ${realname} 0]/${realname}
22distname            ${realname}-${version}
23
24checksums           rmd160  b68ed94bccfd97f23cc0a6288ee8c7914f4c7d04 \
25                    sha256  e53e38b3a4afe6d1132de62b7400a4ac363452dc5dfcf8d88e8e0cce663c68aa
26
27python.versions     26 27 33 34 35
28
29if {${name} ne ${subport}} {
30    depends_build-append \
31                    port:py${python.version}-setuptools
32
33    livecheck.type  none
34} else {
35    livecheck.type  regex
36    livecheck.regex [format "%s-%s" ${realname} {(\d+(?:\.\d+)*)}]
37}
Note: See TracBrowser for help on using the repository browser.