Ticket #56138: Portfile-py-pdfrw.2.diff

File Portfile-py-pdfrw.2.diff, 2.1 KB (added by numeratus, 6 years ago)

Portfile patch (update)

  • Portfile

    old new  
    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
    33PortSystem          1.0
     4PortGroup           github 1.0
    45PortGroup           python 1.0
    56
    67name                py-pdfrw
    7 version             0.1
     8
     9github.setup        pmaupin pdfrw 0.4 v
     10
    811categories-append   graphics
     12
    913platforms           darwin
    1014supported_archs     noarch
    1115license             MIT
    12 maintainers         nomaintainer
     16maintainers         {guenael.com:macports @numeratus} \
     17                    openmaintainer
     18
     19python.versions     27 34 36
    1320
    1421description         Pure Python PDF file reader/writer library
    1522long_description    pdfrw lets you read and write PDF files, including \
     
    1724                    watermarking, or to copy an image or diagram from \
    1825                    one PDF to another), and can output by itself, or \
    1926                    in conjunction with reportlab.
    20 homepage            https://code.google.com/p/pdfrw
    2127
    22 master_sites        googlecode:pdfrw
    23 distname            pdfrw_${version}
    24 checksums           rmd160  108ebcbc7c422b663aa917306a6c6bd3f066f679 \
    25                     sha256  4dbb4017b179f1ecee947501d178a90e1ff0aaf6444ef24b5a630ee68e884919
    26 
    27 python.versions     27
    28 
    29 if {${name} ne ${subport}} {
    30     # Set this conditionally, or the stub port picks up an unnecessary
    31     # extract dependency.
    32     use_zip         yes
    33 
    34     post-destroot {
    35         xinstall -m 755 -d \
    36             ${destroot}${prefix}/share/doc/${subport} \
    37             ${destroot}${prefix}/share/examples
    38         xinstall -m 644 -W ${worksrcpath} LICENSE.txt README.txt \
    39             ${destroot}${prefix}/share/doc/${subport}
    40         copy ${worksrcpath}/examples \
    41             ${destroot}${prefix}/share/examples/${subport}
    42     }
     28homepage            https://github.com/pmaupin/pdfrw
     29
     30checksums           rmd160  cd7d040e33848bec36110a81fa75df44e85ef379 \
     31                    sha256  0d613f9b619db532aa82fc977764d938d3916c664545e93cc5b4d0f372852690
    4332
    44     livecheck.type  none
    45 }