Index: head/converters/py-rencode/Makefile =================================================================== --- head/converters/py-rencode/Makefile (revision 486078) +++ head/converters/py-rencode/Makefile (revision 486079) @@ -1,23 +1,32 @@ # $FreeBSD$ PORTNAME= rencode PORTVERSION= 1.0.6 +PORTREVISION= 1 CATEGORIES= converters devel python MASTER_SITES= CHEESESHOP PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= python@FreeBSD.org -COMMENT= R-encoding and r-decoding implementation +COMMENT= Web safe object pickling/unpickling LICENSE= GPLv3 LICENSE_FILE= ${WRKSRC}/COPYING BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR} USES= python USE_PYTHON= autoplist distutils +# Make setup.py test target work with setup.py:test_suite +# See: files/patch-setup.py +post-patch: + ${TOUCH} ${WRKSRC}/tests/__init__.py + post-install: ${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/rencode/_rencode.so + +do-test: + cd ${WRKSRC} && ${PYTHON_CMD} ${PYDISTUTILS_SETUP} test .include Index: head/converters/py-rencode/files/patch-setup.py =================================================================== --- head/converters/py-rencode/files/patch-setup.py (nonexistent) +++ head/converters/py-rencode/files/patch-setup.py (revision 486079) @@ -0,0 +1,35 @@ +# 1) converters/py-rencode: Fails to configure if cython is installed +# 2) make setup.py test command work via test_suite directive +# 3) Honour/respect user CFLAGS +# https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=233561 + +--- setup.py.orig 2018-10-21 17:41:35 UTC ++++ setup.py +@@ -29,19 +29,14 @@ from distutils.errors import CCompilerError, Distutils + from setuptools import setup + from setuptools.extension import Extension + +-try: +- from Cython.Build import build_ext +- from Cython.Build import cythonize +-except ImportError as ex: +- from setuptools.command.build_ext import build_ext +- cythonize = False ++from setuptools.command.build_ext import build_ext ++cythonize = False + + source_ext = ".pyx" if cythonize else ".c" + + ext_modules = [ + Extension( + "rencode._rencode", +- extra_compile_args=["-O3"], + sources=["rencode/rencode" + source_ext], + ), + ] +@@ -93,4 +88,5 @@ setup( + cmdclass={'build_ext': optional_build_ext}, + ext_modules=ext_modules, + setup_requires=['setuptools', 'wheel'], ++ test_suite='tests', + ) Property changes on: head/converters/py-rencode/files/patch-setup.py ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property