Ticket #32938: Portfile

File Portfile, 995 bytes (added by skymoo (Adam Mercer), 13 years ago)
Line 
1# $Id$
2
3PortSystem        1.0
4PortGroup         python 1.0
5
6name              py-enum
7version           0.4.4
8categories-append devel
9platforms         darwin
10maintainers       jann ram openmaintainer
11
12description       Robust enumerated type support in Python
13long_description  This package provides a module for robust enumerations \
14                  in Python.
15
16homepage          http://cheeseshop.python.org/pypi/enum/
17master_sites      http://cheeseshop.python.org/packages/source/e/enum/
18distname          enum-${version}
19
20checksums         md5 ce75c7c3c86741175a84456cc5bd531e \
21                  sha1 8243fccd32da4ca7913b65162f94ebaecef61fd7 \
22                  rmd160 65adadea6ae724de26ced714d1f3a09fa4ef29d7
23
24python.versions   24 25 26 27
25
26if {${subport} != ${name}} {
27  depends_build   port:py${python.version}-distribute
28}
29
30if {${name} == ${subport}} {
31  livecheck.type  regex
32  livecheck.url   ${homepage}
33  livecheck.regex {enum (\d+(?:\.\d+)*)}
34} else {
35  livecheck.type  none
36}