git: 3d8e46a27fb8 - main - devel/py-awscli: Update to 1.27.9

From: Juraj Lutter <otis_at_FreeBSD.org>
Date: Tue, 15 Nov 2022 20:17:25 UTC
The branch main has been updated by otis:

URL: https://cgit.FreeBSD.org/ports/commit/?id=3d8e46a27fb841722555baf8106b4425d4114b9b

commit 3d8e46a27fb841722555baf8106b4425d4114b9b
Author:     Juraj Lutter <otis@FreeBSD.org>
AuthorDate: 2022-11-15 20:00:56 +0000
Commit:     Juraj Lutter <otis@FreeBSD.org>
CommitDate: 2022-11-15 20:17:12 +0000

    devel/py-awscli: Update to 1.27.9
    
    - Update to 1.27.9
    - Rename to comply with Python naming policy and flavorize
    - Assume MAINTAINER
---
 MOVED                                            |  1 +
 devel/Makefile                                   |  2 +-
 devel/awscli/distinfo                            |  3 ---
 devel/awscli/files/patch-awscli_help.py          | 23 -----------------------
 devel/{awscli => py-awscli}/Makefile             | 11 ++++++-----
 devel/py-awscli/distinfo                         |  3 +++
 devel/py-awscli/files/patch-awscli_help.py       | 11 +++++++++++
 devel/{awscli => py-awscli}/files/pkg-message.in |  0
 devel/{awscli => py-awscli}/pkg-descr            |  0
 9 files changed, 22 insertions(+), 32 deletions(-)

diff --git a/MOVED b/MOVED
index 602ec3bd5d1b..36e377e92881 100644
--- a/MOVED
+++ b/MOVED
@@ -17609,3 +17609,4 @@ devel/py-types-termcolor||2022-11-11|No longer needed, type annotations are now
 x11-toolkits/wlroots-devel|x11-toolkits/wlroots|2022-11-11|Out of date: use x11-toolkits/wlroots for now
 multimedia/mpv034||2022-11-14|No longer needed
 devel/py-types-xxhash||2022-11-15|No longer needed, type annotations are now available in xxhash module
+devel/awscli|devel/py-awscli|2022-11-15|Renamed comply with Python Ports Policy and flavored
diff --git a/devel/Makefile b/devel/Makefile
index 8f91308341aa..0b8932c0c42e 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -248,7 +248,6 @@
     SUBDIR += aws-crt-cpp
     SUBDIR += aws-sdk-cpp
     SUBDIR += aws-sdk-php
-    SUBDIR += awscli
     SUBDIR += axmldec
     SUBDIR += ayatana-ido
     SUBDIR += b2
@@ -4194,6 +4193,7 @@
     SUBDIR += py-aws-requests-auth
     SUBDIR += py-aws-sam-translator
     SUBDIR += py-aws-xray-sdk
+    SUBDIR += py-awscli
     SUBDIR += py-awscrt
     SUBDIR += py-azure-appconfiguration
     SUBDIR += py-azure-batch
diff --git a/devel/awscli/distinfo b/devel/awscli/distinfo
deleted file mode 100644
index 25452800c7f6..000000000000
--- a/devel/awscli/distinfo
+++ /dev/null
@@ -1,3 +0,0 @@
-TIMESTAMP = 1634205488
-SHA256 (awscli-1.20.61.tar.gz) = 30f4cfd871af16c27659ea3c42bb4308f25769423e9171046fc0cf5804f8c842
-SIZE (awscli-1.20.61.tar.gz) = 1526330
diff --git a/devel/awscli/files/patch-awscli_help.py b/devel/awscli/files/patch-awscli_help.py
deleted file mode 100644
index 85c56ef6e69e..000000000000
--- a/devel/awscli/files/patch-awscli_help.py
+++ /dev/null
@@ -1,23 +0,0 @@
---- awscli/help.py.orig	2019-08-27 18:05:04 UTC
-+++ awscli/help.py
-@@ -107,13 +107,16 @@ class PosixHelpRenderer(PagingHelpRenderer):
- 
-     def _convert_doc_content(self, contents):
-         man_contents = publish_string(contents, writer=manpage.Writer())
--        if not self._exists_on_path('groff'):
-+        if self._exists_on_path('groff'):
-+            cmdline = ['groff', '-m', 'man', '-T', 'ascii']
-+        elif self._exists_on_path('mandoc'):
-+            cmdline = ['mandoc', '-man', '-T', 'ascii']
-+        else:
-             raise ExecutableNotFoundError('groff')
--        cmdline = ['groff', '-m', 'man', '-T', 'ascii']
-         LOG.debug("Running command: %s", cmdline)
-         p3 = self._popen(cmdline, stdin=PIPE, stdout=PIPE, stderr=PIPE)
--        groff_output = p3.communicate(input=man_contents)[0]
--        return groff_output
-+        man_output = p3.communicate(input=man_contents)[0]
-+        return man_output
- 
-     def _send_output_to_pager(self, output):
-         cmdline = self.get_pager_cmdline()
diff --git a/devel/awscli/Makefile b/devel/py-awscli/Makefile
similarity index 83%
rename from devel/awscli/Makefile
rename to devel/py-awscli/Makefile
index 3acd6c068136..c9184136142b 100644
--- a/devel/awscli/Makefile
+++ b/devel/py-awscli/Makefile
@@ -1,9 +1,10 @@
 PORTNAME=	awscli
