# HG changeset patch
# User Sean Farley <sean.michael.farley@gmail.com>
# Date 1354588775 21600
# Node ID 3b7ebcb2c263228c988e251f279b4b64ff1a9e9a
# Parent ad432c056ad0eb8b8127d2918c609d0c7275c988
py-pyobjc-cocoa: use python group
diff --git a/dports/python/py-pyobjc-cocoa/Portfile b/dports/python/py-pyobjc-cocoa/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-cocoa |
| 7 | name py-pyobjc-cocoa |
8 | 8 | version 2.3 |
9 | 9 | categories python devel |
10 | 10 | license MIT |
11 | 11 | maintainers nomaintainer |
12 | 12 | platforms darwin |
13 | | description cocoa wrappers for py27-pyobjc |
14 | | long_description This port provides the CoreFoundation, Foundation and \ |
15 | | AppKit wrappers for use with py27-pyobjc. |
16 | 13 | |
17 | 14 | homepage http://pyobjc.sourceforge.net/ |
18 | 15 | master_sites http://pypi.python.org/packages/source/p/pyobjc-framework-Cocoa/ |
19 | 16 | distname pyobjc-framework-Cocoa-${version} |
20 | 17 | |
21 | 18 | checksums sha1 fa51fafac47f8b0bbbeb8ccad3b43f9d2e91037c \ |
22 | 19 | rmd160 0f88ab283461d642716e29e62cb67fd0f3dfc173 |
23 | 20 | |
24 | | depends_lib port:py27-pyobjc |
| 21 | python.versions 26 27 |
| 22 | python.default_version 27 |
25 | 23 | |
26 | | post-destroot { |
27 | | xinstall -m 644 -W ${worksrcpath} \ |
28 | | LICENSE.txt README.txt \ |
29 | | ${destroot}${prefix}/share/doc/${name} |
30 | | copy ${worksrcpath}/Examples \ |
31 | | ${destroot}${prefix}/share/doc/${name}/examples |
32 | | copy ${worksrcpath}/Doc ${destroot}${prefix}/share/doc/${name} |
| 24 | if {$subport != $name} { |
| 25 | description cocoa wrappers for py${python.version}-pyobjc |
| 26 | long_description \ |
| 27 | This port provides the CoreFoundation, Foundation and \ |
| 28 | AppKit wrappers for use with py${python.version}-pyobjc. |
| 29 | |
| 30 | depends_lib port:py${python.version}-pyobjc |
| 31 | |
| 32 | post-destroot { |
| 33 | xinstall -m 644 -W ${worksrcpath} \ |
| 34 | LICENSE.txt README.txt \ |
| 35 | ${destroot}${prefix}/share/doc/${subport} |
| 36 | copy ${worksrcpath}/Examples \ |
| 37 | ${destroot}${prefix}/share/doc/${subport}/examples |
| 38 | copy ${worksrcpath}/Doc ${destroot}${prefix}/share/doc/${subport} |
| 39 | } |
| 40 | |
| 41 | livecheck.type none |
| 42 | |
| 43 | } else { |
| 44 | livecheck.type regex |
| 45 | livecheck.url http://pypi.python.org/pypi/pyobjc-framework-Cocoa/ |
| 46 | livecheck.regex {pyobjc-framework-Cocoa ([0-9.]+)} |
33 | 47 | } |
34 | | |
35 | | livecheck.type regex |
36 | | livecheck.url http://pypi.python.org/pypi/pyobjc-framework-Cocoa/ |
37 | | livecheck.regex {pyobjc-framework-Cocoa ([0-9.]+)} |