Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 5 Aug 2016 07:40:36 +0000 (UTC)
From:      Kevin Lo <kevlo@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r419669 - head/audio/py-speechrecognition
Message-ID:  <201608050740.u757ebnY045776@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kevlo
Date: Fri Aug  5 07:40:36 2016
New Revision: 419669
URL: https://svnweb.freebsd.org/changeset/ports/419669

Log:
  Add a conditional depends on devel/py-monotonic for faster operations in
  some functions on Python 2.  See:
  https://github.com/Uberi/speech_recognition/#monotonic-for-python-2-for-faster-operations-in-some-functions-on-python-2
  
  Spotted by:	koobs

Modified:
  head/audio/py-speechrecognition/Makefile

Modified: head/audio/py-speechrecognition/Makefile
==============================================================================
--- head/audio/py-speechrecognition/Makefile	Fri Aug  5 06:39:13 2016	(r419668)
+++ head/audio/py-speechrecognition/Makefile	Fri Aug  5 07:40:36 2016	(r419669)
@@ -16,9 +16,14 @@ LICENSE_FILE=	${WRKSRC}/LICENSE.txt
 RUN_DEPENDS=	flac:audio/flac \
 		${PYTHON_PKGNAMEPREFIX}pyaudio>0:audio/py-pyaudio
 
+NO_ARCH=	yes
 USES=		python
 USE_PYTHON=	distutils autoplist
 
-NO_ARCH=	yes
+.include <bsd.port.pre.mk>
+
+.if ${PYTHON_REL} < 3000
+RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}monotonic>=0.3:devel/py-monotonic
+.endif
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>



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