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

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

python/*: Use categories-append in all {no,open}maintainer ports that use a Python portgroup.

Overriding a portgroup's default category is not necessarily incorrect, but if there isn't a good reason for it, it sets a bad example.

(See https://lists.macosforge.org/pipermail/macports-dev/2013-February/021899.html and related messages.)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.9 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 102584 2013-02-05 04:25:13Z larryv@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 24 25 26 27
11# originally for py24
12# python.default_version 24
13platforms               darwin
14maintainers             snc openmaintainer
15license         MIT
16supported_archs noarch
17
18description             flexible container object for python
19long_description        The Element type is a simple but flexible container \
20                                object, designed to store hierarchical data structures, such \
21                                as simplified XML infosets, in memory. The element type can be \
22                                described as a cross between a Python list and a Python \
23                                dictionary.
24
25homepage                http://effbot.org/zone/element-index.htm
26
27if {${subport} != ${name}} {
28    if {${python.version} == 24} {
29        revision        1
30    }
31    master_sites        http://effbot.org/downloads/
32    distname            elementtree-${version}
33    checksums           rmd160  813aaf07a0fcdfb23d29b648a8e082e1674539f5 \
34                        sha256  b5dd2c4e234f325abc1c7fb17815cb6cbcfef062f01065ddb05a6d6b96452f18
35    use_zip                     yes
36    patchfiles          patch-setup.py
37
38    depends_build-append        port:py${python.version}-distribute
39
40    post-extract { file copy ${filespath}/ez_setup.py ${worksrcpath} }
41
42    test.run            yes
43    test.cmd            ${python.bin}
44    test.target         selftest.py
45
46    post-destroot       {
47        xinstall -m 644 ${worksrcpath}/README ${destroot}${prefix}/share/doc/${subport}
48        xinstall -d ${destroot}${prefix}/share/doc/${subport}/examples
49        xinstall -m 644 -W ${worksrcpath}/samples simple-ns.xml simple.xml \
50            ${destroot}${prefix}/share/doc/${subport}/examples
51        eval file copy [glob ${worksrcpath}/docs/*] \
52            ${destroot}${prefix}/share/doc/${subport}
53    }
54}
55livecheck.type  none
Note: See TracBrowser for help on using the repository browser.