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

Last change on this file was 130303, checked in by larryv@…, 3 years ago

py25-celementtree: Replace with py27

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.7 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 130303 2014-12-30 01:21:31Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           python 1.0
6
7name                py-celementtree
8version             1.0.5-20051216
9license             MIT BSD
10platforms           darwin
11maintainers         afb openmaintainer
12
13description         C implementation of the ElementTree API, \
14                    py-elementtree
15long_description    The cElementTree module is a C implementation of \
16                    the ElementTree API. On typical documents, it's \
17                    15-20 times faster than the Python version of \
18                    ElementTree, and uses 2-5 times less memory.
19homepage            http://effbot.org/zone/celementtree.htm
20
21master_sites        http://effbot.org/downloads/
22distname            cElementTree-${version}
23use_zip             yes
24checksums           sha1    b36c95fd90d53746424c10db45b102b8fab260b8
25
26python.versions     26 27
27
28if {${name} ne ${subport}} {
29    depends_lib-append  port:py${python.version}-elementtree
30
31    test.run            yes
32    test.cmd            ${python.bin}
33    test.target         selftest.py
34
35    post-destroot   {
36        xinstall -m 644 -W ${worksrcpath} CHANGES README \
37            ${destroot}${prefix}/share/doc/${subport}
38        xinstall -m 755 -d ${destroot}${prefix}/share/examples/${subport}
39        xinstall -m 644 {*}[glob ${worksrcpath}/samples/*] \
40            ${destroot}${prefix}/share/examples/${subport}
41    }
42    livecheck.type      none
43} else {
44    livecheck.type      regex
45    livecheck.url       http://effbot.org/downloads/
46    livecheck.regex     cElementTree-(\[0-9\.-\]+).tar.gz
47}
Note: See TracBrowser for help on using the repository browser.