Ticket #46696: 03-rename-py-poppler-qt4.diff

File 03-rename-py-poppler-qt4.diff, 6.2 KB (added by dliessi (Davide Liessi), 9 years ago)

New patch set: patch 3

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

    diff --git python/py-poppler-qt4/Portfile python/py-poppler-qt4/Portfile
    new file mode 100644
    index 0000000..9cd5a16
    - +  
     1# -*- 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
     2# $Id$
     3
     4PortSystem          1.0
     5PortGroup           python 1.0
     6
     7set _name           python-poppler-qt4
     8set _n              [string index ${_name} 0]
     9
     10name                py-poppler-qt4
     11version             0.18.2
     12platforms           darwin
     13license             LGPL-2.1+
     14maintainers         gmail.com:davide.liessi openmaintainer
     15
     16description         Python binding for Poppler-Qt4
     17long_description    ${_name} is a Python binding for Poppler-Qt4.
     18
     19homepage            https://github.com/wbsoft/${_name}
     20master_sites        https://pypi.python.org/packages/source/${_n}/${_name}/
     21distname            ${_name}-${version}
     22
     23checksums           md5     124593f271a0fd513bc93838e2b66fef \
     24                    rmd160  6b16a1b39af4ecc63c1faef8375551d9bded8faa \
     25                    sha256  b1d176a0e34252f1ea822ccbfb29bd0b7becb7b1db794256da8bfe4e0e1e98f6
     26
     27python.versions     27 34
     28
     29if {${name} ne ${subport}} {
     30    depends_build-append    port:pkgconfig
     31
     32    # Can use either py*-pyqt4 or py*-pyqt4-devel.
     33    depends_lib-append      port:poppler-qt4-mac \
     34                            port:qt4-mac \
     35                            port:py${python.version}-sip \
     36                            path:share/py${python.version}-sip/PyQt4:py${python.version}-pyqt4
     37
     38    post-destroot {
     39        set doc_dir ${destroot}${prefix}/share/doc/${subport}
     40        xinstall -d ${doc_dir}
     41        xinstall -m 644 -W ${worksrcpath} \
     42            ChangeLog \
     43            LICENSE \
     44            README \
     45            ${doc_dir}
     46        set examples_dir ${destroot}${prefix}/share/examples/${subport}
     47        xinstall -d ${examples_dir}
     48        xinstall -m 644 -W ${worksrcpath} demo.py ${examples_dir}
     49    }
     50}
     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}
  • python/py-python-poppler-qt4/Portfile

    diff --git python/py-python-poppler-qt4/Portfile python/py-python-poppler-qt4/Portfile
    index b15e182..c8a2d8d 100644
     
    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$
    3 
    43PortSystem          1.0
    5 PortGroup           python 1.0
    6 
    7 set _name           python-poppler-qt4
    8 set _n              [string index ${_name} 0]
    9 
    10 name                py-${_name}
    11 version             0.18.2
    12 platforms           darwin
    13 license             LGPL-2.1+
    14 maintainers         gmail.com:davide.liessi openmaintainer
    15 
    16 description         Python binding for Poppler-Qt4
    17 long_description    ${_name} is a Python binding for Poppler-Qt4.
    18 
    19 homepage            https://github.com/wbsoft/${_name}
    20 master_sites        https://pypi.python.org/packages/source/${_n}/${_name}/
    21 distname            ${_name}-${version}
    22 
    23 checksums           md5     b9498b37006c8e3a525ad7cb0d2a3fe8 \
    24                     rmd160  f1dda7e851a9cc7dcb9eb39e835395fcd9039a89 \
    25                     sha256  bb3ec0f6154903911d759e0d95f6b4b68b8fed39831f1590b4962f012e6453d8
    26 
    27 python.versions     27 34
    28 
    29 if {${name} ne ${subport}} {
    30     depends_build-append    port:pkgconfig
    31 
    32     # Can use either py*-pyqt4 or py*-pyqt4-devel.
    33     depends_lib-append      port:poppler-qt4-mac \
    34                             port:qt4-mac \
    35                             port:py${python.version}-sip \
    36                             path:share/py${python.version}-sip/PyQt4:py${python.version}-pyqt4
    37 
    38     post-destroot {
    39         set doc_dir ${destroot}${prefix}/share/doc/${subport}
    40         xinstall -d ${doc_dir}
    41         xinstall -m 644 -W ${worksrcpath} \
    42             ChangeLog \
    43             LICENSE \
    44             README \
    45             ${doc_dir}
    46         set examples_dir ${destroot}${prefix}/share/examples/${subport}
    47         xinstall -d ${examples_dir}
    48         xinstall -m 644 -W ${worksrcpath} demo.py ${examples_dir}
    49     }
    50 }
    51 
    52 livecheck.type  regex
    53 livecheck.url   https://pypi.python.org/pypi/${_name}
    54 livecheck.regex ">${_name}-(\\d+(\\.\\d+)+)\\${extract.suffix}<"
    55 
    56 if {${name} ne ${subport}} {
    57     livecheck.type  none
     4name                py-python-poppler-qt4
     5foreach i {26 27 32 33 34} {
     6    subport py${i}-python-poppler-qt4 {}
    587}
     8replaced_by         [regsub -- {-python} [string map {26 27 32 34 33 34} ${subport}] {}]
     9version             0.18.2
     10revision            1
     11PortGroup           obsolete 1.0
  • editors/frescobaldi/Portfile

    diff --git editors/frescobaldi/Portfile editors/frescobaldi/Portfile
    index b6df9c2..c34b350 100644
    PortGroup python 1.0 
    66PortGroup           github 1.0
    77
    88github.setup        wbsoft frescobaldi 2.17.2 v
     9revision            1
    910conflicts           frescobaldi-devel
    1011categories          editors python
    1112maintainers         gmail.com:davide.liessi openmaintainer
    depends_run-append port:portmidi 
    3233python.default_version  27
    3334# Can use either py*-pyqt4 or py*-pyqt4-devel.
    3435depends_run-append  path:share/py${python.default_version}-sip/PyQt4:py${python.default_version}-pyqt4 \
    35                     port:py${python.default_version}-python-poppler-qt4
     36                    port:py${python.default_version}-poppler-qt4
    3637
    3738variant app description {Make application bundle} {
    3839    depends_build-append    port:py${python.default_version}-py2app
  • python/py-graveyard/Portfile

    diff --git python/py-graveyard/Portfile python/py-graveyard/Portfile
    index dd7c113..90650b1 100644
    py-pyside-tools 0.2.15_1 26 32 33 
    457457py-pysparse             1.1.1_2     26
    458458py-pysvn                1.7.6_4     25
    459459py-pytest               2.6.3_1     25 26 32 33
    460 py-python-poppler-qt4   0.18.1_3    26 32 33
    461460py-pythonutils          0.4.0_1     25 26
    462461py-pytools              2013.5.6_1  31 32
    463462py-pyusb                0.4.3_2     25 26