Ticket #46696: Portfile-py-poppler-qt4

File Portfile-py-poppler-qt4, 1.9 KB (added by dliessi (Davide Liessi), 9 years ago)

new port py-poppler-qt4

Line 
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                            path:share/py${python.version}-sip/PyQt4:py${python.version}-pyqt4 \
36                            port:py${python.version}-sip
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   [lindex ${master_sites} 0]
54livecheck.regex ">${_name}-(\\d+(\\.\\d+)+)\\${extract.suffix}<"
55
56if {${name} ne ${subport}} {
57    livecheck.type  none
58}