Files
macports-ports/python/py-awscli2/Portfile
T

94 lines
3.3 KiB
Tcl
Raw Normal View History

2021-12-17 21:51:26 -05:00
# -*- 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
PortGroup github 1.0
name py-awscli2
2026-07-10 20:22:04 -04:00
github.setup aws aws-cli 2.35.21
2025-01-30 19:20:05 -05:00
github.tarball_from archive
2022-12-27 10:20:02 -05:00
revision 0
2021-12-17 21:51:26 -05:00
categories python devel
2024-11-19 19:59:01 -05:00
platforms {darwin >= 20}
supported_archs noarch
2021-12-17 21:51:26 -05:00
license Apache-2
maintainers {gmail.com:davidgilman1 @dgilman} openmaintainer
description Universal Command Line Environment for Amazon Web Services.
long_description {*}${description}
homepage https://aws.amazon.com/cli/
2026-07-10 20:22:04 -04:00
checksums rmd160 3c534805a47374abe47fb5767a5d1cfa1e930302 \
sha256 2ccaa0c90e8ab75af3ec75e3ea596ae19d3a577f6aec51f26190c5b143fd04ec \
size 18799176
2021-12-17 21:51:26 -05:00
2026-04-03 18:54:06 -04:00
python.versions 310 311 312 313 314
2022-10-03 10:22:45 -04:00
python.pep517_backend \
flit
2021-12-17 21:51:26 -05:00
if {${name} ne ${subport}} {
conflicts py${python.version}-awscli
depends_build-append \
port:py${python.version}-setuptools
depends_lib-append \
port:py${python.version}-awscrt \
port:py${python.version}-colorama \
port:py${python.version}-dateutil \
port:py${python.version}-distro \
port:py${python.version}-docutils \
port:py${python.version}-jmespath \
port:py${python.version}-prompt_toolkit \
port:py${python.version}-ruamel-yaml \
port:py${python.version}-ruamel-yaml-clib \
2022-12-11 17:22:15 -05:00
port:py${python.version}-urllib3
2021-12-17 21:51:26 -05:00
depends_run-append port:awscli_select
select.group awscli
select.file ${worksrcpath}/py${python.version}-awscli2
post-extract {
copy -force ${filespath}/awscli2 ${worksrcpath}/py${python.version}-awscli2
}
patch.pre_args-replace -p0 -p1
2024-09-07 10:53:24 -04:00
patchfiles patch-requirements.diff \
0001-py-awscli2-Support-empty-PAGER.patch
2021-12-17 21:51:26 -05:00
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}]
"
livecheck.type none
}