source: trunk/dports/python/py-google-api/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
6
7name                py-google-api
8set realname        google-api-python-client
9version             1.5.0
10revision            1
11
12python.versions     27 34 35
13
14categories-append   www devel
15maintainers         nomaintainer
16license             Apache-2 MIT
17description         client library for accessing the Plus, Moderator, and many \
18                    other Google APIs
19long_description    ${description}
20
21platforms           darwin
22supported_archs     noarch
23
24homepage            http://pypi.python.org/pypi/${realname}
25master_sites        pypi:g/${realname}/
26distname            ${realname}-${version}
27
28checksums           rmd160  c6cbb670bd402e9b466e404c709d3655a5e861e7 \
29                    sha256  ffb89782c74702bd47d217709741717f0e4812d87f6cea04783f991d3eb51abd
30
31if {${name} ne ${subport}} {
32    depends_build           port:py${python.version}-setuptools
33    depends_lib-append      port:py${python.version}-httplib2 \
34                            port:py${python.version}-six \
35                            port:py${python.version}-uritemplate \
36                            port:py${python.version}-oauth2client
37
38    post-destroot {
39        delete ${destroot}${python.pkgd}/uritemplate
40        delete ${destroot}${python.pkgd}/oauth2client
41
42        set egg-info ${destroot}${python.pkgd}/google_api_python_client-${version}-py${python.branch}.egg-info
43        foreach d [glob -dir ${egg-info} *] {
44            file attributes ${d} -permissions 0644
45        }
46
47        xinstall -d -m 555 ${destroot}${prefix}/share/examples
48    }
49    livecheck.type  none
50} else {
51    livecheck.type      pypi
52    livecheck.name      ${realname}
53}
Note: See TracBrowser for help on using the repository browser.