Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 30 May 2016 19:02:47 +0000 (UTC)
From:      Bartek Rutkowski <robak@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r416172 - in head/devel: . py-http-prompt py-http-prompt/files
Message-ID:  <201605301902.u4UJ2lMB018813@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: robak
Date: Mon May 30 19:02:47 2016
New Revision: 416172
URL: https://svnweb.freebsd.org/changeset/ports/416172

Log:
  devel/py-http-prompt: NEW PORT - Interactive command-line HTTP client
  
  HTTP Prompt is an interactive command-line HTTP client featuring autocomplete
  and syntax highlighting, built on HTTPie and prompt_toolkit.
  
  WWW: https://pypi.python.org/pypi/http-prompt
  
  PR:		209733
  Submitted by:	Danilo G. Baio <dbaio@bsd.com.br>

Added:
  head/devel/py-http-prompt/
  head/devel/py-http-prompt/Makefile   (contents, props changed)
  head/devel/py-http-prompt/distinfo   (contents, props changed)
  head/devel/py-http-prompt/files/
  head/devel/py-http-prompt/files/patch-http__prompt_execution.py   (contents, props changed)
  head/devel/py-http-prompt/pkg-descr   (contents, props changed)
Modified:
  head/devel/Makefile

Modified: head/devel/Makefile
==============================================================================
--- head/devel/Makefile	Mon May 30 18:55:21 2016	(r416171)
+++ head/devel/Makefile	Mon May 30 19:02:47 2016	(r416172)
@@ -4141,6 +4141,7 @@
     SUBDIR += py-hghooks
     SUBDIR += py-hgsubversion
     SUBDIR += py-hgtools
+    SUBDIR += py-http-prompt
     SUBDIR += py-humanize
     SUBDIR += py-hypothesis
     SUBDIR += py-icalendar

Added: head/devel/py-http-prompt/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/py-http-prompt/Makefile	Mon May 30 19:02:47 2016	(r416172)
@@ -0,0 +1,26 @@
+# $FreeBSD$
+
+PORTNAME=	http-prompt
+PORTVERSION=	0.2.0
+CATEGORIES=	devel python
+MASTER_SITES=	CHEESESHOP
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	dbaio@bsd.com.br
+COMMENT=	Interactive command-line HTTP client
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}click>=5.0:devel/py-click \
+		${PYTHON_PKGNAMEPREFIX}parsimonious>=0.6.2:textproc/py-parsimonious \
+		${PYTHON_PKGNAMEPREFIX}prompt_toolkit>=0.60:devel/py-prompt_toolkit \
+		${PYTHON_PKGNAMEPREFIX}pygments>=2.1.0:textproc/py-pygments \
+		${PYTHON_PKGNAMEPREFIX}six>=1.10.0:devel/py-six \
+		httpie>=0.9.0:www/httpie
+
+NO_ARCH=	yes
+USES=		python
+USE_PYTHON=	autoplist distutils
+
+.include <bsd.port.mk>

Added: head/devel/py-http-prompt/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/py-http-prompt/distinfo	Mon May 30 19:02:47 2016	(r416172)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1464089244
+SHA256 (http-prompt-0.2.0.tar.gz) = 003dd81ea7f2576db541af991e21c181b780251807c0091e696d0b8fe1b20a8d
+SIZE (http-prompt-0.2.0.tar.gz) = 11381

Added: head/devel/py-http-prompt/files/patch-http__prompt_execution.py
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/py-http-prompt/files/patch-http__prompt_execution.py	Mon May 30 19:02:47 2016	(r416172)
@@ -0,0 +1,11 @@
+--- http_prompt/execution.py.orig	2016-05-20 07:19:56 UTC
++++ http_prompt/execution.py
+@@ -241,7 +241,7 @@ class ExecutionVisitor(NodeVisitor):
+             assert children[0].expr_name == 'action'
+             output = BytesIO()
+             try:
+-                env = Environment(stdout=output)
++                env = Environment()
+                 httpie_main(context.httpie_args(self.method), env=env)
+                 content = output.getvalue()
+             finally:

Added: head/devel/py-http-prompt/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/py-http-prompt/pkg-descr	Mon May 30 19:02:47 2016	(r416172)
@@ -0,0 +1,4 @@
+HTTP Prompt is an interactive command-line HTTP client featuring autocomplete 
+and syntax highlighting, built on HTTPie and prompt_toolkit.
+
+WWW: https://pypi.python.org/pypi/http-prompt



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