Ticket #39453: Portfile

File Portfile, 1.2 KB (added by lpsinger (Leo Singer), 11 years ago)

new Portfile for py-itsdangerous

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 107077 2013-06-17 20:45:28Z aronnax@macports.org $
3
4PortSystem 1.0
5PortGroup python 1.0
6
7set realname        itsdangerous
8name                py-${realname}
9version             0.21
10python.versions     25 26 27
11license             BSD
12platforms           darwin
13supported_archs     noarch
14maintainers         aronnax openmaintainer
15description         Various helpers to pass trusted data to untrusted environments and back
16long_description    ${description}
17homepage            http://pythonhosted.org/itsdangerous/
18master_sites        http://pypi.python.org/packages/source/[string index ${realname} 0]/${realname}/
19distname            ${realname}-${version}
20
21checksums           md5     84d4b33f0a1e4d0f7f8f8755a5eb2580 \
22                    sha1    683391f0331a65ab762d2561a25b852692dbd14c \
23                    rmd160  09a1003cc07e3a3d9b764e58c692ed609f2bb241
24
25if {${subport} == ${name}} {
26    livecheck.type  regex
27    livecheck.regex [format "%s-%s" ${realname} {(\d+(?:\.\d+)*)}]
28} else {
29    depends_build-append \
30                    port:py${python.version}-setuptools
31
32    livecheck.type  none
33}