Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 Mar 2019 13:23:03 +0000 (UTC)
From:      Mateusz Piotrowski <0mp@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r496144 - in head/editors: . py-pynvim py-pynvim/files
Message-ID:  <201903181323.x2IDN3od029571@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: 0mp
Date: Mon Mar 18 13:23:02 2019
New Revision: 496144
URL: https://svnweb.freebsd.org/changeset/ports/496144

Log:
  New port: editors/py-pynvim: Python client and plugin host for Neovim
  
  Pynvim implements support for python plugins in Nvim. It also works as a
  library for connecting to and scripting Nvim processes through its
  msgpack-rpc API.
  
  WWW: https://pynvim.readthedocs.io/en/latest/
  
  Reviewed by:	mat
  Approved by:	mat (mentor)
  Differential Revision:	https://reviews.freebsd.org/D19597

Added:
  head/editors/py-pynvim/
  head/editors/py-pynvim/Makefile   (contents, props changed)
  head/editors/py-pynvim/distinfo   (contents, props changed)
  head/editors/py-pynvim/files/
  head/editors/py-pynvim/files/pkg-message.in   (contents, props changed)
  head/editors/py-pynvim/pkg-descr   (contents, props changed)
Modified:
  head/editors/Makefile

Modified: head/editors/Makefile
==============================================================================
--- head/editors/Makefile	Mon Mar 18 13:17:47 2019	(r496143)
+++ head/editors/Makefile	Mon Mar 18 13:23:02 2019	(r496144)
@@ -214,6 +214,7 @@
     SUBDIR += psgml
     SUBDIR += puff
     SUBDIR += py-editorconfig
+    SUBDIR += py-pynvim
     SUBDIR += py-room
     SUBDIR += rox-edit
     SUBDIR += rubygem-neovim

Added: head/editors/py-pynvim/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/editors/py-pynvim/Makefile	Mon Mar 18 13:23:02 2019	(r496144)
@@ -0,0 +1,35 @@
+# $FreeBSD$
+
+PORTNAME=	pynvim
+PORTVERSION=	0.3.2
+CATEGORIES=	editors python
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	0mp@FreeBSD.org
+COMMENT=	Python client and plugin host for Neovim
+
+LICENSE=	APACHE20
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}msgpack>=0.5.0:devel/py-msgpack@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}greenlet>=0:devel/py-greenlet@${PY_FLAVOR}
+py27_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}trollius>=0:devel/py-trollius@${PY_FLAVOR}
+TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pytest>=3.4.0:devel/py-pytest@${PY_FLAVOR} \
+		nvim:editors/neovim
+
+USES=		python
+USE_PYTHON=	concurrent distutils flavors autoplist
+# XXX: Switch to CHEESESHOP once https://github.com/neovim/pynvim/issues/367
+# is resolved.
+USE_GITHUB=	yes
+GH_ACCOUNT=	neovim
+
+NO_ARCH=	yes
+SUB_FILES=	pkg-message
+SUB_LIST=	PYTHON_CMD=${PYTHON_CMD} \
+		SUFFIX_FOR_PYTHON_3=${PYTHON_MAJOR_VER:M3}
+
+do-test:
+	cd ${WRKSRC} && ${PYTHON_CMD} -m pytest
+
+.include <bsd.port.mk>

Added: head/editors/py-pynvim/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/editors/py-pynvim/distinfo	Mon Mar 18 13:23:02 2019	(r496144)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1552658562
+SHA256 (neovim-pynvim-0.3.2_GH0.tar.gz) = 0a44c540dd5790acfbc7e411b0ed4fb6c44914d866226ebebf370c24c2723dc2
+SIZE (neovim-pynvim-0.3.2_GH0.tar.gz) = 51954

Added: head/editors/py-pynvim/files/pkg-message.in
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/editors/py-pynvim/files/pkg-message.in	Mon Mar 18 13:23:02 2019	(r496144)
@@ -0,0 +1,7 @@
+In order to use pynvim in Neovim it is required to specify add the following line
+to ~/.config/nvim/init.vim:
+
+let g:python%%SUFFIX_FOR_PYTHON_3%%_host_prog='%%PYTHON_CMD%%'
+
+See Neovim Wiki for more information:
+https://github.com/neovim/neovim/wiki/Installing-Neovim

Added: head/editors/py-pynvim/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/editors/py-pynvim/pkg-descr	Mon Mar 18 13:23:02 2019	(r496144)
@@ -0,0 +1,5 @@
+Pynvim implements support for python plugins in Nvim. It also works as a
+library for connecting to and scripting Nvim processes through its msgpack-rpc
+API.
+
+WWW: https://pynvim.readthedocs.io/en/latest/



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