source: trunk/dports/python/py-pyobjc-cocoa/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.6 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-pyobjc-cocoa
8python.rootname     pyobjc-framework-Cocoa
9version             3.0.4
10categories-append   devel
11platforms           darwin
12license             MIT
13maintainers         nomaintainer
14
15description         cocoa wrappers for PyObjC
16long_description    This port provides the CoreFoundation, Foundation \
17                    and AppKit wrappers for use with PyObjC.
18homepage            http://pyobjc.sourceforge.net/
19
20master_sites        pypi:p/${python.rootname}/
21distname            ${python.rootname}-${version}
22
23checksums           rmd160  f3055447c484aecd164891c9200710e74c352153 \
24                    sha256  e90849433dab2ea02b393ced2ca02822dc9d98aba46311ee3ea971ad19e947cc
25
26python.versions     27 34 35
27
28if {${name} ne ${subport}} {
29    depends_lib     port:py${python.version}-pyobjc
30
31    platform darwin 8 {
32        depends_fetch
33        depends_lib
34        pre-fetch {
35            return -code error "PyObjC 2 requires Mac OS X 10.5 or later"
36        }
37    }
38
39    post-destroot {
40        xinstall -m 644 -W ${worksrcpath} \
41            LICENSE.txt README.txt \
42            ${destroot}${prefix}/share/doc/${subport}
43        copy ${worksrcpath}/Examples \
44            ${destroot}${prefix}/share/doc/${subport}/examples
45        copy ${worksrcpath}/Doc ${destroot}${prefix}/share/doc/${subport}
46    }
47
48    livecheck.type  none
49} else {
50    livecheck.type  pypi
51}
Note: See TracBrowser for help on using the repository browser.