Ticket #37222: 7.patch

File 7.patch, 2.7 KB (added by seanfarley (Sean Farley), 12 years ago)

py-pyobjc-cocoa: use python group

  • dports/python/py-pyobjc-cocoa/Portfile

    # 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  
    11# -*- 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
    22# $Id$
    33
    44PortSystem          1.0
    5 PortGroup           python27 1.0
     5PortGroup           python 1.0
    66
    7 name                py27-pyobjc-cocoa
     7name                py-pyobjc-cocoa
    88version             2.3
    99categories          python devel
    1010license             MIT
    1111maintainers         nomaintainer
    1212platforms           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.
    1613
    1714homepage            http://pyobjc.sourceforge.net/
    1815master_sites        http://pypi.python.org/packages/source/p/pyobjc-framework-Cocoa/
    1916distname            pyobjc-framework-Cocoa-${version}
    2017
    2118checksums           sha1    fa51fafac47f8b0bbbeb8ccad3b43f9d2e91037c \
    2219                    rmd160  0f88ab283461d642716e29e62cb67fd0f3dfc173
    2320
    24 depends_lib         port:py27-pyobjc
     21python.versions     26 27
     22python.default_version 27
    2523
    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}
     24if {$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.]+)}
    3347}
    34 
    35 livecheck.type  regex
    36 livecheck.url   http://pypi.python.org/pypi/pyobjc-framework-Cocoa/
    37 livecheck.regex {pyobjc-framework-Cocoa ([0-9.]+)}