source: trunk/dports/python/py-zopeinterface/Portfile

Last change on this file was 153109, checked in by mcalhoun@…, 12 months ago

py-zopeinterface: version update 4.1.3->4.3.2
test requires an extra dependency, so make it a variant

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.5 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
2# $Id: Portfile 153109 2016-09-24 23:12:37Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           python 1.0
6
7name                py-zopeinterface
8version             4.3.2
9python.versions     27 34 35
10categories-append   zope
11license             ZPL-2.1
12platforms           darwin
13maintainers         mcalhoun openmaintainer
14description         Python interfaces for Zope
15long_description    ${description}
16
17homepage            http://docs.zope.org/zopetoolkit/
18master_sites        pypi:z/zope.interface
19distname            zope.interface-${version}
20
21checksums           rmd160  53c943695a97f0818b576b6e1c06440ae05c7167 \
22                    sha256  6a0e224a052e3ce27b3a7b1300a24747513f7a507217fcc2a4cb02eb92945cee
23
24
25if {${name} ne ${subport}} {
26
27    depends_build   port:py${python.version}-setuptools
28
29    post-destroot {
30        xinstall -d ${destroot}${prefix}/share/doc/${subport}
31        xinstall -m 644 -W ${worksrcpath} \
32            CHANGES.rst  README.rst \
33            ${destroot}${prefix}/share/doc/${subport}
34    }
35
36    variant tests description {Add dependencies needed to run tests} {
37        depends_build-append port:py${python.version}-zope-event
38        test.run    yes
39        test.cmd    ${python.bin} setup.py
40        test.target test
41    }
42}
43
44livecheck.type      regex
45livecheck.url       https://pypi.python.org/pypi/zope.interface/json
46livecheck.regex     zope.interface-(\\d+(?:\\.\\d+)*)${extract.suffix}
Note: See TracBrowser for help on using the repository browser.