Friday, December 01, 2017

Re: UPDATE: py-neovim-0.2.0

On Tue, Nov 28, 2017 at 09:54:21PM +0000, Edd Barrett wrote:
> The distfile filename clashes with the old version of neovim.

Here's an updated diff which makes the port fetch a renamed tarball from
my server.

Looks good? OK?

Index: Makefile
===================================================================
RCS file: /home/edd/source/OpenBSD-CVS/ports/editors/py-neovim/Makefile,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 Makefile
--- Makefile 12 May 2017 10:14:09 -0000 1.1.1.1
+++ Makefile 1 Dec 2017 11:09:35 -0000
@@ -2,9 +2,8 @@

COMMENT = Python plugin support for Neovim

-MODPY_EGG_VERSION = 0.1.13
-DISTNAME = neovim-${MODPY_EGG_VERSION}
-PKGNAME = py-neovim-${MODPY_EGG_VERSION}
+MODPY_EGG_VERSION = 0.2.0
+DISTNAME = py-neovim-${MODPY_EGG_VERSION}

CATEGORIES = editors devel
HOMEPAGE = https://github.com/neovim/python-client
@@ -14,9 +13,12 @@ MAINTAINER = Edd Barrett <edd@openbsd.or
PERMIT_PACKAGE_CDROM = Yes

MODULES = lang/python
-MODPY_PI = Yes
MODPY_SETUPTOOLS = Yes

+# PyPI filename can clash with the main neovim distfile filename, so we host a
+# renamed tarball.
+MASTER_SITES = http://theunixzoo.co.uk/distfiles/
+
FLAVORS = python3
FLAVOR ?=

@@ -25,6 +27,8 @@ RUN_DEPENDS = net/py-msgpack${MODPY_FLA
devel/py-greenlet${MODPY_FLAVOR}
TEST_DEPENDS = ${RUN_DEPENDS} \
devel/py-nose${MODPY_FLAVOR}
+
+WRKDIST = ${WRKDIR}/neovim-${MODPY_EGG_VERSION}

do-test:
cd ${WRKSRC} && ${LOCALBASE}/bin/nosetests${MODPY_BIN_SUFFIX}
Index: distinfo
===================================================================
RCS file: /home/edd/source/OpenBSD-CVS/ports/editors/py-neovim/distinfo,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 distinfo
--- distinfo 12 May 2017 10:14:09 -0000 1.1.1.1
+++ distinfo 1 Dec 2017 11:09:35 -0000
@@ -1,2 +1,2 @@
-SHA256 (neovim-0.1.13.tar.gz) = /UHO88qjSotoXSwGAwIvs1LlwvB8ZmWUIV1KmYYp818=
-SIZE (neovim-0.1.13.tar.gz) = 35341
+SHA256 (py-neovim-0.2.0.tar.gz) = 1gvgS6ND9+qZxUqYYqJUognOnKvNw0gf5ayk1vN6k/s=
+SIZE (py-neovim-0.2.0.tar.gz) = 35957
Index: pkg/PLIST
===================================================================
RCS file: /home/edd/source/OpenBSD-CVS/ports/editors/py-neovim/pkg/PLIST,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 PLIST
--- pkg/PLIST 12 May 2017 10:14:09 -0000 1.1.1.1
+++ pkg/PLIST 1 Dec 2017 11:09:35 -0000
@@ -12,6 +12,7 @@ ${MODPY_COMMENT}lib/python${MODPY_VERSIO
lib/python${MODPY_VERSION}/site-packages/neovim/${MODPY_PYCACHE}__init__.${MODPY_PYC_MAGIC_TAG}pyc
lib/python${MODPY_VERSION}/site-packages/neovim/${MODPY_PYCACHE}compat.${MODPY_PYC_MAGIC_TAG}pyc
lib/python${MODPY_VERSION}/site-packages/neovim/${MODPY_PYCACHE}util.${MODPY_PYC_MAGIC_TAG}pyc
+lib/python${MODPY_VERSION}/site-packages/neovim/${MODPY_PYCACHE}version.${MODPY_PYC_MAGIC_TAG}pyc
lib/python${MODPY_VERSION}/site-packages/neovim/api/
lib/python${MODPY_VERSION}/site-packages/neovim/api/__init__.py
${MODPY_COMMENT}lib/python${MODPY_VERSION}/site-packages/neovim/api/${MODPY_PYCACHE}/
@@ -58,3 +59,4 @@ lib/python${MODPY_VERSION}/site-packages
lib/python${MODPY_VERSION}/site-packages/neovim/plugin/host.py
lib/python${MODPY_VERSION}/site-packages/neovim/plugin/script_host.py
lib/python${MODPY_VERSION}/site-packages/neovim/util.py
+lib/python${MODPY_VERSION}/site-packages/neovim/version.py

--
Best Regards
Edd Barrett

http://www.theunixzoo.co.uk

No comments:

Post a Comment