View | Details | Raw Unified | Return to bug 240664 | Differences between
and this patch

Collapse All | Expand All

(-)Makefile (-4 / +2 lines)
Lines 3-9 Link Here
3
3
4
PORTNAME=	awscli
4
PORTNAME=	awscli
5
PORTVERSION=	1.16.227
5
PORTVERSION=	1.16.227
6
PORTREVISION=	1
6
PORTREVISION=	2
7
CATEGORIES=	devel
7
CATEGORIES=	devel
8
MASTER_SITES=	CHEESESHOP
8
MASTER_SITES=	CHEESESHOP
9
9
Lines 24-31 Link Here
24
USE_PYTHON=	autoplist distutils concurrent noflavors
24
USE_PYTHON=	autoplist distutils concurrent noflavors
25
25
26
NO_ARCH=	yes
26
NO_ARCH=	yes
27
SUB_FILES=	pkg-message
27
28
28
OPTIONS_DEFINE=	DOCS
29
DOCS_USES=	groff:run
30
31
.include <bsd.port.mk>
29
.include <bsd.port.mk>
(-)files/patch-awscli_help.py (+23 lines)
Line 0 Link Here
1
--- awscli/help.py.orig	2019-08-27 18:05:04 UTC
2
+++ awscli/help.py
3
@@ -107,13 +107,16 @@ class PosixHelpRenderer(PagingHelpRenderer):
4
 
5
     def _convert_doc_content(self, contents):
6
         man_contents = publish_string(contents, writer=manpage.Writer())
7
-        if not self._exists_on_path('groff'):
8
+        if self._exists_on_path('groff'):
9
+            cmdline = ['groff', '-m', 'man', '-T', 'ascii']
10
+        elif self._exists_on_path('mandoc'):
11
+            cmdline = ['mandoc', '-man', '-T', 'ascii']
12
+        else:
13
             raise ExecutableNotFoundError('groff')
14
-        cmdline = ['groff', '-m', 'man', '-T', 'ascii']
15
         LOG.debug("Running command: %s", cmdline)
16
         p3 = self._popen(cmdline, stdin=PIPE, stdout=PIPE, stderr=PIPE)
17
-        groff_output = p3.communicate(input=man_contents)[0]
18
-        return groff_output
19
+        man_output = p3.communicate(input=man_contents)[0]
20
+        return man_output
21
 
22
     def _send_output_to_pager(self, output):
23
         cmdline = self.get_pager_cmdline()
(-)files/pkg-message.in (+4 lines)
Line 0 Link Here
1
To auto-complete on your shell, please add a following line:
2
3
(bashrc) complete -C '%%PREFIX%%/bin/aws_completer' aws
4
(zshrc)  source %%PREFIX%%/bin/aws_zsh_completer.sh

Return to bug 240664