Ticket #56138: Portfile-py-pdfrw.diff

File Portfile-py-pdfrw.diff, 2.2 KB (added by numeratus, 7 years ago)

Portfile patch

  • 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 v0.4
     10
    811categories-append   graphics
     12
    913platforms           darwin
    10 supported_archs     noarch
    1114license             MIT
    12 maintainers         nomaintainer
     15maintainers         {guenael.com:macports @numeratus} \
     16                    openmaintainer
     17
     18python.versions     26 27 33 34 35 36
    1319
    1420description         Pure Python PDF file reader/writer library
    1521long_description    pdfrw lets you read and write PDF files, including \
     
    1723                    watermarking, or to copy an image or diagram from \
    1824                    one PDF to another), and can output by itself, or \
    1925                    in conjunction with reportlab.
    20 homepage            https://code.google.com/p/pdfrw
    2126
    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     }
     27homepage            https://github.com/pmaupin/pdfrw
     28
     29checksums           rmd160  cd7d040e33848bec36110a81fa75df44e85ef379 \
     30                    sha256  0d613f9b619db532aa82fc977764d938d3916c664545e93cc5b4d0f372852690
    4331
    44     livecheck.type  none
    45 }