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 | |
---|
4 | PortSystem 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-poppler-qt4 |
---|
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 124593f271a0fd513bc93838e2b66fef \ |
---|
24 | rmd160 6b16a1b39af4ecc63c1faef8375551d9bded8faa \ |
---|
25 | sha256 b1d176a0e34252f1ea822ccbfb29bd0b7becb7b1db794256da8bfe4e0e1e98f6 |
---|
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 | 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 | |
---|
52 | livecheck.type regex |
---|
53 | livecheck.url [lindex ${master_sites} 0] |
---|
54 | livecheck.regex ">${_name}-(\\d+(\\.\\d+)+)\\${extract.suffix}<" |
---|
55 | |
---|
56 | if {${name} ne ${subport}} { |
---|
57 | livecheck.type none |
---|
58 | } |
---|