-PORTVERSION=	1.20.61
-CATEGORIES=	devel
+PORTVERSION=	1.27.9
+CATEGORIES=	devel python
 MASTER_SITES=	CHEESESHOP
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
 
-MAINTAINER=	ports@FreeBSD.org
+MAINTAINER=	otis@FreeBSD.org
 COMMENT=	Universal Command Line Interface for Amazon Web Services
 WWW=		https://aws.amazon.com/cli/
 
@@ -12,13 +13,13 @@ LICENSE_FILE=	${WRKSRC}/LICENSE.txt
 
 RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}botocore>=1.21.61:devel/py-botocore@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}colorama>=0.2.5:devel/py-colorama@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}s3transfer>=0.5.0:net/py-s3transfer@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}docutils>=0.10:textproc/py-docutils@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}rsa>=3.1.2:security/py-rsa@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}s3transfer>=0.5.0:net/py-s3transfer@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}yaml>=3.10:devel/py-yaml@${PY_FLAVOR}
 
 USES=		python
-USE_PYTHON=	autoplist distutils concurrent noflavors
+USE_PYTHON=	autoplist distutils
 
 NO_ARCH=	yes
 SUB_FILES=	pkg-message
diff --git a/devel/py-awscli/distinfo b/devel/py-awscli/distinfo
new file mode 100644
index 000000000000..3bef86f736e8
--- /dev/null
+++ b/devel/py-awscli/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1668536463
+SHA256 (awscli-1.27.9.tar.gz) = d8ba5b1121b2ce66cc6851335f8087e29a9e506969da62b56e2daba350a7b39e
+SIZE (awscli-1.27.9.tar.gz) = 1607886
diff --git a/devel/py-awscli/files/patch-awscli_help.py b/devel/py-awscli/files/patch-awscli_help.py
new file mode 100644
index 000000000000..c885dccfba51
--- /dev/null
+++ b/devel/py-awscli/files/patch-awscli_help.py
@@ -0,0 +1,11 @@
+--- awscli/help.py.orig	2022-11-14 19:07:18 UTC
++++ awscli/help.py
+@@ -109,7 +109,7 @@ class PosixHelpRenderer(PagingHelpRenderer):
+         if self._exists_on_path('groff'):
+             cmdline = ['groff', '-m', 'man', '-T', 'ascii']
+         elif self._exists_on_path('mandoc'):
+-            cmdline = ['mandoc', '-T', 'ascii']
++            cmdline = ['mandoc', '-man', '-T', 'ascii']
+         else:
+             raise ExecutableNotFoundError('groff or mandoc')
+         LOG.debug("Running command: %s", cmdline)
diff --git a/devel/awscli/files/pkg-message.in b/devel/py-awscli/files/pkg-message.in
similarity index 100%
rename from devel/awscli/files/pkg-message.in
rename to devel/py-awscli/files/pkg-message.in
diff --git a/devel/awscli/pkg-descr b/devel/py-awscli/pkg-descr
similarity index 100%
rename from devel/awscli/pkg-descr
rename to devel/py-awscli/pkg-descr