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 | PortGroup active_variants 1.1 |
---|
7 | |
---|
8 | set original_name python-poppler-qt4 |
---|
9 | name py-${original_name} |
---|
10 | version 0.16.3 |
---|
11 | revision 2 |
---|
12 | python.versions 26 27 |
---|
13 | python.default_version 27 |
---|
14 | maintainers gmail.com:davide.liessi openmaintainer |
---|
15 | description Python binding for Poppler-Qt4 |
---|
16 | long_description ${original_name} is a Python binding for Poppler-Qt4. |
---|
17 | homepage https://code.google.com/p/${original_name}/ |
---|
18 | platforms darwin |
---|
19 | supported_archs noarch |
---|
20 | license LGPL-2.1+ |
---|
21 | |
---|
22 | master_sites googlecode:${original_name} |
---|
23 | distname ${original_name}-${version} |
---|
24 | |
---|
25 | checksums rmd160 77c837bed60d82d3858fa644729363192a3505c6 \ |
---|
26 | sha256 52232383b273038027a881db7e46879b73cccf690d393f677e7496e19cfb59aa |
---|
27 | |
---|
28 | if {$subport != $name} { |
---|
29 | depends_lib-append port:poppler \ |
---|
30 | port:qt4-mac \ |
---|
31 | port:py${python.version}-pyqt4 \ |
---|
32 | port:py${python.version}-sip |
---|
33 | |
---|
34 | require_active_variants poppler {qt4 quartz} |
---|
35 | |
---|
36 | depends_build-append port:pkgconfig |
---|
37 | } |
---|
38 | |
---|
39 | post-destroot { |
---|
40 | set doc_dir ${destroot}${prefix}/share/doc/${subport} |
---|
41 | xinstall -d ${doc_dir} |
---|
42 | xinstall -m 644 -W ${worksrcpath} \ |
---|
43 | ChangeLog \ |
---|
44 | LICENSE \ |
---|
45 | README \ |
---|
46 | ${doc_dir} |
---|
47 | set examples_dir ${destroot}${prefix}/share/examples/${subport} |
---|
48 | xinstall -d ${examples_dir} |
---|
49 | xinstall -m 644 -W ${worksrcpath} demo.py ${examples_dir} |
---|
50 | } |
---|