source: trunk/dports/python/py-twilio/Portfile @ 135656

Last change on this file since 135656 was 130518, checked in by larryv@…, 5 years ago

py{25,32}-twilio: Replace with py{27,34}

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.5 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 130518 2014-12-31 03:36:23Z larryv@macports.org $
3
4PortSystem 1.0
5PortGroup python 1.0
6
7set realname        twilio
8name                py-${realname}
9version             3.6.7
10python.versions     26 27 33 34
11license             MIT
12platforms           darwin
13supported_archs     noarch
14maintainers         aronnax openmaintainer
15description         Twilio API client and TwiML generator
16long_description    ${description}
17homepage            http://pypi.python.org/pypi/${realname}/
18master_sites        http://pypi.python.org/packages/source/[string index ${realname} 0]/${realname}/
19distname            ${realname}-${version}
20
21checksums           md5     0ea03da3b7766a4ff5a4436aee46326b \
22                    rmd160  6dddd7349c7380022b0bfb1d914a96ab40bfd97e \
23                    sha256  ddde4f2c4e92d08edd7b180b69afc144acdf2c76712da953ae177e61606bbed5
24
25if {${name} eq ${subport}} {
26    livecheck.type  regex
27    livecheck.regex [format "%s-%s" ${realname} {(\d+(?:\.\d+)*)}]
28   
29} else {
30    depends_lib-append \
31                    port:py${python.version}-six \
32                    port:py${python.version}-httplib2
33
34    depends_build-append \
35                    port:py${python.version}-setuptools
36
37    if {${python.version} == 25} {
38        depends_lib-append \
39                    port:py${python.version}-simplejson
40    }
41
42    if {${python.version} >= 30} {
43        depends_lib-append \
44                    port:py${python.version}-socksipy-branch
45    }
46
47    livecheck.type  none
48}
Note: See TracBrowser for help on using the repository browser.