Ticket #52966: Portfile

File Portfile, 1.9 KB (added by raupachz (Björn Raupach), 7 years ago)
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$
3
4PortSystem          1.0
5PortGroup           python 1.0
6
7name                py-awscli
8version             1.11.21
9revision            2
10platforms           darwin
11license             Apache-2
12maintainers         pixilla openmaintainer
13
14description         Universal Command Line Environment for AWS.
15long_description    ${description}
16
17homepage            http://aws.amazon.com/cli/
18master_sites        pypi:a/awscli
19distname            awscli-${version}
20
21checksums           rmd160  bc3bb70ac70c7b157e27563085e062d585fab5e8 \
22                    sha256  6eac3a744d49166e11ffb8f225e14669865cc4538e24a9451908b53f962bb61f
23
24python.versions     27 34
25
26if {${name} ne ${subport}} {
27
28    PortGroup           select 1.0
29
30    depends_build-append \
31                        port:py${python.version}-setuptools
32    depends_lib-append \
33                        port:py${python.version}-asn1 \
34                        port:py${python.version}-bcdoc \
35                        port:py${python.version}-botocore \
36                        port:py${python.version}-colorama \
37                        port:py${python.version}-dateutil \
38                        port:py${python.version}-docutils \
39                        port:py${python.version}-jmespath \
40                        port:py${python.version}-rsa \
41                        port:py${python.version}-six
42
43    depends_run-append  port:awscli_select
44
45    select.group        awscli
46    select.file         ${worksrcpath}/${subport}
47
48    post-extract {
49        copy -force ${filespath}/awscli ${worksrcpath}/${subport}
50    }
51
52    post-patch {
53        reinplace \
54            "s,@PYTHON_BRANCH@,${python.branch},g" \
55             ${worksrcpath}/${subport}
56    }
57
58    livecheck.type      none
59} else {
60    livecheck.type      pypi
61}