Ticket #46696: 02-python-poppler-qt4-switch-to-PyPI.diff

File 02-python-poppler-qt4-switch-to-PyPI.diff, 1.7 KB (added by dliessi (Davide Liessi), 10 years ago)

New patch set: patch 2

  • python/py-python-poppler-qt4/Portfile

    diff --git python/py-python-poppler-qt4/Portfile python/py-python-poppler-qt4/Portfile
    index b40e35e..b15e182 100644
     
    33
    44PortSystem          1.0
    55PortGroup           python 1.0
    6 PortGroup           github 1.0
    76
    8 github.setup        wbsoft python-poppler-qt4 0.18.2 v
     7set _name           python-poppler-qt4
     8set _n              [string index ${_name} 0]
    99
    10 name                py-${github.project}
     10name                py-${_name}
     11version             0.18.2
    1112platforms           darwin
    1213license             LGPL-2.1+
    1314maintainers         gmail.com:davide.liessi openmaintainer
    1415
    1516description         Python binding for Poppler-Qt4
    16 long_description    ${github.project} is a Python binding for Poppler-Qt4.
     17long_description    ${_name} is a Python binding for Poppler-Qt4.
    1718
    18 checksums           rmd160  f1dda7e851a9cc7dcb9eb39e835395fcd9039a89 \
     19homepage            https://github.com/wbsoft/${_name}
     20master_sites        https://pypi.python.org/packages/source/${_n}/${_name}/
     21distname            ${_name}-${version}
     22
     23checksums           md5     b9498b37006c8e3a525ad7cb0d2a3fe8 \
     24                    rmd160  f1dda7e851a9cc7dcb9eb39e835395fcd9039a89 \
    1925                    sha256  bb3ec0f6154903911d759e0d95f6b4b68b8fed39831f1590b4962f012e6453d8
    2026
    2127python.versions     27 34
    if {${name} ne ${subport}} { 
    4248        xinstall -m 644 -W ${worksrcpath} demo.py ${examples_dir}
    4349    }
    4450}
     51
     52livecheck.type  regex
     53livecheck.url   https://pypi.python.org/pypi/${_name}
     54livecheck.regex ">${_name}-(\\d+(\\.\\d+)+)\\${extract.suffix}<"
     55
     56if {${name} ne ${subport}} {
     57    livecheck.type  none
     58}