Files
macports-ports/python/py-awscli/Portfile
2026-02-14 19:54:52 +02:00

91 lines
3.0 KiB
Tcl

# -*- 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
PortSystem 1.0
PortGroup python 1.0
PortGroup select 1.0
name py-awscli
version 1.44.39
revision 0
categories python devel
supported_archs noarch
platforms {darwin any}
license Apache-2
maintainers {judaew @judaew} openmaintainer
description Universal Command Line Environment for Amazon Web Services.
long_description {*}${description}
homepage https://aws.amazon.com/cli/
checksums rmd160 fec2dc0d64ff465bd3699f3feffc373ce57432ac \
sha256 3554b69426942132c2b738b77507d3c2b07a2e8b09db62f5bddf6b956b989bdf \
size 1890248
python.versions 310 311 312 313 314
if {${name} ne ${subport}} {
conflicts py${python.version}-awscli2
depends_lib-append \
port:py${python.version}-botocore \
port:py${python.version}-colorama \
port:py${python.version}-docutils \
port:py${python.version}-rsa \
port:py${python.version}-s3transfer \
port:py${python.version}-yaml
depends_run-append port:awscli_select
select.group awscli
select.file ${worksrcpath}/py${python.version}-awscli
post-extract {
copy -force ${filespath}/awscli ${worksrcpath}/py${python.version}-awscli
}
post-patch {
reinplace \
"s,@PYTHON_BRANCH@,${python.branch},g" \
${worksrcpath}/${subport}
}
post-destroot {
delete ${destroot}${prefix}/bin/aws.cmd-${python.branch}
set bash_compl_path ${prefix}/share/bash-completion/completions
xinstall -d ${destroot}${bash_compl_path}
xinstall -m 0644 ${worksrcpath}/bin/aws_bash_completer \
${destroot}${bash_compl_path}/aws-${python.branch}
set zsh_compl_path ${prefix}/share/zsh/site-functions
xinstall -d ${destroot}${zsh_compl_path}
xinstall -m 0644 ${worksrcpath}/bin/aws_zsh_completer.sh \
${destroot}${zsh_compl_path}/aws_zsh_completer.sh-${python.branch}
xinstall -m 0644 ${filespath}/_aws \
${destroot}${zsh_compl_path}/_aws-${python.branch}
}
notes "
To make the Python ${python.branch} version of AWS CLI the one that is run when\
you execute the commands without a version suffix, e.g. 'aws', run:
port select --set ${select.group} [file tail ${select.file}]
---
If you use a plugin in your ~/.aws/config, it must be installed. For example,
Wasabi for S3 uses the awscli_plugin_endpoint plugin. Just install it:
port install py${python.version}-awscli-plugin-endpoint
If your plugin is not in MacPorts, you can install it using the
py${python.version}-pip port, for example:
pip-${python.branch} install --user <plugin-name>
"
livecheck.type none
}