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

Last change on this file was 151510, checked in by larryv@…, 13 months ago

py-elementtree: Give patch a patchy extension

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.0 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 151510 2016-08-17 06:16:34Z ryandesign@macports.org $
3
4PortSystem 1.0
5PortGroup python 1.0
6
7name                    py-elementtree
8# if version or revision change, be sure to update the py24 subport revision
9version                 1.2.6-20050316
10python.versions 26 27
11platforms               darwin
12maintainers             snc openmaintainer
13license         MIT
14supported_archs noarch
15
16description             flexible container object for python
17long_description        The Element type is a simple but flexible container \
18                                object, designed to store hierarchical data structures, such \
19                                as simplified XML infosets, in memory. The element type can be \
20                                described as a cross between a Python list and a Python \
21                                dictionary.
22
23homepage                http://effbot.org/zone/element-index.htm
24
25if {${name} ne ${subport}} {
26    master_sites        http://effbot.org/downloads/
27    distname            elementtree-${version}
28    checksums           rmd160  813aaf07a0fcdfb23d29b648a8e082e1674539f5 \
29                        sha256  b5dd2c4e234f325abc1c7fb17815cb6cbcfef062f01065ddb05a6d6b96452f18
30    use_zip                     yes
31    patchfiles          patch-setup.py.diff
32
33    depends_build-append        port:py${python.version}-setuptools
34
35    post-extract { file copy ${filespath}/ez_setup.py ${worksrcpath} }
36
37    test.run            yes
38    test.cmd            ${python.bin}
39    test.target         selftest.py
40
41    post-destroot       {
42        xinstall -m 644 ${worksrcpath}/README ${destroot}${prefix}/share/doc/${subport}
43        xinstall -d ${destroot}${prefix}/share/doc/${subport}/examples
44        xinstall -m 644 -W ${worksrcpath}/samples simple-ns.xml simple.xml \
45            ${destroot}${prefix}/share/doc/${subport}/examples
46        eval file copy [glob ${worksrcpath}/docs/*] \
47            ${destroot}${prefix}/share/doc/${subport}
48    }
49}
50livecheck.type  none
51notes "Warning The xml.etree.ElementTree module is not secure against maliciously constructed data. If you need to parse untrusted or unauthenticated data see {http://docs.python.org/2/library/xml.html#xml-vulnerabilities XML vulnerabilities}."
52
Note: See TracBrowser for help on using the repository browser.