source: trunk/dports/python/py-pyobjc/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: 2.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-pyobjc
8version         3.0.4
9categories-append     devel
10license         MIT
11maintainers     nomaintainer
12platforms       darwin
13description     bidirectional bridge between python and Objective C
14long_description    The PyObjC project aims to provide a bridge between \
15                the Python and Objective-C programming languages. The \
16                bridge is intended to be fully bidirectional, allowing \
17                the Python programmer to take full advantage of the \
18                power provided by various Objective-C based toolkits \
19                and the Objective-C programmer transparent access to \
20                Python based functionality.
21
22homepage        http://pyobjc.sourceforge.net/
23master_sites    pypi:p/pyobjc-core/
24distname        pyobjc-core-${version}
25
26checksums       rmd160  12ee6d8132c59420c768dafdb2ee73f17ea97cc1 \
27                sha256  a4708886ff7844ff7537c60d14e903014a90b3e3cdbad5e717acfcbe150768b7
28
29python.versions 27 34 35
30
31if {${name} ne ${subport}} {
32    depends_lib     port:py${python.version}-setuptools \
33                    port:py${python.version}-py2app
34
35    set readme_name README.txt
36
37    # Note: see upstream ticket https://bitbucket.org/ronaldoussoren/pyobjc/issue/100/cannot-find-interface-declaration-for
38    platform darwin 11 {
39        patchfiles-append               patch-Modules-${version}.diff
40    }
41    platform darwin 12 {
42        patchfiles-append               patch-Modules-${version}.diff
43    }
44
45    platform darwin 8 {
46        depends_lib
47        pre-fetch {
48            return -code error "PyObjC 2 requires Mac OS X 10.5 or later"
49        }
50    }
51
52    post-destroot {
53        xinstall -m 644 -W ${worksrcpath} HISTORIC.txt Install.txt \
54            License.txt NEWS.txt $readme_name \
55            ${destroot}${prefix}/share/doc/${subport}
56        copy ${worksrcpath}/Doc ${destroot}${prefix}/share/doc/${subport}/html
57        delete ${destroot}${prefix}/share/doc/${subport}/examples
58        copy ${worksrcpath}/Examples \
59            ${destroot}${prefix}/share/doc/${subport}/examples
60    }
61
62    livecheck.type  none
63} else {
64    livecheck.type  regex
65    livecheck.url   https://pypi.python.org/pypi/pyobjc-core/
66    livecheck.regex {pyobjc-core ([0-9.]+)}
67}
Note: See TracBrowser for help on using the repository browser.