Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 25 Sep 2019 19:06:04 +0000 (UTC)
From:      "Bradley T. Hughes" <bhughes@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r512805 - head/devel/awscli/files
Message-ID:  <201909251906.x8PJ64u2019238@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bhughes
Date: Wed Sep 25 19:06:04 2019
New Revision: 512805
URL: https://svnweb.freebsd.org/changeset/ports/512805

Log:
  devel/awscli: add files missing from r511778
  
  PR:		240664
  Submitted by:	nork@ninth-nine.com
  Sponsored by:	Miles AS

Added:
  head/devel/awscli/files/
  head/devel/awscli/files/patch-awscli_help.py   (contents, props changed)
  head/devel/awscli/files/pkg-message.in   (contents, props changed)

Added: head/devel/awscli/files/patch-awscli_help.py
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/awscli/files/patch-awscli_help.py	Wed Sep 25 19:06:04 2019	(r512805)
@@ -0,0 +1,23 @@
+--- 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()

Added: head/devel/awscli/files/pkg-message.in
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/awscli/files/pkg-message.in	Wed Sep 25 19:06:04 2019	(r512805)
@@ -0,0 +1,4 @@
+To auto-complete on your shell, please add a following line:
+
+(bashrc) complete -C '%%PREFIX%%/bin/aws_completer' aws
+(zshrc)  source %%PREFIX%%/bin/aws_zsh_completer.sh



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201909251906.x8PJ64u2019238>