source: trunk/dports/python/py-oauth2client/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.4 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-oauth2client
8set realname        oauth2client
9version             2.0.2
10
11python.versions     27 34 35
12
13categories-append   www
14maintainers         nomaintainer
15license             Apache-2
16description         client library for OAuth 2.0
17long_description    ${description}
18
19platforms           darwin
20supported_archs     noarch
21
22homepage            http://pypi.python.org/pypi/${realname}
23master_sites        pypi:o/${realname}
24distname            ${realname}-${version}
25
26checksums           rmd160 b8f80c2d87718e7db5d8ce4bd05957c365e730a8 \
27                    sha256 c9f7bf68e9d0f9ec055f1f2f487e5ea53b97b7a2b82f01d48d9a9bb68239535a
28
29if {${name} ne ${subport}} {
30    depends_build-append port:py${python.version}-setuptools
31    depends_lib-append   port:py${python.version}-httplib2 \
32                         port:py${python.version}-uritemplate
33
34    post-destroot {
35        delete ${destroot}${python.pkgd}/uritemplate
36
37        set egg-info ${destroot}${python.pkgd}/${realname}-${version}-py${python.branch}.egg-info
38        foreach d [glob -dir ${egg-info} *] {
39            file attributes ${d} -permissions 0644
40        }
41    }
42    livecheck.type      none
43} else {
44    livecheck.type      pypi
45    livecheck.name      ${realname}
46}
Note: See TracBrowser for help on using the repository browser.