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

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

python ports: use eq and ne when comparing ${subport} instead of == and !=

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