Ticket #37222: 3.patch

File 3.patch, 3.3 KB (added by seanfarley (Sean Farley), 11 years ago)

py-pyobjc: use python group

  • dports/python/py-pyobjc/Portfile

    # 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  
    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
     7name                py-pyobjc
    88version             2.3
    99categories          python devel
    1010license             MIT
    1111maintainers         nomaintainer
    1212platforms           darwin
     
    2525distname            pyobjc-core-${version}
    2626
    2727checksums           sha1    ef7c5489e86e5ff219e7ae15de84fe28bc1572f6 \
    2828                    rmd160  8c7b5ec7478035490bcb78193b7659ee6293c785
    2929
    30 depends_lib         port:py27-distribute \
    31                     path:${python.pkgd}/py2app/__init__.py:py27-py2app \
     30python.versions     26 27
     31python.default_version 27
     32
     33if {$subport != $name} {
     34    depends_lib     port:py${python.version}-distribute \
     35                    path:${python.pkgd}/py2app/__init__.py:py${python.version}-py2app \
    3236                    port:libxml2
    3337
    34 patchfiles          setup.py.diff
     38    patchfiles      setup.py.diff
    3539
    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.]+)}
    3868}
    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.]+)}