# HG changeset patch
# User Sean Farley <sean.michael.farley@gmail.com>
# Date 1354586745 21600
# Node ID 7ad35156020450315c44046d95a6872f3e27d921
# Parent 5c09ac4d66c95b645785ba204f460bbde75441de
py-pyobjc: use python group
diff --git a/dports/python/py-pyobjc/Portfile b/dports/python/py-pyobjc/Portfile
a
|
b
|
|
1 | 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 | 2 | # $Id$ |
3 | 3 | |
4 | 4 | PortSystem 1.0 |
5 | | PortGroup python27 1.0 |
| 5 | PortGroup python 1.0 |
6 | 6 | |
7 | | name py27-pyobjc |
| 7 | name py-pyobjc |
8 | 8 | version 2.3 |
9 | 9 | categories python devel |
10 | 10 | license MIT |
11 | 11 | maintainers nomaintainer |
12 | 12 | platforms darwin |
… |
… |
|
25 | 25 | distname pyobjc-core-${version} |
26 | 26 | |
27 | 27 | checksums sha1 ef7c5489e86e5ff219e7ae15de84fe28bc1572f6 \ |
28 | 28 | rmd160 8c7b5ec7478035490bcb78193b7659ee6293c785 |
29 | 29 | |
30 | | depends_lib port:py27-distribute \ |
31 | | path:${python.pkgd}/py2app/__init__.py:py27-py2app \ |
| 30 | python.versions 26 27 |
| 31 | python.default_version 27 |
| 32 | |
| 33 | if {$subport != $name} { |
| 34 | depends_lib port:py${python.version}-distribute \ |
| 35 | path:${python.pkgd}/py2app/__init__.py:py${python.version}-py2app \ |
32 | 36 | port:libxml2 |
33 | 37 | |
34 | | patchfiles setup.py.diff |
| 38 | patchfiles setup.py.diff |
35 | 39 | |
36 | | platform darwin 12 { |
37 | | patchfiles-append patch-Modules.diff |
| 40 | platform darwin 12 { |
| 41 | patchfiles-append patch-Modules.diff |
| 42 | } |
| 43 | |
| 44 | post-destroot { |
| 45 | xinstall -W ${worksrcpath} -m 644 HISTORIC.txt Install.txt \ |
| 46 | License.txt NEWS.txt README.txt \ |
| 47 | ${destroot}${prefix}/share/doc/${subport} |
| 48 | xinstall -d ${destroot}${prefix}/share/doc/${subport}/html |
| 49 | copy ${worksrcpath}/Doc ${destroot}${prefix}/share/doc/${subport}/html |
| 50 | delete ${destroot}${prefix}/share/doc/${subport}/examples |
| 51 | copy ${worksrcpath}/Examples \ |
| 52 | ${destroot}${prefix}/share/doc/${subport}/examples |
| 53 | } |
| 54 | |
| 55 | if {${os.platform} == "darwin" && ${os.major} <= 8} { |
| 56 | depends_lib |
| 57 | pre-fetch { |
| 58 | ui_error "${name} ${version} requires OS X 10.5 or greater." |
| 59 | return -code error "incompatible OS X version" |
| 60 | } |
| 61 | } |
| 62 | |
| 63 | livecheck.type none |
| 64 | } else { |
| 65 | livecheck.type regex |
| 66 | livecheck.url http://pypi.python.org/pypi/pyobjc-core/ |
| 67 | livecheck.regex {pyobjc-core ([0-9.]+)} |
38 | 68 | } |
39 | | |
40 | | post-destroot { |
41 | | xinstall -m 644 -W ${worksrcpath} HISTORIC.txt Install.txt \ |
42 | | License.txt NEWS.txt README.txt \ |
43 | | ${destroot}${prefix}/share/doc/${name} |
44 | | copy ${worksrcpath}/Doc ${destroot}${prefix}/share/doc/${name}/html |
45 | | delete ${destroot}${prefix}/share/doc/${name}/examples |
46 | | copy ${worksrcpath}/Examples \ |
47 | | ${destroot}${prefix}/share/doc/${name}/examples |
48 | | } |
49 | | |
50 | | if {${os.platform} == "darwin" && ${os.major} <= 8} { |
51 | | depends_lib |
52 | | pre-fetch { |
53 | | ui_error "${name} ${version} requires OS X 10.5 or greater." |
54 | | return -code error "incompatible OS X version" |
55 | | } |
56 | | } |
57 | | |
58 | | livecheck.type regex |
59 | | livecheck.url http://pypi.python.org/pypi/pyobjc-core/ |
60 | | livecheck.regex {pyobjc-core ([0-9.]+)} |