source: trunk/dports/python/py-python-poppler-qt4/Portfile @ 115966

Last change on this file since 115966 was 115966, checked in by devans@…, 7 years ago

previous depedents of poppler +qt4 +quartz: now depend on poppler-qt4-mac and drop poppler active variant checks, rebuild not required.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.8 KB
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: Portfile 115966 2014-01-15 16:51:19Z devans@macports.org $
3
4PortSystem              1.0
5PortGroup               python 1.0
6
7set original_name       python-poppler-qt4
8name                    py-${original_name}
9version                 0.16.3
10python.versions         26 27
11maintainers             gmail.com:davide.liessi openmaintainer
12description             Python binding for Poppler-Qt4
13long_description        ${original_name} is a Python binding for Poppler-Qt4.
14homepage                https://code.google.com/p/${original_name}/
15platforms               darwin
16supported_archs         noarch
17license                 LGPL-2.1+
18
19master_sites            googlecode:${original_name}
20distname                ${original_name}-${version}
21
22checksums               rmd160  77c837bed60d82d3858fa644729363192a3505c6 \
23                        sha256  52232383b273038027a881db7e46879b73cccf690d393f677e7496e19cfb59aa
24
25if {${name} ne ${subport}} {
26    depends_build-append    port:pkgconfig
27
28    # Can use either py*-pyqt4 or py*-pyqt4-devel.
29    depends_lib-append      port:poppler-qt4-mac \
30                            port:qt4-mac \
31                            path:share/py${python.version}-sip/PyQt4:py${python.version}-pyqt4 \
32                            port:py${python.version}-sip
33
34    post-destroot {
35        set doc_dir ${destroot}${prefix}/share/doc/${subport}
36        xinstall -d ${doc_dir}
37        xinstall -m 644 -W ${worksrcpath} \
38            ChangeLog \
39            LICENSE \
40            README \
41            ${doc_dir}
42        set examples_dir ${destroot}${prefix}/share/examples/${subport}
43        xinstall -d ${examples_dir}
44        xinstall -m 644 -W ${worksrcpath} demo.py ${examples_dir}
45    }
46}
Note: See TracBrowser for help on using the repository browser.