Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 31 Dec 2017 23:49:31 +0000 (UTC)
From:      Antoine Brodin <antoine@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r457746 - head/chinese/pycangjie
Message-ID:  <201712312349.vBVNnV7f011084@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: antoine
Date: Sun Dec 31 23:49:30 2017
New Revision: 457746
URL: https://svnweb.freebsd.org/changeset/ports/457746

Log:
  - Convert to USE_PYTHON=cython
  - Remove support for unsupported versions of python
  - Fix plist with python version different from 3.6

Modified:
  head/chinese/pycangjie/Makefile
  head/chinese/pycangjie/pkg-plist

Modified: head/chinese/pycangjie/Makefile
==============================================================================
--- head/chinese/pycangjie/Makefile	Sun Dec 31 22:35:17 2017	(r457745)
+++ head/chinese/pycangjie/Makefile	Sun Dec 31 23:49:30 2017	(r457746)
@@ -12,11 +12,12 @@ COMMENT=	Python wrapper to libcangjie
 LICENSE=	GPLv3+
 LICENSE_FILE=	${WRKSRC}/COPYING
 
-BUILD_DEPENDS=	cython:lang/cython
 LIB_DEPENDS=	libcangjie.so:chinese/libcangjie
 
-USES=		autoreconf gmake libtool pkgconfig sqlite python:3.2+
+USES=		autoreconf gmake libtool pkgconfig sqlite python:3.4+
+USE_PYTHON=	cython
 GNU_CONFIGURE=	yes
+CONFIGURE_ENV=	CYTHON=${LOCALBASE}/bin/cython-${PYTHON_VER}
 USE_GITHUB=	yes
 GH_ACCOUNT=	Cangjians
 GH_PROJECT=	pycangjie

Modified: head/chinese/pycangjie/pkg-plist
==============================================================================
--- head/chinese/pycangjie/pkg-plist	Sun Dec 31 22:35:17 2017	(r457745)
+++ head/chinese/pycangjie/pkg-plist	Sun Dec 31 23:49:30 2017	(r457746)
@@ -1,6 +1,6 @@
 %%PYTHON_SITELIBDIR%%/cangjie/__init__.py
-%%PYTHON_SITELIBDIR%%/cangjie/__pycache__/__init__.cpython-36.%%PYTHON_PYOEXTENSION%%
-%%PYTHON_SITELIBDIR%%/cangjie/__pycache__/__init__.cpython-36.pyc
+%%PYTHON_SITELIBDIR%%/cangjie/__pycache__/__init__.cpython-%%PYTHON_SUFFIX%%.%%PYTHON_PYOEXTENSION%%
+%%PYTHON_SITELIBDIR%%/cangjie/__pycache__/__init__.cpython-%%PYTHON_SUFFIX%%.pyc
 %%PYTHON_SITELIBDIR%%/cangjie/_core.so
 %%PYTHON_SITELIBDIR%%/cangjie/errors.so
 %%PYTHON_SITELIBDIR%%/cangjie/filters.so



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