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

Last change on this file since 87969 was 85005, checked in by snc@…, 8 years ago

py-elementtree: fix livecheck

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