Ticket #26559: patch-py26-pyclutter-1.0.2.diff

File patch-py26-pyclutter-1.0.2.diff, 2.3 KB (added by dbevans (David B. Evans), 14 years ago)

Proposed patch for Portfile

  • Portfile

     
    44PortSystem      1.0
    55
    66name            py26-pyclutter
    7 version         0.9.2
    8 distname        pyclutter-${version}
     7set my_name     pyclutter
     8version         1.0.2
     9distname        ${my_name}-${version}
    910set branch      [string range $version 0 [expr [string last "." $version] - 1]]
    1011categories      python graphics
    1112description     Python bindings for Clutter 1.0.
     
    1415maintainers     nodamage.com:nodamage
    1516platforms       darwin
    1617homepage        http://www.clutter-project.org/
    17 master_sites    http://www.clutter-project.org/sources/pyclutter/${branch}/
     18master_sites    http://www.clutter-project.org/sources/${my_name}/${branch}/
    1819
    19 checksums       md5     c848543847191ab62361d3c705567d52 \
    20                 sha1    b67ba376bcc14b97364cf730776e9523d4d76de3 \
    21                 rmd160  bba1fe67ab4d6dae71d2e5a849e7042ebc0a9c42
     20checksums       md5     9bd6a73bba4a40e5dc79003ccb6bc6a7 \
     21                sha1    819d4ec117f5a41939fbb18c8e2b308099888f04 \
     22                rmd160  8b4c89cb701354b62454cf3738c5a55c51c7ca1e
    2223
    2324depends_build \
    2425    port:pkgconfig \
     
    4647configure.python    ${prefix}/bin/python2.6
    4748
    4849configure.env-append PYGOBJECT_CODEGEN=${prefix}/Library/Frameworks/Python.framework/Versions/2.6/bin/pygobject-codegen-2.0
     50
     51post-destroot {
     52    set docdir ${prefix}/share/doc/${name}
     53    xinstall -d ${destroot}${docdir}
     54    xinstall -m 0644 -W ${worksrcpath} AUTHORS COPYING ChangeLog NEWS README \
     55        ${destroot}${docdir}
     56    xinstall -d ${destroot}${prefix}/share/gtk-doc/html
     57    system "ln -s ${python_prefix}/share/${my_name} ${destroot}${prefix}/share/${my_name}26"
     58# devhelp requires gtk-doc directory name  and .devhelp file name (less the .devhelp) to match
     59    file rename ${destroot}${python_prefix}/share/gtk-doc/html/${my_name}/${my_name}.devhelp \
     60                ${destroot}${python_prefix}/share/gtk-doc/html/${my_name}/${my_name}26.devhelp
     61    system "ln -s ${python_prefix}/share/gtk-doc/html/${my_name} ${destroot}${prefix}/share/gtk-doc/html/${my_name}26"
     62}
     63
     64livecheck.type      regex
     65livecheck.url       ${master_sites}
     66livecheck.regex     "${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}"