Ticket #40138: Portfile.2

File Portfile.2, 1.4 KB (added by dliessi (Davide Liessi), 11 years ago)

Add modeline to Portfile; require also quartz variant in poppler

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
6PortGroup               active_variants 1.1
7
8set original_name       python-poppler-qt4
9name                    py-${original_name}
10version                 0.16.3
11python.versions         26 27
12python.default_version  27
13maintainers             gmail.com:davide.liessi openmaintainer
14description             Python binding for Poppler-Qt4
15long_description        ${original_name} is a Python binding for Poppler-Qt4.
16homepage                https://code.google.com/p/${original_name}/
17platforms               darwin
18supported_archs         noarch
19license                 LGPL-2.1+
20
21master_sites            googlecode:${original_name}
22distname                ${original_name}-${version}
23
24checksums               rmd160  77c837bed60d82d3858fa644729363192a3505c6 \
25                        sha256  52232383b273038027a881db7e46879b73cccf690d393f677e7496e19cfb59aa
26
27if {$subport != $name} {
28    depends_lib-append      port:poppler \
29                            port:qt4-mac \
30                            port:py${python.version}-pyqt4 \
31                            port:py${python.version}-sip
32
33    require_active_variants poppler {qt4 quartz}
34
35    depends_build-append    port:pkgconfig
36}